Windows Develop Bookmark and Share   
 index > Windows Forms General > Error: At least one recipient is required, but none were found.
 

Error: At least one recipient is required, but none were found.

Hello:

I am having this issue from almost 3 days, I went to all the forums and tried all the possible solutions. I am still unable to find a solution for this. I am using .NET 1.1. Please help me out. Here is the code that is not working.

code

----------

private void sendEmail()

{

try

{

MailMessage msg = new MailMessage();

msg.From = "vinaya.gangalam@assurant.com";

msg.To = txtEmailID.Text;

msg.Subject = "PLEASE DO NOT REPLY: VaultApplication - UserName and Password Information";

msg.Body = "**********PLEASE DO NOT REPLY TO MESSAGE***************" + Environment.NewLine +

"________________________________________________" + Environment.NewLine +

"UserName = " + txtUserName.Text + Environment.NewLine +

"Password = " + s_Password + Environment.NewLine +

"________________________________________________";

SmtpMail.SmtpServer.Insert(0, "127.0.0.1");

SmtpMail.Send(msg);

}

catch(Exception ex)

{

ex.ToString();

while( ex.InnerException != null )

{

ex = ex.InnerException;

}

}

}

----------

vinaybhaskar  Wednesday, March 21, 2007 6:50 PM
What is the content of your txtEmailID control?
nobugz  Thursday, March 22, 2007 7:23 AM
What is the content of your txtEmailID control?
nobugz  Thursday, March 22, 2007 7:23 AM

You can use google to search for other answers

Custom Search

More Threads

• Calling a treeview event HELP
• Date Data Type
• Treeview drag & Drop Termination
• disabling SHIFT + DELETE
• I Don't Want To Hardcode Any Colors
• Decorating object properties with attributes to be used in controlling display format
• Scriptlet
• tooltips on drop down of DataGridViewComboBoxEditingControl and DataGridViewComboBoxCell in editing mode
• freeze a controls updating (events, redrawing, ...)
• How to raise a javascript function in webbrowser control which not in winform