I am trying to submit a form using this code (I only need to send it plain text)
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
-------------------------------------
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)
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
-------------------------------------