J
Jay
I have an application that needs to send a confirmation email upon a
completed order. I am using the smptmail obj of .net and can send email to
my companies internal addresses. However, my exchange server (set as the
smart host of my applications smtp server), won't relay to external
addresses. I know the send command is working because of the success of
sending to internal addresses, but I'm trying to figure out what the deal is
with the external forwarding...
Dim oMail As New System.Web.Mail.MailMessage()
oMail.To = SendTo
oMail.From = "(e-mail address removed)"
oMail.BodyFormat = Mail.MailFormat.Text
oMail.Body = strBody
oMail.Attachments.Add(New System.Web.Mail.MailAttachment(strPath,
MailEncoding.Base64))
SmtpMail.SmtpServer = ConfigurationSettings.AppSettings.Item("EmailServer")
SmtpMail.Send(oMail)
SmtpMail.SmtpServer is set to my exchange server.
--
I have also set the smart host of the local smtp server to the exchange
server.
Any help would be hugely appreciated.
Jay Hammett MCSE, MCP + I
President
Fusion Computers
email: (e-mail address removed)
web: www.fusion-computers.com
completed order. I am using the smptmail obj of .net and can send email to
my companies internal addresses. However, my exchange server (set as the
smart host of my applications smtp server), won't relay to external
addresses. I know the send command is working because of the success of
sending to internal addresses, but I'm trying to figure out what the deal is
with the external forwarding...
Dim oMail As New System.Web.Mail.MailMessage()
oMail.To = SendTo
oMail.From = "(e-mail address removed)"
oMail.BodyFormat = Mail.MailFormat.Text
oMail.Body = strBody
oMail.Attachments.Add(New System.Web.Mail.MailAttachment(strPath,
MailEncoding.Base64))
SmtpMail.SmtpServer = ConfigurationSettings.AppSettings.Item("EmailServer")
SmtpMail.Send(oMail)
SmtpMail.SmtpServer is set to my exchange server.
--
I have also set the smart host of the local smtp server to the exchange
server.
Any help would be hugely appreciated.
Jay Hammett MCSE, MCP + I
President
Fusion Computers
email: (e-mail address removed)
web: www.fusion-computers.com