Outgoing email from contact form

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

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.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
3/17/2008 6:00:40 PM
Gravatar
Total Posts 14

Outgoing email from contact form

Hi. I have run into a problem I can't seem to get around. I am hosting at discountasp.net and can't seem to get the contact form to send an email. According to their tech support, the correct settings are below under <system.net>.
Could you suggest any changes I can make in my web.config that might be helpful? they did tell me that no user was required to send outgoing mail.

Thanks,

Dave


<!--
SMTP - Note you also need to specify smtp settings further below in system.net section
-->
<add key="SMTPServer" value="localhost" />
<add key="SMTPRequiresAuthentication" value="false" />
<add key="SMTPUseSsl" value="false" />
<add key="SMTPPort" value="25" />
<add key="SMTPUser" value="portal@routeadmin.com" />
<add key="SMTPPassword" value="2008" />
<add key="SMTPTimeoutInMilliseconds" value="15000" />

<add key="DefaultEmailFrom" value="portal@routeadmin.com" />
<add key="WebMaster" value="portal@routeadmin.com" />

<add key="MemberListPageSize" value="20" />
<add key="DefaultBlogPageSize" value="10" />
<add key="DefaultInitialSkin" value="techmania" />

==========

<system.net>
<mailSettings>
<smtp>
<network host="localhost" port="25"/>
</smtp>
</mailSettings>
</system.net>

3/18/2008 7:49:40 AM
Gravatar
Total Posts 18439

Re: Outgoing email from contact form

Hi,

The appSettings settings are the ones used by the contact form. The ones under system.net are used only by the built in .NET controls like password recovery.

I would be surprised if localhost is the correct setting for smtp server for DiscountASP as that means the web server is th email server. Normally, if they are your dns, they will have smtp.yourdomain.com or something like it. Login to your control panel at DiscountASP and click Account Info/Edit to see the settings they provide.

Hope it helps,

Joe

3/18/2008 5:06:51 PM
Gravatar
Total Posts 14

Re: Outgoing email from contact form

 Thanks for the help. The settings below are what I am using for the contact form. The password recovery works find. These are the settings that should be here but I still am getting nothing. Is there anything else I should be looking at?

Dave

<add key="SMTPServer" value="smtp.routeadmin.com" />
<add key="SMTPRequiresAuthentication" value="true" />
<add key="SMTPUseSsl" value="false" />
<add key="SMTPPort" value="25" />
<add key="SMTPUser" value="portal@routeadmin.com" />
<add key="SMTPPassword" value="2008" />
<add key="SMTPTimeoutInMilliseconds" value="15000" />

<add key="DefaultEmailFrom" value="noreply@routeadmin.com" />
<add key="WebMaster" value="admin@routeadmin.com" />
<add key="MemberListPageSize" value="20" />
<add key="DefaultBlogPageSize" value="10" />
<add key="DefaultInitialSkin" value="techmania" />

3/19/2008 7:02:19 AM
Gravatar
Total Posts 18439

Re: Outgoing email from contact form

What I would do to trouble shoot it is open your site in 2 browser tabs. In one tab go to Administation > System Log

clear the log.

In another tab, go to your contact form and try to send yourself a message. After that refresh the log and look for errors that may give a clue to the problem.

Ultimately what we really need here is to store all posted messages in the db so that they are not lost in the event of smtp misconfiguration. Its something I hope to get to soon.

Hope it helps,

Joe

3/19/2008 11:08:54 PM
Gravatar
Total Posts 14

Re: Outgoing email from contact form

Thanks. I did watch the system log and nothing showed up there in reference to email. What did show up was a little surprising and I will include some of it here for your comments on what this might be. I have no idea where it is getting these url's. As far as the contact email, well I guess I got too carried away with the web.config and forgot to configure the email address under contact form settings. (oh well) To make it worse the error messages triggered by sending to youraddress@yourdomain.com were going into junk email. Anyway, thanks for insight on the email problem.

Dave

System.Web.HttpException: '~/Data/Sites/1/skins/http://mojazubarka.sk/test/admin/sicaqe/socoqar//layout.Master' is not a valid virtual path.
at System.Web.VirtualPath.Create(String virtualPath, VirtualPathOptions options)
at System.Web.HttpServerUtility.MapPath(String path)
at mojoPortal.Web.SiteUtils.SetMasterPage(Page page, SiteSettings siteSettings, Boolean allowOverride)
at mojoPortal.Web.UI.Pages.SiteHome.SetupMasterPage()
at mojoPortal.Web.UI.Pages.SiteHome.OnPreInit(EventArgs e)
2008-03-18 20:39:31,738 [13344] ERROR mojoPortal.Web.UI.Pages.SiteHome [(null)] - Error setting master page. Will try settingto default skin
System.Web.HttpException: '~/Data/Sites/1/skins/http://www.caneus.org/bbs/com/attachments/zixoz/rifojax/yow//layout.Master' is not a valid virtual path.
at System.Web.VirtualPath.Create(String virtualPath, VirtualPathOptions options)
at System.Web.HttpServerUtility.MapPath(String path)
at mojoPortal.Web.SiteUtils.SetMasterPage(Page page, SiteSettings siteSettings, Boolean allowOverride)
at mojoPortal.Web.UI.Pages.SiteHome.SetupMasterPage()
at mojoPortal.Web.UI.Pages.SiteHome.OnPreInit(EventArgs e)
2008-03-18 20:39:32,285 [26176] ERROR mojoPortal.Web.UI.Pages.SiteHome [(null)] - Error setting master page. Will try settingto default skin
System.Web.HttpException: '~/Data/Sites/1/skins/http://www.antwerpsupporter.be/subscribe_2_me_to-delete/sm/exported_files1/mosupoz/adusa/ojafujo/aweji//layout.Master' is not a valid virtual path.
at System.Web.VirtualPath.Create(String virtualPath, VirtualPathOptions options)
at System.Web.HttpServerUtility.MapPath(String path)
at mojoPortal.Web.SiteUtils.SetMasterPage(Page page, SiteSettings siteSettings, Boolean allowOverride)
at mojoPortal.Web.UI.Pages.SiteHome.SetupMasterPage()

System.Web.HttpException: '~/Data/Sites/1/skins/http://www.northfans.ch/forum/admin/settings/ocoyo/azad//layout.Master' is not a valid virtual path.
at System.Web.VirtualPath.Create(String virtualPath, VirtualPathOptions options)
at System.Web.HttpServerUtility.MapPath(String path)
at mojoPortal.Web.SiteUtils.SetMasterPage(Page page, SiteSettings siteSettings, Boolean allowOverride)
at mojoPortal.Web.UI.Pages.SiteHome.SetupMasterPage()
at mojoPortal.Web.UI.Pages.SiteHome.OnPreInit(EventArgs e)
2008-03-19 00:37:30,310 [4336] ERROR mojoPortal.Web.UI.Pages.SiteHome [(null)] - Error setting master page. Will try settingto default skin
System.Web.HttpException: '~/Data/Sites/1/skins/http://www.lamarguerite.ca/Pat/images/awixeta/veb//layout.Master' is not a valid virtual path.
at System.Web.VirtualPath.Create(String virtualPath, VirtualPathOptions options)
at System.Web.HttpServerUtility.MapPath(String path)
at mojoPortal.Web.SiteUtils.SetMasterPage(Page page, SiteSettings siteSettings, Boolean allowOverride)
at mojoPortal.Web.UI.Pages.SiteHome.SetupMasterPage()
at mojoPortal.Web.UI.Pages.SiteHome.OnPreInit(EventArgs e)
2008-03-19 00:37:31,201 [28544] ERROR mojoPortal.Web.UI.Pages.SiteHome [(null)] - Error setting master page. Will try settingto default skin
System.Web.HttpException: '~/Data/Sites/1/skins/http://www.polisgrandhotel.gr/_cm_admin/maillist/editor/plugins/core/dialogs/qunik/utanac//layout.Master' is not a valid virtual path.
at System.Web.VirtualPath.Create(String virtualPath, VirtualPathOptions options)
at System.Web.HttpServerUtility.MapPath(String path)
at mojoPortal.Web.SiteUtils.SetMasterPage(Page page, SiteSettings siteSettings, Boolean allowOverride)
at mojoPortal.Web.UI.Pages.SiteHome.SetupMasterPage()
at mojoPortal.Web.UI.Pages.SiteHome.OnPreInit(EventArgs e)

 

3/20/2008 9:27:11 AM
Gravatar
Total Posts 18439

Re: Outgoing email from contact form

That looks to me like some scripts or bots trolling your site making up arbitrary urls, probably like http://yoursiteroot/?skin=somearbitraryurlorvaluethatisntreallyaskin

so its logging the error and using the default skin

Joe

3/22/2008 11:45:09 PM
Gravatar
Total Posts 14

Re: Outgoing email from contact form

Thanks. I appreciate your help greatly.

Dave

5/11/2011 3:08:27 PM
Gravatar
Total Posts 87

Re: Outgoing email from contact form

Hi,

i found this topic because trying to set mail from in contact form and seem can't set it, in webconfig of latest version i did not found this tag

<add key="DefaultEmailFrom" value="portal@routeadmin.com" />

added it, but still i get emails from  "noreply@yourdomain.com", first i tried to set different name in mailSettings tag, but from this post i see it is not used for contact form.

where i can find correct setting for this?

Thank you.

5/11/2011 3:26:06 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Outgoing email from contact form

It uses the setting in Administration, Site Settings, "Site Email From Address".

Jamie

5/12/2011 10:01:12 AM
Gravatar
Total Posts 18439

Re: Outgoing email from contact form

As Jamie said, it comes from Administration > Site Settings.

We have no such setting in the Web.config of the latest version of mojoPortal, we may have had a setting like that a long time ago, so if you really have that setting in your Web.config file it is likely that you are not using the latest version of mojoPortal.

You can find your version under Administration > System Information, the current latest version is 2.3.6.5.

Best,

Joe

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