2.3.0.10 Emails are not sent in Windows Server 2003

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

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.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
7/3/2009 9:16:01 AM
Gravatar
Total Posts 251

2.3.0.10 Emails are not sent in Windows Server 2003

 I am on iis6 and mojoportal 2.3.0.10

The website used to send email successfully; now it does not work anymore

From the log:

2009-07-03 15:07:30,988 ERROR mojoPortal.Net.Email - error sending email to xxx, message was: xxx

System.Net.Mail.SmtpException: Failure sending mail. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port)
at System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port)
at System.Net.Mail.SmtpClient.GetConnection()
at System.Net.Mail.SmtpClient.Send(MailMessage message)
--- End of inner exception stack trace ---
at System.Net.Mail.SmtpClient.Send(MailMessage message)
at mojoPortal.Net.Email.SendEmailNormal(SmtpSettings smtpSettings, String from, String replyTo, String to, String cc, String bcc, String subject, String messageBody, Boolean html, String priority, String[] attachmentPaths, String[] attachmentNames)

My website used to be configured as localhost:25; unauthenticated as I ip banned all the address except localhost

 

my own asp code is perfectly working with my mail server configuration and system.net.mail

and, i have other 4 mojoportal 2.3.0.4 installations that are working fine on sending email (but, this is kinda obvious, as is used dotnetopenmail)

note for joe: i deleted the other post, sorry, i thought it was related, then when i read again, i saw the problem does not write an error in the log, so it is a different problem

How i can copy the stack trace?

7/3/2009 9:36:19 AM
Gravatar
Total Posts 18439

Re: 2.3.0.10 Emails are not sent in Windows Server 2003

I think the banning may be blocking it, its not able to get a connection to localhost, the relaying may not be seen as coming from localhost even though it is on the same machine in the context which the code executes it is not localhost. Whatever ip address the web site runs as needs to be allowed to relay to localhost. localhost only maps to 127.0.0.1 and this is not what the web site is running on so the request is not seen as coming from localhost. If the web site were running as localhost it would work but other domains and ip addresses on the machine are not seen as the same as localhost.

So the local smtp server must be configured to allow mail from the ip address that the web site runs on.

This stack trace looks different than the previous post because it shows the error happens in mojoPortal.Net.Email which either was not in the other post or I missed seeing it somehow.

If your other sites work better using DotNetOpenMail then I would enable it on this one too. 

Hope it helps,

Joe

7/3/2009 11:02:20 AM
Gravatar
Total Posts 251

Re: 2.3.0.10 Emails are not sent in Windows Server 2003

Solved:

it seems that the email function ignores the "SMTP requires authentication" checkbox

Even if i leave it unchecked, when I enter my smtp user&password, the emails will be sent

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