No success sending email using gmail smtp server

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.
4/11/2009 12:04:41 AM
Gravatar
Total Posts 2

No success sending email using gmail smtp server

I am having problems with sending emails either to notify users when a feedback is submitted or through using Contact Form.

I have web.config settings shown below. I have the same setting related to the SMTP server in my wiki, and it is working just fine.

I am using Windows server 2003, mojoPortal Version 2.2.9.6 MSSQL
 

<add key="DisableDotNetOpenMail" value="false" />
<add key="SMTPServer" value="smtp.gmail.com" />
<add key="SMTPRequiresAuthentication" value="true" />
<add key="SMTPUseSsl" value="true" />
<add key="SMTPPort" value="587" />
<add key="SMTPUser" value="******@gmail.com" />
<add key="SMTPPassword" value="********" />
<add key="SMTPTimeoutInMilliseconds" value="15000" />
<!-- leave this blank for ascii encoding -->
<add key="SmtpPreferredEncoding" value="" />


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

I tried to alter the settings, but no luck.

I either see in the log error 504 Unrecognized authentication type (e.g. when setting DisableDotNetOpenMail to true)
Or I don't see any error in the log, but I don't receive any email.

 

2009-04-10 21:46:03,156 ERROR mojoPortal.Web.mojoBasePage - 67.170.13.87-en-US - /HHADV/progress.aspx
504 Unrecognized authentication type
2009-04-10 21:46:03,218 ERROR mojoPortal.Web.Global - 67.170.13.87-en-US - /HHADV/progress.aspx
504 Unrecognized authentication type


2009-04-10 21:52:26,906 ERROR mojoPortal.Web.mojoBasePage - 67.170.13.87-en-US - /HHADV/progress.aspx
504 Unrecognized authentication type
2009-04-10 21:52:26,906 ERROR mojoPortal.Web.Global - 67.170.13.87-en-US - /HHADV/progress.aspx
504 Unrecognized authentication type
 

 

4/12/2009 6:59:46 AM
Gravatar
Total Posts 18439

Re: No success sending email using gmail smtp server

Hi,

Make sure that the "Email From Address" in Site Settings is the same as the email address used to send email in smtp settings. 

For gmail, set this to true:

<add key="DisableDotNetOpenMail" value="true" />

Hope it helps,

Joe

4/13/2009 1:56:37 AM
Gravatar
Total Posts 2

Re: No success sending email using gmail smtp server

Thanks for you help, but this is still not working for me. I tried what you suggested earlier, and I tried it again now, but no luck.

Any idea?

4/13/2009 4:57:51 AM
Gravatar
Total Posts 18439

Re: No success sending email using gmail smtp server

I would  experiment with the SMTPUseSsl and see if it has any effect. You should also log in to your gmail account and verify the correct smtp settings there, maybe they use different ports in some parts of the world.

Make sure you put an email address to receive the email in the contact form settings.

Keep checking the mojoportal log after each experiment and see if an error is logged and if it changes at all.

Hope it helps,

Joe

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