error sending mail

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.
2/15/2009 7:55:34 AM
Gravatar
Total Posts 12

error sending mail

Hi, after installing the latest version I cannot send mail (testing the about form). Apparently an empty address somewhere, but where do I put it?

The following is from the log: (Parametern is Swedish for parameter, Parameternamn is Parameter name, vid is probably by or near)

System.ArgumentException: Parametern address kan inte vara en tom sträng.
Parameternamn: address
vid System.Net.Mail.MailAddress..ctor(String address, String displayName, Encoding displayNameEncoding)
vid System.Net.Mail.MailAddress..ctor(String address)
vid mojoPortal.Net.Email.SendEmailNormal(SmtpSettings smtpSettings, String from, String to, String cc, String bcc, String subject, String messageBody, Boolean html, String priority)
vid mojoPortal.Net.Email.SendEmail(SmtpSettings smtpSettings, String from, String to, String cc, String bcc, String subject, String messageBody, Boolean html, String priority)
vid mojoPortal.Web.ContactUI.ContactForm.btnSend_Click(Object sender, EventArgs e)
 

The following is in web.config:

<add key="SMTPServer" value="localhost"/>
<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"/> 

<system.net>
<mailSettings>
<smtp from=noreply@xxx.xx>
<network host="localhost" port="25" password="" userName="" />
</smtp>
</mailSettings>
</system.net>

2/15/2009 8:41:18 AM
Gravatar
Total Posts 12

Re: error sending mail

Whoops, I found the cause: somehow the address you put in the contact form properties had disappeared, but now it works ok.

 

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