Announcement

Collapse
No announcement yet.

Email script - SendMail Email Script

Collapse

Ads on showthread pages

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Email script - SendMail Email Script

    WordPress Hosting on SSD Servers
    In order to send an email via sendmail script from windows server one can use below mentioned script:

    sub sendmail(fromName,fromwho,toName,towho,subject,bod y)
    MHost = "mail.yourdomainname.com"
    Set Mail = Server.CreateObject("Persits.MailSender")
    Mail.Host = MHost
    Mail.Username = "Email address for SMTP Authentication"
    Mail.Password = "Password of above mentioned email address"

    Mail.From = "Senders email address"
    Mail.FromName = "From Name"
    towho = "Recipient email address"
    toName = "Recipient Name"
    Mail.AddAddress towho, toName

    Mail.Subject = subject
    Mail.Body = body
    Mail.IsHTML = True

    strErr = ""
    bSuccess = False
    Mail.Send
    End Sub
    Last edited by admin; 08-21-2015, 05:17 AM.
Working...
X
Sign up for a News Letter Click here to sign up