How can I send mail to people in a database via your servers/how do I send mail via ASPQmail?
Posted by Phil Parry on 18 September 2007 03:31 PM
If you need to send mail to a lot of people you can do it programatically via ASPQmail. An example script is below:|
Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
Mailer.QMessage = true
' Use the line below to configure your mail to be sent at a later time
' Mailer.QTime = "07/30/00 22:10:00"
Mailer.FromName = "Joe?s Widgets Corp."
Mailer.RemoteHost = "relay.hostinguk.net"
Mailer.AddRecipient "John Smith", "firstname.lastname@example.org"
Mailer.Subject = "Great SMTP Product!"
Mailer.BodyText = "Dear Stephen" & VbCrLf & "Your widgets order has been processed!"
if Mailer.SendMail then
Response.Write "Mail sent..."
Response.Write "Mail send failure. Error was " & Mailer.Response
For more information see:
Please note that you MUST send mail via relay.hostinguk.net - do NOT attempt to send mail through our other mail servers as they are configured to automatically blacklist anyone who sends 1000 messages or more in 24 hours, which will prevent you sending further e-mail.