Click here to Skip to main content
16,016,760 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ,

StringBuilder sb=new BAL.PageContent().EmailList();
                           string s = sb.ToString().Trim().TrimEnd(',');
                           
                            MailAddress fromAddress = new MailAddress("info@captorsolutions.com");
                            message.From = fromAddress;//here you can set address
                            message.To.Add(s);
                            message.Subject = "Feedback";//subject of email
                           // message.CC.Add("cc@site.com");//ccing the same email to other email address
                            //message.Bcc.Add(new MailAddress("bcc@site.com"));//here you can add bcc address
                            message.IsBodyHtml = false;//To determine email body is html or not
                            message.Body = ucEditor1.Content;
                            smtpClient.Send(message);


I am getting an exception "Unable to send to all recipients."

Is there any problem with the code? else the problem with smtp settings

Please help me..

Thanking you all.
Posted
Updated 4-Oct-11 17:32pm
v2

1 solution

 
Share this answer
 
Comments
lakshmikanthdv 5-Nov-11 8:23am    
thank you so much for ur solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900