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
Thirunavukkarsu j
NA
196
89.8k
sending email is not working with my smtp server
Jan 2 2015 7:48 AM
Hi am using below this code Send mail concept
Gmail sptp server and port working fine, But not working my client server and port.
Please help me anybody .
System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage();
message.From = new MailAddress("
[email protected]
");
if (lblEmail.Text != null)
{
message.To.Add(lblEmail.Text);
message.Subject = "Salary Slip Details";
message.Body = "Salary Slip";
message.Attachments.Add(new Attachment(PDFFile));
message.IsBodyHtml = false;
SmtpClient smtp = new SmtpClient();
smtp.Host = "smtp.xxxxx.yahoo.com";
smtp.EnableSsl = true;
NetworkCredential NetworkCred = new NetworkCredential("
[email protected]
","tstrtrtrrt");
smtp.UseDefaultCredentials = true;
smtp.Credentials = NetworkCred;
smtp.Port = 578;
smtp.Send(message);
ClientScript.RegisterStartupScript(GetType(), "alert", "alert('Email sent.');", true);
}
Reply
Answers (
7
)
PopupControlExtender
FETCH DATA FROM MS WORD AND SAVE THEM TO DATABASE