Remind password    Register

Frequently Asked Questions -> Common questions

How do I to send email from my website

Example:
(optional parameters are in square brackets [])

mailtext = "Message text ...."

Set iMsg = CreateObject("CDO.Message")

[iMsg.BodyPart.Charset = "windows-1251"]
[set iConf = CreateObject("CDO.configuration")]
[set flds = iConf.fields]
[flds("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2]
[flds("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "217.106.234.170"]
[flds("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25]
[flds.update]
[Set iMsg.Configuration = iConf]

With iMsg
.From = """John Smith"" "
.To = "mail@domain.ru"
.Subject = "Message subject"
.Htmlbody = mailtext
.Send
end with

[set flds = nothing]
[Set iconf = nothing]

Set iMsg = nothing
 
Home page | Services | Tech support | For users | About us


Copyright © Best-Hosting.net 2001-2017, All Rights Reserved.
"Company Best Hosting" LLC.
  Privacy Policy | Terms of Use

Phone/fax: +7 495 788-94-84
E-mail: support@best-hosting.ru