SMTP server configuration in Web.Config

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.
11/5/2008 3:13:02 PM
Gravatar
Total Posts 3

SMTP server configuration in Web.Config

Hello

I have a problem with my new mojoPortal installation.  Mostly it's working but the email for new registrations (and I would assume password resets) is not working.

My web.config includes the following sections (domain name obscured):

<add key="SMTPServer" value="mail._mydomain_.net" />
<add key="SMTPRequiresAuthentication" value="false" />
<add key="SMTPUseSsl" value="false" />
<add key="SMTPPort" value="25" />
<add key="SMTPUser" value="" />
<add key="SMTPPassword" value="" />
<add key="SMTPTimeoutInMilliseconds" value="15000" />
<!-- leave this blank for ascii encoding -->
<add key="SmtpPreferredEncoding" value="" />
 

and:

<system.net>
<mailSettings>
<smtp from="noreply@_mydomain_.net">
<network
host="mail._mydomain_.net"
port="25"
password=""
userName=""
/>
</smtp>
</mailSettings>
</system.net>
 

The normal email functions work - the contact form correctly sends messages.  However the registration email does not work.  The log shows (slightly obscured):

2008-11-04 21:34:46,872 ERROR mojoPortal.Web.Global - 999.999.999.999-en-GB - /Secure/Register.aspx
System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> 550 <newuser@domain.com> No such user here

I can confirm the email address in the unobscured log message is a valid email address - the contact form correctly sends to that address.

The config looks OK to me, so I'm thinking maybe the problem is not with mojoPortal.  Trouble is, I can't think of where to look next.  Is it possible my host is somehow preventing me changing <system.net> settings somehow ?

I would be grateful for any ideas offered.

Thanks

Mike

11/5/2008 3:58:19 PM
Gravatar
Total Posts 18439

Re: SMTP server configuration in Web.Config

Hi Mike,

Your settings look right. Its possible the host is forcing or limiting some setting there, worth at least asking them.

The "no such user here" sounds like a response from a receiving mail server though. I would expect a different message if it could not send.

Wish I could be more help.

Best,

Joe

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