andycharger
Well-known member
- Joined
- Apr 2, 2003
- Messages
- 152
Can someone help?
I have built a little bit of code to send an email.
Until I made a change to my SMTP server on my local machine, it kept failing with an "unable to relay message" error.
However, I have now granted my machines IP address permission to relay email.
The problem is, it is never arriving in my inbox. Can anyone suggest a reason why it appears to send but never actually arrives in my inbox?
Here is the code:
I have built a little bit of code to send an email.
Until I made a change to my SMTP server on my local machine, it kept failing with an "unable to relay message" error.
However, I have now granted my machines IP address permission to relay email.
The problem is, it is never arriving in my inbox. Can anyone suggest a reason why it appears to send but never actually arrives in my inbox?
Here is the code:
Code:
Dim mmes as new Mailmessage()
Dim strTo as String
Dim strFrom as String
Dim strSubject as String
mmes.To = "adavies@seib.co.uk"
mmes.From = "adavies@seib.co.uk"
mmes.Subject = "Test Passed"
mmes.body = "The Following test was completed by" & session("username") & ""
System.Web.Mail.SmtpMail.SmtpServer = "10.0.0.57"
System.Web.Mail.SmtpMail.Send(mmes)