Helo, how to automate sending email? I want to automatically send email to some addresses every day? How can i do that?
I build that one for my final project at my college. Please help me.
Thanks in advance.
I am using this code....
try
Dim objEmailMessage As System.Web.Mail.MailMessage
Dim objSMTPServer As System.Web.Mail.SmtpMail
objSMTPServer.SmtpServer = "mail.wefgroup.com"
objEmailMessage = New System.Web.Mail.MailMessage
With objEmailMessage
.To = "someone@wefgroup.com"
.From = "me@yahoo.com"
.Subject = "Helo"
.Body = "I test sending email"
End With
objSMTPServer.Send(objEmailMessage)
catch exc as exception
response.write(exc.innerexception.innerexception.message)
end try
I build that one for my final project at my college. Please help me.
Thanks in advance.
I am using this code....
try
Dim objEmailMessage As System.Web.Mail.MailMessage
Dim objSMTPServer As System.Web.Mail.SmtpMail
objSMTPServer.SmtpServer = "mail.wefgroup.com"
objEmailMessage = New System.Web.Mail.MailMessage
With objEmailMessage
.To = "someone@wefgroup.com"
.From = "me@yahoo.com"
.Subject = "Helo"
.Body = "I test sending email"
End With
objSMTPServer.Send(objEmailMessage)
catch exc as exception
response.write(exc.innerexception.innerexception.message)
end try