Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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 machine's 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:

 

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)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...