Failure sending mail

Mark Gervacio asked on April 24, 2017 08:12

Hi all,

I have created a form in which sends the data to an email upon user submission but the data were stuck in Email Queue. I have tried testing to send an email in System > Email but still got failure. I tried sending the data to my personal email but still failed.

Message: Failure sending mail. Exception type: System.Net.Mail.SmtpException Stack trace: at System.Net.Mail.SmtpClient.Send(MailMessage message) at CMS.EmailEngine.EmailProvider.SendEmailInternal(String siteName, MailMessage message, SMTPServerInfo smtpServer) at CMSModules_System_System_Email.SendEmail() at CMSModules_System_System_Email.btnSend_Click(Object sender, EventArgs e) Message: Unable to connect to the remote server Exception type: System.Net.WebException Stack trace: at System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6) at System.Net.PooledStream.Activate(Object owningObject, Boolean async, GeneralAsyncDelegate asyncCallback) at System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout) at System.Net.Mail.SmtpConnection... Please see the event log for more details.

I have Kentico 10 installed locally on my machine.

Thank you!

Recent Answers

Michal Samuhel answered on April 24, 2017 09:20

Hi Mark,

Are there any more details in the event log? Based on the stack trace, error is coming when email is passed to SMTP server, and for some reason it can not be processed. Server response could be logged in the event log. Also could you please check your SMTP server configuration, to make sure that it is working(also make sure, that web server can access and send data to SMTP server).

0 votesVote for this answer Mark as a Correct answer

vasu yerramsetti answered on April 24, 2017 11:40

Hi Mark,

Please check below

  • It might be a issue with your email server
  • Check your email user name and password are valid Or not
  • Check Is it SSL enabled?
  • Blocking any anti virus installed installed in your system/Network.
2 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.