Hello group:
I have reached the end of my rope with this error. I have pretty much tried every suggestion I've found thus far and I
get this error no matter what I do. I did try using the CDOSYS test from Microsoft as a test for the smtpserver, and it'll send that way.
Here's my existing code:
Public Sub SendMail()
Dim myMailMsg As New Mail.MailMessage()
With myMailMsg
.To = "<Send to address">
.From = <"Send From Address">
.Subject = "Test message"
.Body = "This is a test."
.BodyFormat = Mail.MailFormat.Text
End With
Mail.SmtpMail.SmtpServer = "<smtp server>"
Mail.SmtpMail.Send(myMailMsg)
End Sub
For my SmtpServer, I've used localhost, smarthost, the actual value of our corporate smtp server address - nothing changes. I always get that
error message.
I have modifed the machine.config file, given the ASP.NET user process admin (temp) access, assigned the machine id of 127.0.0.1 to the Access tab for the relay settings, and every other suggestion I've found - nothing at all seems to make any change. I'm using Windows Server 2003.
Can someone please help me? I don't know what else to do.
Thanks,
James Lankford