MailMessage loMessage = new MailMessage(); loMessage.From = this.lblDataFrom.Text; loMessage.To = this.lblDataTo.Text; loMessage.BodyFormat = MailFormat.Text; loMessage.Priority = MailPriority.High; loMessage.Body = this.txtMessage.Text; SmtpMail.Send(loMessage);But I get the following error message upon clicking the Send button:
The server response was: 550 5.7.1 Unable to relay forBTW, I am runing this from my developing machine which has IIS and SMTP Virtual Server.
"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."
- Ephesians 4:29-30 NIV
Dare to Question -- Care to Answer
Time is like water in a sponge, as long as you are willing you can always squeeze some.
--Lu Xun, Father of Modern Chinese Literature