site email not working

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.
10/7/2015 4:26:15 PM
Gravatar
Total Posts 4

site email not working

I believe I have tried everything with no luck. I have not been able to get the site to send any email.  I have tried several email servers such as Outlook, localhost, gmail.  Below is my settings for gmail.

Please HELP!

Mail Settings

SMTP User: okgreencountryfastpitch@gmail.com

SMTP Server: smtp.gmail.com

SMTP Port: 465

SMTP Requires Authentication?  Yes

SMTP Use SSL? Yes

General

Site Email From Address: okgreencountryfastpitch@gmail.com

Contact Form Settings

Email Address(es) To Receive Submissions: kevin.satterfield.osu@gmail.com

System Log

2015-10-07 14:20:36,679 ERROR 68.109.249.99 - en-US - /contact-us - mojoPortal.Net.Email - error sending email to kevin.satterfield.osu@gmail.com from okgreencountryfastpitch@gmail.com, will retry 
System.Net.Mail.SmtpException: The operation has timed out.
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   at mojoPortal.Net.Email.Send(SmtpSettings smtpSettings, MailMessage message)
2015-10-07 14:21:09,710 ERROR 68.109.249.99 - en-US - /contact-us - mojoPortal.Net.Email - all retries failed sending email to kevin.satterfield.osu@gmail.com from okgreencountryfastpitch@gmail.com, message was: Admin<br />kevin.satterfield@outlook.com<br /><br /><p>Testing</p>
<br /><br />HTTP_USER_AGENT: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)<br />REMOTE_HOST: 68.109.249.99<br />REMOTE_ADDR: 68.109.249.99<br />LOCAL_ADDR: 204.93.193.38<br /> 
System.Net.Mail.SmtpException: The operation has timed out.
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   at mojoPortal.Net.Email.Send(SmtpSettings smtpSettings, MailMessage message)

 

10/8/2015 9:40:19 AM
Gravatar
Total Posts 2239

Re: site email not working

Hi,

More than likely your host isn't allowing SMTP traffic out of their server and using localhost you may still need other settings configured to authenticate properly.

To be sure you're setting the proper settings, see the 'Email Configuration' article on this site.

Hope this helps,
Joe D.​

10/9/2015 9:43:03 AM
Gravatar
Total Posts 4

Re: site email not working

I verified with my host, they are allowing SMTP traffic out and they also confirmed the smtp settings.  

They suggested the issue could be in the code.

10/9/2015 10:11:11 AM
Gravatar
Total Posts 2239

Re: site email not working

Hi,
 
I don't want to be dismissive but there are literally thousands of sites running mojoPortal and email works fine on those, there isn't a code problem.
 
Please share the following information so I can help you troubleshoot the problem.
  • Version of mojoPortal, including .NET version.
  • Values for the following keys in your user.config (if they aren't in your user.config, copy them from your web.config to the user.config). I know you provided this information previously but not as key/value pairs and I just want to double-check that things are in the right place. The values shown below are the defaults.
    • <add key="SMTPServer" value="localhost" />
    • <add key="SMTPRequiresAuthentication" value="false" />
    • <add key="SMTPPort" value="25" />
    • <add key="SMTPUseSsl" value="false" />
    • <add key="EnableSiteSettingsSmtpSettings" value="false" />
Thanks,
Joe D.
10/9/2015 12:01:49 PM
Gravatar
Total Posts 4

Re: site email not working

Thanks, below is my version info and the settings from web.config.  I copied these to the user.config and still didn't have any luck.  

I was able to use an online application "http://smtper.nanogenesis.fr/" to test the host server and it worked.

mojoPortal Version 2.4.0.9 MSSQL
Operating System Microsoft Windows NT 6.1.7601 Service Pack 1
ASP.NET Info 4.0.30319.34209 Running in Full Trust
Server Time Zone Pacific Daylight Time
Server Local Time (GMT -7) 10/9/2015 9:54:26 AM
Greenwich Mean Time (GMT/UTC) 10/9/2015 4:54:26 PM 
 

  <add key="SMTPServer" value="mail.greencountryfastpitch.com" />
  <add key="SMTPRequiresAuthentication" value="true" />
  <add key="SMTPPort" value="25" />
  <add key="SMTPUseSsl" value="false" />    
  <add key="EnableSiteSettingsSmtpSettings" value="false" />
  
  <add key="SMTPUser" value="no_reply@greencountryfastpitch.com" />
  <add key="SMTPPassword" value="***********" />

10/9/2015 12:33:45 PM
Gravatar
Total Posts 2239

Re: site email not working

Hi Kevin,

Email me using this form and I'll send you an smtp server to try. I can then monitor that server to see if your site is able to talk to it.

Thanks,
Joe​ D.

10/9/2015 1:29:13 PM
Gravatar
Total Posts 4

Re: site email not working

I sent you an email using the form.

Thanks!

10/13/2015 9:39:01 AM
Gravatar
Total Posts 2239

Re: site email not working

For others reading this, the site was able to send using a different email server other than the original posters. Eventually, Kevin decided to reinstall mojo in a new site and everything worked fine at that point. I think the problem was in some kind of .net caching on his server.

Thanks,
Joe D.

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