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
Ajit More
NA
569
334.9k
Error In Send mail .?
Aug 11 2014 3:17 AM
Hi,
Friend when I click on the send button of the following page
http://www.anjanasteel.com/anjanasteel/SendInquiry.aspx
I got this error in URL and my mail not send
http://www.anjanasteel.com/anjanasteel/Default.aspx?aspxerrorpath=/anjanasteel/SendInquiry.aspx
Following is my code::
MailMessage mailMessage = new MailMessage();
mailMessage.From = new MailAddress("
[email protected]
");
mailMessage.Subject = "ABC Quotation";
mailMessage.Body = "<img src ='http://www.abcl.com/images/logo.png' alt='logo' /><br /><div style = 'border-top:3px solid #79AD42'> </div>Please Find Attachment<br/><br/><br/>Regards,<br/>Anjana Steel Traders<br/><br/>Website:: www.anjanasteel.com";
mailMessage.IsBodyHtml = true;
mailMessage.To.Add(new MailAddress("
[email protected]
"));
SmtpClient mSMTPClient = new SmtpClient("mail.abc.com", 25);
mSMTPClient.Send(mailMessage);
mailMessage.Dispose();
Reply
Answers (
1
)
how to set Breadcrumbs navigation in mvc
Gmail Authentication