G
Guest
I am trying to send a custom e-mail using asp.net but am having trouble. The
code that I found to do this is:
<%
Dim msgMail as New MailMessage
msgMail.From = "(e-mail address removed)"
msgMail.To = "(e-mail address removed)"
msgMail.Subject = "Happy Birthday"
msgMail.Body = "If your birthday is today, have a good one."
SmtpMail.SmtpServer = "smtpout.secureserver.net"
SmtpMail.Send(msgMail)
%>
But when I load this page, I get the following error message:
"Type 'MailMessage' is not defined"
Can someone help me out with this?
code that I found to do this is:
<%
Dim msgMail as New MailMessage
msgMail.From = "(e-mail address removed)"
msgMail.To = "(e-mail address removed)"
msgMail.Subject = "Happy Birthday"
msgMail.Body = "If your birthday is today, have a good one."
SmtpMail.SmtpServer = "smtpout.secureserver.net"
SmtpMail.Send(msgMail)
%>
But when I load this page, I get the following error message:
"Type 'MailMessage' is not defined"
Can someone help me out with this?