Email error in system log

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
2/4/2011 12:05:45 AM
Gravatar
Total Posts 53

Email error in system log

My site fails to send the email.. please help. This is what I have from system log:

 

System.Net.Mail.SmtpException: Bad sequence of commands. The server response was: This mail server requires authentication when attempting to send to a non-local e-mail address. Please check your mail client settings or contact your administrator to verify that the domain or address is defined for this server.
   at System.Net.Mail.RecipientCommand.CheckResponse(SmtpStatusCode statusCode, String response)
   at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception)
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   at mojoPortal.Net.Email.Send(SmtpSettings smtpSettings, String from, String replyTo, String to, String cc, String bcc, String subject, String messageBody, Boolean html, String priority, String[] attachmentPaths, String[] attachmentNames)

Thanks in advance!

aditya

2/4/2011 3:18:29 AM
Gravatar
Total Posts 108
Community Expert

Re: Email error in system log

Check the configuration in your web.config, you need something like this

 

<system.net>
  <mailSettings>
    <smtp from="info@mojoportal.com">
     <network
       host="mail.mojoportal.com"
       port="25"
       password="admin"
       userName="info@mojoportal.com"
     />
   </smtp>
 </mailSettings>
</system.net> 

2/4/2011 11:57:42 AM
Gravatar
Total Posts 18439

Re: Email error in system log

Make sure you set the Default Email From Address in Administration > Site Settings. If it does not match your smtp settings it may be blocked by your smtp server.

http://www.mojoportal.com/emailconfiguration.aspx

Hope it helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.