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
Miscellaneous
Thread ID:
00726303
Message ID:
00729774
Views:
15
I've tried embedding images using wwIPStuff and in the versions I've tried it
doesn't support emmbedded images.

The other two resposes are only partially correct. You can embed an image
in an HTML email, but you have to encode the image, change each image link
to point to the encoded image which will have multipart/alternative in its header record.

Take a look at some of the spam you get which have embedded images and you'll
see how its done.

Jim Eddins

>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform