Does anyone know of any issues with sending mail from a Mobile Asp.Net WebForm?
I've got a page setup that takes a bunch of user field input and then slaps it in a mail and sends it; the problem is I keep getting a could not access Message error... Never seen this error before and I'm not sure what the deal is. I've tried a few web/mail servers and nothing changes....
Thoughts? Ideas? You moron?
PHP Code:MailMessage msg = new MailMessage();
msg.Body = sb.ToString();
msg.To = System.Configuration.ConfigurationSettings.AppSettings["send_memo_to"];
msg.From = "[MAI][email protected]";
msg.Subject = "Billing Memo" + DateTime.Now.ToLongTimeString();
SmtpMail.SmtpServer = System.Configuration.ConfigurationSettings.AppSettings["mail_server"];
try
{
SmtpMail.Send(msg);
Response.Write("Message Sent.");
}
catch(Exception ex)
{
Response.Write(ex.Message);
}
Code:<appSettings> <add key="mail_server" value="blanked.for.security.on.vbforum"/> <add key="send_memo_to" value="[email protected];[email protected];"/> </appSettings>


Reply With Quote