Not able to send email from contact form

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.
8/26/2012 1:30:25 PM
Gravatar
Total Posts 1

Not able to send email from contact form

Hey Joe,

I need help.

I have 2.3.8.5 up and running on my ISP but I’m not able to send email messages from a contact form.
However, sending email from my test site (2.3.6.7 and web matrix) on my local development PC works as a dream.

 I have the same email setup on both system, but it only works on my local PC.

Also, the message I enter in the contact form is identical on both system.
This rule out the idée that the message is treated as spam since I’m able to send it from my local site.

I have read http://www.mojoportal.com/basic-troubleshooting.aspx  and observed the following:

  •  Sending an email from the contact form produces no entries in the system log on my live site.
    This also applies if the email settings are illegal.
  • However, illegal email settings on my development PC gives log entries in the test site system log.

If find that a bit odd.
There are some log entries on the live site but they look a bit strange:
Here is an example: 2012-08-26 13:30:54,342 INFO 2012-08-26 13:40:54,704 INFO


I have only done 3 changes to the original web.config file on the live site so I think the file is OK:

  1. <add key="RunningInMediumTrust" value="true"/>
  2. <machineKey validationKey ....................>
  3. <customErrors mode="Off" defaultRedirect="Error.htm">

What is wrong?
Is it an issue with partial vs ful trust ?


Additional information:

Live site:
mojoPortal Version2.3.8.5 MSSQL
Operating SystemMicrosoft Windows NT 6.1.7600.0
ASP.NET Infov4.0.30319 Running in Partial Trust

Note: I have used mojoPortal package for .NET 4 and the site is hosted on a .net 4 platform.

Test site
mojoPortal Version2.3.6.7 MSSQL
Operating SystemMicrosoft Windows NT 6.1.7600.0
ASP.NET Infov4.0.30319 Running in Full Trust

Email configuration:

I have read and followed all instructions described in:

I have done 3 changes  

#1
In user.config is the following added:
<add key="SMTPServer" value="pod51016.outlook.com" />
<add key="SMTPRequiresAuthentication" value="true" />
<add key="SMTPPort" value="587" />
<add key="SMTPUser" value="post@XXXXX.no" />
<add key="SMTPPassword" value="___" />
<add key="SMTPUseSsl" value="true" />

#2
In Administration, Site Settings, "Site Email From Address" =  post@XXXXX.no

#3
In the contact form:

  •  Email Address(es) To Receive Submissions =  post@XXXXX.no
  • "Use entered email as from address" checkbox is unchecked.

 

 

 

 

8/27/2012 10:00:06 AM
Gravatar
Total Posts 18439

Re: Not able to send email from contact form

You should check with your web host. Some web hosts such as GoDaddy only allow relaying email through their own servers.

Hope that helps,

Joe

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