G
Guest
Hi,
What's the way to configure a web app and exchange server to allow the web
app to send mails via an existing exchange mailbox?
The question is :
- Do I need to create a windows account and setup the webapp to run under
that account
- Allow the windows account to send mails on behalf of the exchange email
account of my choice
Or is there another better way?
My code is as follows :
System.Web.Mail.MailMessage msg = new System.Web.Mail.MailMessage();
msg.BodyFormat = System.Web.Mail.MailFormat.Html;
msg.From = "(e-mail address removed)";
msg.To = "(e-mail address removed)";
msg.Subject = "subject";
msg.Body = "<html><body>"bodytext</body></html>";
System.Web.Mail.SmtpMail.SmtpServer = "mail.mydomain.com";
System.Web.Mail.SmtpMail.Send(msg);
Thanks,
Tom
What's the way to configure a web app and exchange server to allow the web
app to send mails via an existing exchange mailbox?
The question is :
- Do I need to create a windows account and setup the webapp to run under
that account
- Allow the windows account to send mails on behalf of the exchange email
account of my choice
Or is there another better way?
My code is as follows :
System.Web.Mail.MailMessage msg = new System.Web.Mail.MailMessage();
msg.BodyFormat = System.Web.Mail.MailFormat.Html;
msg.From = "(e-mail address removed)";
msg.To = "(e-mail address removed)";
msg.Subject = "subject";
msg.Body = "<html><body>"bodytext</body></html>";
System.Web.Mail.SmtpMail.SmtpServer = "mail.mydomain.com";
System.Web.Mail.SmtpMail.Send(msg);
Thanks,
Tom