How to send E-mails with classic ASP

Crystone, now hosting over 300,000 homepages!

How to send E-mails with classic ASP

There’s numerous ways of sending E-mails with classic ASP but the following is our recommended way to do it:

Set myMail=CreateObject(“CDO.Message”)

‘E-mail subject:
myMail.Subject=”Sending email with CDO”

‘The from address:

‘The to address:

myMail.TextBody=”Your text goes here when sending e-mails”

myMail.Configuration.Fields.Item _ (“”)=2

‘Outgoing SMTP server, localhost in this case:
myMail.Configuration.Fields.Item _ (“”)= “localhost”

‘Outgoing SMTP port, 25 for SMTP:
myMail.Configuration.Fields.Item _ (“”)=25


‘Send the E-mail:
myMail.Send set myMail=nothing

The above code has been verified with both Crystone 2010 & 2012 packages.

Call Customer

+46.8 506 77 150
+44 808 189 40 50

Our support team will allways try to help you with your problems of find the right solution for you.
Crystone Also has technicians available 24/7 to solve and problems that may occus.

Crystone Sweden

Lindhagensgatan 126
112 51 STOCKHOLM Sweden

Crystone Global

Lindhagensgatan 126
112 51, Stockholm

Crystone United Kingdom

Europa House, Adlington Business Park
SK10 4NL Adlington, United Kingdom