TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
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
Forums
Monthly Leaders
Forum guidelines
manohar vishwakarma
NA
35
660
email sending issue @yahoo.com on using godaddy.com
Mar 7 2017 6:15 AM
string smtphost = "relay-hosting.secureserver.net";
string smtpusername = ConfigurationManager.AppSettings["SMTPUSERNAME"];
string smtppwd = ConfigurationManager.AppSettings["SMTPPASWORD"];
string FromTo = ConfigurationManager.AppSettings["From"];
string From_CC = ConfigurationManager.AppSettings["CC"];
System.Text.StringBuilder strs = new System.Text.StringBuilder();
MailMessage objMail = new MailMessage(FromTo, txtEmail.Text.Trim(), "Welcome", str);
objMail.CC.Add(new MailAddress(From_CC));
objMail.IsBodyHtml = true;
SmtpClient s = new SmtpClient(smtphost);
System.Net.NetworkCredential basicAuthenticationInfo = new System.Net.NetworkCredential(smtpusername, smtppwd);
s.UseDefaultCredentials = false;
s.Credentials = basicAuthenticationInfo;
s.Send(objMail);
Reply
Answers (
4
)
I Can't get value from list while Editing in MVC
A network-related or instance-specific error occurred while