Web.config / System.net section / mail settings

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/28/2009 11:09:56 PM
Gravatar
Total Posts 20

Web.config / System.net section / mail settings

Joe -

What are the mail settings for in the web.config file under system.net?

What function does this mail configuration play in the software?

Thank you.

Brian

3/29/2009 6:23:54 AM
Gravatar
Total Posts 18439

Re: Web.config / System.net section / mail settings

Hi Brian,

That is used only for some built in ASP.NET functionality like PasswordRecoveryControl, but other than that all mojoPortal features just use the settings from appSettings

http://www.mojoportal.com/emailconfiguration.aspx

Hope it helps,

Joe 

6/24/2009 1:59:01 AM
Gravatar
Total Posts 17

Re: Web.config / System.net section / mail settings

Hi Joe

I want to set different mail from different section.Like for forum notify email forum@mydomain.com or contact us contact@mydomail.com or for password recovery noreply @mydomain.com. Is it possible  now ?

I also want to modify some text  in email body, how it can be possible. Please reply me as early as possible.

6/24/2009 7:11:03 AM
Gravatar
Total Posts 18439

Re: Web.config / System.net section / mail settings

Hi,

You can control the password recovery because it uses the system.net.mailsettings section so whatever you put there will be used for password recovery.

Currently the from address not so granular per feature and it sends most messages using the site settings from address. It would not be too difficult to add settings in each feature that can send mail though so I will keep this in mind for an upgrade.

Currently the web store uses its own from address so I can have it mailed from sales@mydomain.com

However, it is important to note that if the from address is not the same as the smtp user it can make the mail appear as spam. Its ok if the email addresses used are all from the same domain as the smtp user or aliases of the same account. Basically some mail systems will do a reverse DNS lookup on the smtp server and if the domain on the mx record for the mail server doesn't match the from address the mail can be flagged as spam. So if you are sending from your own smtp server you want to make sure there exists mx records for your domains that resolve to the same ip as the smtp server.

I don't think we want to have per feature smtp settings, that would be cumbersome and complex. I could add the additional from addresses, but it also can lead people to use different addresses that don't correspond to the smtp account, so there are some tradeoffs.

Best,

Joe

7/19/2009 7:38:36 PM
Gravatar
Total Posts 6

Re: Web.config / System.net section / mail settings

Hello,

I have configured my web.config file for my mail server. However, I am still having a major issue sending mail. Here is my config and the error I see on my site.

Email Settings:

<add key="DisableDotNetOpenMail" value="true" />
<add key="SMTPServer" value="mail.server.com" />
<add key="SMTPRequiresAuthentication" value="true" />
<add key="SMTPUseSsl" value="false" />
<add key="SMTPPort" value="587" />
<add key="SMTPUser" value="myserver@server.com" />
<add key="SMTPPassword" value="My Password" />
<add key="SMTPTimeoutInMilliseconds" value="90000" />

<system.net>
<mailSettings>
<smtp from="myserver@server.com">
<network host="mail.server.com" port="587" password="My password" userName="myserver@server.com" />
</smtp>
</mailSettings>
</system.net>

Sorry, your password could not be sent because the server was unable to send the message. Please try again in a few minutes. If the problem persists please notify the Site Administrator. The error has been logged.

 

My email server is not on the same server as the website. However, our MX record is working just fine and we have been receive emails from our email server for years.

Website Server:

Windows 2003 Server

 

Email Server:

Fedora Core 11

 

Any help will greatly appreciated!

 

John Gately


 

7/20/2009 6:00:11 AM
Gravatar
Total Posts 18439

Re: Web.config / System.net section / mail settings

Are those valid credentials?  Are you really using port 587?

If the settings are correct and the web server is allowed to relay through the mail server it will work. There is no way I can tell whether your settings are correct other than that I can assume they are not if mail is not working.

All the helpful information I know is here http://www.mojoportal.com/emailconfiguration.aspx

Hope it helps,

Joe

7/20/2009 9:03:30 AM
Gravatar
Total Posts 6

Re: Web.config / System.net section / mail settings

 Joe, 

 

yes I am using vailid credetials and we are using 587. However, I did changed the server DNS and all the other good stuff to my server. I just wanted to make sure that I was not missing anything. I thank you for your help and I will keep working on this issue. By the way....I think we will be buying your calendar upgrade. 

 

I have used 3 other CMS and yours by far is the easies and best to use. I wish you have more apps. 

 

Keep up the good work!

 

John

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