This code is in a button:
Although no error appears the message is not sent.
If i remove the " ' " at smptserver and fill it with my IP (xxx.x.x.x) Error occurs.
Something's wrong here..
Tnx
Code:
Dim msg As New Web.Mail.MailMessage
'Web.Mail.SmtpMail.SmtpServer = my IP ???
msg.From = txtFrom.Text
msg.To = txtTo.Text
msg.Subject = txtSubject.Text
msg.Body = txtBody.Text
msg.BodyFormat = Web.Mail.MailFormat.Text
Web.Mail.SmtpMail.Send(msg)
MsgBox("Message Sent")
Although no error appears the message is not sent.
If i remove the " ' " at smptserver and fill it with my IP (xxx.x.x.x) Error occurs.
Something's wrong here..
Tnx