Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

emails are not going through

Status
Not open for further replies.

DoubleV

Programmer
Jan 11, 2002
358
US
I am trying to submit a form using this code (I only need to send it plain text)
Code:
  Dim mailObj as new MailMessage
  mailObj.From = "email@blah"
  mailObj.To = "email@blah"
  mailObj.Body = "this is a test"
  mailObj.Subject = "Website Enquiry"
  SmtpMail.SmtpServer = "localhost"
  SmtpMail.Send(mailObj)
but never receive the email. I have downloaded a code sample from asp101.com and don't see a difference. am I blind?

also, I submitted a test email that asp101.com shows ( but never got it either (I also checked the junk folder). so is it something about my host's settings? I mean, it's really strange that when a form is submitted online and an email is generated, it won't go through (even the one on asp101.com), but if I send the email out using Outlook, it will.

--------------------------------------------------
Goals are dreams with deadlines
-------------------------------------
 
Have you installed an SMTP server on your local machine?


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
don't have one on my machine.
I have changed the recipient address to a hotmail box and it was there in an instant. so that really makes me think something is up with the hosting company. i went and tested another form that we had live and it is not working either. that file had not been changed for months.
i'm off to call the host, I guess. The code must be correct because it does get sent to hotmail.

--------------------------------------------------
Goals are dreams with deadlines
-------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top