Author: shahzadkhan34 | Posted on: 9/7/2008 10:33:47 PM | Views : 271

Hi,

I want to send an email from c#.net code. I have searched it on internet. I found some of the examples and coded according to them. But it gives the following error:

SmtpFailedRecipientException was unhandled by user code:

Mailbox unavailable. The server response was: 5.7.1 Unable to relay for faisal@etexsolutions.com

Below is my code:
MailMessage msgmail = new MailMessage();
msgmail.From = new MailAddress(TextBox2.Text);
msgmail.To.Add(new MailAddress(TextB ...

Go to the complete details ...