You may want to send messages to recipient in text AND HTML format, so that they can read the content even if the Mail reader is not HTML capable.

LOCAL loSMTP as wwIPStuff loSMTP=CREATEOBJECT("wwIPStuff") loSmtp.cMailServer="mail.yourmailserver.net" loSmtp.cSenderEmail="rstrahl@west-wind.com" loSmtp.cSenderName="Rick Strahl" loSmtp.cRecipient="somebody@sweat.com,another@bust.com" loSmtp.cSubject="wwIPStuff Test Message" *** Set up Messages - first part plain text loSmtp.cMessage="Who said this had to be difficult?" loSmtp.cContentType = "text/plain" loSmtp.cMessageAlternate = "<b>Who said this had to be difficult, bra?</b>" loSmtp.cContentTypeAlternate = "text/html" llResult = loSmtp.SendMail() IF !llResult Wait window loSmtp.cErrorMsg ENDIF

cContentType determines the content type of the main message, while cContentTypeAlternate applies to the alternate content. It's recommended that you specify the plain content first, so if you have really old mail clients they can still read the first part of the message and display it.

Please note that you can't file attachments in this mode.


Last Updated: 12/27/2008 | Send topic feedback