Base solution for your next web application
Open Closed

Error sending mails #2203


User avatar
0
maddey234 created

Hello,

I keep getting an error when I try to send mails with an application I built from v 1.12.2.0. I have tried different email accounts to test this functionality and get different errors. I am currently trying to use my gmail account to test the email functionality of the application and this is the error I am getting below. I have pasted the first part of the log here:

ERROR 2017-01-01 23:25:06,111 [5 ] nHandling.AbpApiExceptionFilterAttribute - Syntax error, command unrecognized. The server response was: System.Net.Mail.SmtpException: Syntax error, command unrecognized. The server response was: at System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.End(IAsyncResult result) at System.Net.Mail.SmtpTransport.EndGetConnection(IAsyncResult result) at System.Net.Mail.SmtpClient.ConnectCallback(IAsyncResult result) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Abp.Net.Mail.Smtp.SmtpEmailSender.<SendEmailAsync>d__3.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Net\Mail\Smtp\SmtpEmailSender.cs:line 71

When I try to use my own domain in the email settings, I keep getting an error that the "Sending Address not accepted due to SPAM filter". What should I do?


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Our email sending code is very simple and does not have anytinhg special. Can you try to send email with simple .Net EmailMessage class ?

    Or, can you send email with this credentials by any other program ?