Sending Mail is not working in server side but working in local system

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
6/16/2014 4:59:29 AM
Gravatar
Total Posts 5

Sending Mail is not working in server side but working in local system

Hi  EveryOne

These is swetha,

iam not getting any mails from other users as iam admin of the page. And These below settings are working fine in local machine but on server side its not working

Here is my user.config setting

<add key="SMTPServer" value="smtp.gmail.com" />
    <add key="SMTPRequiresAuthentication" value="true" />
    <add key="SMTPPort" value="587" />
    <add key="SMTPUser" value="myID@gmail.com" />
    <add key="SMTPPassword" value="myPWD" />
<add key="SMTPUseSsl" value="true" />
     <add key="EnableSiteSettingsSmtpSettings" value="false" />
 <add key="SMTPTimeoutInMilliseconds" value="180000" />

=====================================================================================================

And Here is My Web.config settings

 <system.net>
    <mailSettings>
      <smtp from="myID@gmail.com">
        <network host="smtp.gmail.com" port="587" password="myPWD" userName="myID@gmail.com" />
      </smtp>
    </mailSettings>
  </system.net>

==================================================================================

In Contact form Settings

Email Address(es) To Receive Submissions:- myID@gmail.com

==================================================================================

In AdminSetting->Site Email From Address :-myID@gmail.com

========================================================================================================

In System log the following errros:-

2014-06-16 02:17:01,555 ERROR 49.204.226.50 - en-US - /contact - mojoPortal.Net.Email -

all retries failed sending email to myID@gmail.com from myID@gmail.com, message was: Admina<br />UserID@gmail.com<br /><br /><p>aaaa</p>
<br /><br />HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36<br />REMOTE_HOST: 49.204.226.50<br />REMOTE_ADDR: 49.204.226.50<br />LOCAL_ADDR: 23.91.123.136<br />


System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at
   at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response)
   at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, MailAddress from, Boolean allowUnicode)
   at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, Boolean allowUnicode, SmtpFailedRecipientException& exception)
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   at mojoPortal.Net.Email.Send(SmtpSettings smtpSettings, MailMessage message)

 

 

Can Any Body Help me out with these problem.

Best Regards

Swetha

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