Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WwIPStuff- send image with smtp mail.
Message
General information
Forum:
Visual FoxPro
Category:
West Wind Web Connection
Title:
WwIPStuff- send image with smtp mail.
Miscellaneous
Thread ID:
00726303
Message ID:
00726303
Views:
39
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.
Next
Reply
Map
View

Click here to load this message in the networking platform