Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
I have problem for sending Email Through c#.net
May 08, 2010
I have Written code for sending E-Mail as Follows
MailMessage msg = new MailMessage();
msg.To = txtTo.Text;
msg.From = txtFrom.Text;
msg.Subject = txtSubject.Text;
msg.Body = txtContent.Value;
lblStatus.Text = "Sending...";
SmtpMail.SmtpServer = "smtp.yourISP.com";
lblStatus.Text = "Sent "
the problem is if send Email on same ISP then Email sent successfully otherwise Error is as follows
System.Net.Mail.SmtpException Transction Failed The Server Response was 5.7.1
Plz Solve this Error
Posted Date: May 08, 2010 Points: 5
SmtpMail.SmtpServer = "smtp.
If this is not the solution then visit :
and search you would get the perfect solution.
Be helpful and enjoy life because it comes only onces. Give all the happiness to yours and remember it doesn't comes by money ...
Posted Date: May 10, 2010 Points: 5
This is happening because the spam filter at the recipient's end may have blocked the domain from which you are sending mails. Try using a different SMTP host if possible.
Please Check my answer if you help....
Posted Date: May 13, 2010 Points: 5
MailMessage mailMsg = new MailMessage();
mailMsg.From = new MailAddress(FromAddress);
mailMsg.Subject = Subject;
mailMsg.BodyEncoding = System.Text.Encoding.GetEncoding("utf-8");
System.Net.Mail.AlternateView plainView = System.Net.Mail.AlternateView.CreateAlternateViewFromString
(System.Text.RegularExpressions.Regex.Replace(BodyText, @"<(.|\n)*?>", string.Empty), null, "text/plain");
System.Net.Mail.AlternateView htmlView = System.Net.Mail.AlternateView.CreateAlternateViewFromString(BodyText, null, "text/html");
// Smtp configuration
SmtpClient smtp = new SmtpClient();
smtp.Port = 25;
smtp.Host = "mail.saiastro.in";
smtp.UseDefaultCredentials = true;
smtp.Credentials = new System.Net.NetworkCredential("mail.domain.com", "password"); ;
smtp.EnableSsl = false;
To post reply
Related Questions Related Questions
How to write code for sending EMail through c#.net
About Email Sending
can we use php email sending code in asp.net website
Delivery report problem during sms sending
page_load event problem
DATAGRID NULL ITEM REPLACE PROBLEM
Problem with login control
problem of explorer
Latest Forum Questions From The Same Category
How to display the text in the second ck editor with strikes while extracting from database
Mail is working but I want send two excel file to each different person
how to display child nodes with headers and keeping the child nodes in a table
In DataGrid I have Two Dropdownlist, One in Header template and Item Template
Display data directly from database table to PDF using stored procedures in asp.net C#
How to install and use Dev Express ?
Dialogbox Custom Control
Custom Control in Winforms
I just started learning c#.net console application
How to read csv file which have many special character and tabs?
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend