Sample HTML Code?

Support, Questions and Discussions on SimpleMail

Moderator: alorbach

Google Ads


Sample HTML Code?

Postby Psalm » Wed Feb 08, 2006 2:15 am

Is there any HTML Code available?
Psalm
New
 
Posts: 3
Joined: Wed Feb 08, 2006 2:12 am

Postby mmeckelein » Wed Feb 08, 2006 9:08 am

Yes, it is. Just take a look into the manual. Search for "<html>" (without the quotes).

Best regards,
Michael Meckelein
Adiscon
mmeckelein
Adiscon Support
 
Posts: 176
Joined: Wed Mar 12, 2003 12:07 pm

Postby Psalm » Thu Feb 09, 2006 12:17 am

Sorry, my question wasn't clear. I'm trying to send an HTML email but I couldn't find any sample codes.
Psalm
New
 
Posts: 3
Joined: Wed Feb 08, 2006 2:12 am

Postby mmeckelein » Thu Feb 09, 2006 8:33 am

Hi,

Sending html mails is quit simple. Set the ProcessingMode property to 2. Then use MessageHTMLText property to set your html mail.

Quick asp sample:

Code: Select all
<%
set o = Server.CreateObject("ADISCON.SimpleMail.1") ' create mailer!
o.ProcessingMode = 2
o.MailServer = "rmail.adiscon.com"
o.Sender = "mmeckelein@hq.adiscon.com"
o.Recipient = "mmeckelein@hq.adiscon.com"
o.Subject = "My first SimpleMail mail"
o.MessageText = "Test no html enabled"
o.MessageHTMLText = "<h1>Test html enabled</h1>"
call o.Send
Response.Write("Status code: " & o.LastStatus)
Response.Write("<br>Status msg:  " & o.LastStatusMessage)

set o = Nothing
%>


For properties description, please use the manual. Hope it helps.

Best regards,
Michael Meckelein
Adiscon
mmeckelein
Adiscon Support
 
Posts: 176
Joined: Wed Mar 12, 2003 12:07 pm

Google Ads



Return to SimpleMail

Who is online

Users browsing this forum: No registered users and 0 guests

cron