Email script Using SendMail Email Script

User avatar
Site Admin
Posts: 35
Joined: Sun Jul 03, 2016 2:17 pm
Location: India

Email script Using SendMail Email Script

Postby admin » Sun Jul 03, 2016 5:07 pm

Email script Using SendMail Email Script

Code: Select all

sub sendmail(fromName,fromwho,toName,towho,subject,bod y)
MHost = "mail.yourdomainname"
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 = "Sender’s 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

End Sub
Finest web hosting solution at the most affordable rates
Cheap Website Hosting
cheap VPS hosting india

Return to “Scripts / Code Snippets”

Who is online

Users browsing this forum: No registered users and 0 guests