Want to build the ChatGPT based Apps? Start here
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
shafqat
0
1
0
send email failed
Sep 21 2010 10:05 AM
How can i send email to multiple clients located in different domains such hotmail,yahoo,and gmail
is it required to provide Smpt server name, if we have multipe domain id, what should we do?
I am using fowling code but getting exception failed.
MailMessage mailMsg = new MailMessage();
mailMsg .From = "
from@fromServer.com
";
mailMsg .To = "
to@toServer.com
";
mailMsg .Cc = "
cc@ccServer.com
"";
mailMsg .Bcc = "
bcc@bccServer.com
";
mailMsg .Subject = "SubjectOfTheMailString";
mailMsg .Body = "BodyOfTheMailString";
SmtpMail.Send(mailMsg );
Thanks,
Reply
Answers (
3
)
PRIZE, AWARD WINNERS
a story