Many gripes today. #1 on my list, my IT guy, who spent the night wiping out our Active Directory all over the network and then decides to switch our e-mail provider without warning.
K, not your problem.
We were using Exchange, hosted on the webserver, to send out notification e-mails when an order was placed. Here is the code:
Private Sub SendMail(ByVal from As String, ByVal toAddress As String, ByVal subject As String, ByVal body As String)
Dim errMail As New System.Web.Mail.MailMessage
.From = from
.To = toAddress
.Subject = subject
.Body = body
.BodyFormat = System.Web.Mail.MailFormat.Html
'.Fields("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
'.Fields("http://schemas.microsoft.com/cdo/configuration/sendusername") = "***@centurycolor.com"
'.Fields("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "******"
System.Web.Mail.SmtpMail.SmtpServer = "mail.centurycolor.com"
Catch ex As Exception
Throw New ApplicationException(ex.ToString)
I've tried with the .Fields commented and uncommented. Our pop3 is still mail.centurycolor.com. Our new e-mail provider is Network Solutions, they have no help how to get my code to send the e-mail. What I get for an error is this:
System.Web.HttpException: The server rejected one or more recipient addresses. The server response was: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)
The e-mail I'm sending to, email@example.com, is alive and well. I'm assuming the cdo object won't work. What can I do, please, this is critical for us. (I can't believe he did that to me!!!)