sending email to my account
Posted on 2004-04-02
i set up an email me form. the form contains a textbox and when text is typed in and a button clicked i would like for the message to get sent to my business email. The problem is when i click the button it says the message is sent but when i check my email using lotus notes the message is not there. could someone explain why this is happening? if i email to my hotmail account it works. My code is below.
Private Sub btnemail_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnemail.Click
oMail = New MailMessage
oMail.From = "Bobcat_Employee"
oMail.To = "Shaun_Barth@bobcat.com"
oMail.Subject = "Comments and Ideas"
oMail.Body = txtEmail.Text
SmtpMail.SmtpServer = "127.0.0.1" ' put here server IP address
If txtEmail.Text.Length = 0 Then
txtEmail.Text = ""