Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello

I am getting the following error when I try to send emails from my contact form:

Transaction failed. The server response was: Sending address not accepted due to spam filter

Does this imply the mail server itself is preventing me from sending emails?

If it's the server, why does the description of the error say this: 'Please review the stack trace for more information about the error and where
it originated in the code?'

The stack trace looks like this:

[SmtpException: Transaction failed. The server response was: Sending address not accepted due to spam filter]
System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response) +1525339
System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, MailAddress from, Boolean allowUnicode) +46
System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, Boolean allowUnicode, SmtpFailedRecipientException& exception) +88
System.Net.Mail.SmtpClient.Send(MailMessage message) +1852
contact.contact_submitted_Click(Object sender, EventArgs e) +599
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +9628722
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +103
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +35
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724

This MSDN page https://msdn.microsoft.com/en-us/library/swas0fwc(v=vs.110).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1 suggests checking the
Status Code 'to find the reason the operation failed' and in my error that would seem to be 1525339 (second line in the Stack Trace), but I can't
find anything on the Net for that code.

Thanks
Posted

1 solution

"Does this imply the mail server itself is preventing me from sending emails?"
Yes, it is exactly that.
The email server blacklist contains the email address you are trying to send as.
This may be an error, in which case you can ask the person responsible for mail server maintenance to review his blacklist and remove your address.

But until then, you cannot use that mail server.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900