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
Bhabani prasad Dash
NA
244
44.6k
mail sending failed
Jun 17 2013 2:40 AM
in offline i can send mail but in online itdoesnt send
code is in below
string vbody = "Thank you for your valueble feedback. Soon we will reach to you! <br/>";
vbody = vbody + "With Regards <br/>";
vbody = vbody + "Support Team -";
vbody = vbody + "BOOK MOVIE TICKET";
MailMessage msg = new MailMessage();
msg.To.Add(txt_email.Text);
msg.From = new MailAddress("urusername", "Book Movie Ticket Help Desk");
msg.IsBodyHtml = true;
msg.Body = vbody;
msg.Subject = "Thank you for your feedback";
SmtpClient smtp = new SmtpClient("
smtp.gmail.com
");
smtp.EnableSsl = true;
smtp.Port = 587;
smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
smtp.Credentials = new NetworkCredential("urusername"
, "password");
smtp.Send(msg);
msg = null;
but no error come
Reply
Answers (
5
)
Font Dialogue box in asp.net
crystal report pdf generation error