Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WwIPStuff- send image with smtp mail.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
West Wind Web Connection
Titre:
WwIPStuff- send image with smtp mail.
Divers
Thread ID:
00726303
Message ID:
00726303
Vues:
41
Hi..I'm using WestWind IP Stuff to send an html mail and would like to include an image with the mail. The code looks like:
* Invoke the library for sending.
	o=CREATEOBJECT('wwIPStuff')

* Build the eMail letter
	o.cMailServer=lcMailer
	o.cSenderEmail=lcAccount
	o.cSenderName='Go Catamounts!'
	o.cRecipient=ALLTRIM(curStudent.eMail)
	o.cCCList=''
	o.cBCCList=''
	o.cSubject='Notice To Return UVM Athletic Equipment'

* The following creates an html eMail
cText="<IMG SRC=catamount.jpg>"
cText=cText+"<center><h3>Athletic Equipment Office</h3>"
cText=cText+"<h2>Notice to Return Issued Equipment</h2></center>"
cText=cText+"To: "+ IIF(NOT EMPTY(ALLTRIM(curStudent.NAME)),curStudent.NAME,'')+"<BR>"
	cText=cText+curStudent.l_street+"<BR>"
	cText=cText+curStudent.l_city_st+" "+curStudent.l_zip+"<P>"
.... 

o.cMessage=cText
o.cContentType='text/html'
o.SendMailAsync()
etc. etc. and you can see the
<IMG SRC=catamount.jpg>
statement calls the image file, in a regular html page. But how do I send the image along with the rest of the eMail text? Right now, if the recipient opens the mail, they see the "broken image link" symbol.
-- Larry Keyes
Remember only You can prevent Gray Goo. Never release nanobot assembers without replication limiting code.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform