Contact Form

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.
10/22/2011 4:01:15 AM
Gravatar
Total Posts 27

Contact Form

 

Hi I'm not able to send mail.... in lof file it's showing the following error. In web config, i have cofigured..

plz help me....

2011-10-22 13:10:35,297 ERROR 127.0.0.1 - en-US - /mojo portal/contact-us.aspx - mojoPortal.Web.ContactUI.ContactForm - error sending email from address was mukesh@mactechnology.net to address was mukesh@mactechnology.net
System.FormatException: The specified string is not in the form required for an e-mail address.
at System.Net.Mime.MailBnfHelper.ReadMailAddress(String data, Int32& offset, String& displayName)
at System.Net.Mail.MailAddress.ParseValue(String address)
at System.Net.Mail.MailAddress..ctor(String address, String displayName, Encoding displayNameEncoding)
at System.Net.Mail.MailMessage..ctor()
at mojoPortal.Net.Email.Send(SmtpSettings smtpSettings, String from, String fromAlias, String replyTo, String to, String cc, String bcc, String subject, String messageBody, Boolean html, String priority, List'1 attachments)
at mojoPortal.Net.Email.Send(SmtpSettings smtpSettings, String from, String fromAlias, String replyTo, String to, String cc, String bcc, String subject, String messageBody, Boolean html, String priority, String[] attachmentPaths, String[] attachmentNames)
at mojoPortal.Net.Email.Send(SmtpSettings smtpSettings, String from, String replyTo, String to, String cc, String bcc, String subject, String messageBody, Boolean html, String priority, String[] attachmentPaths, String[] attachmentNames)
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)
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)
at mojoPortal.Net.Email.SendEmail(SmtpSettings smtpSettings, String from, String replyTo, String to, String cc, String bcc, String subject, String messageBody, Boolean html, String priority)
at mojoPortal.Web.ContactUI.ContactForm.btnSend_Click(Object sender, EventArgs e)

Operating System Microsoft Windows xp Service Pack 2

ASP.NET Info v3.5.

Server Time Zone Romance Daylight Time

10/22/2011 7:52:45 AM
Gravatar
Total Posts 18439

Re: Contact Form

I don't know. The error seems to indicate it doesn't like that email address but it looks like a valid email address to me

/mojo portal/contact-us.aspx

Is that really the url where you are running it from? I would never use spaces in the virtual directory name.

10/22/2011 8:06:41 AM
Gravatar
Total Posts 27

Re: Contact Form

Hi sir,

This is the url for contact us page..

contact page url --"  http://localhost:1491/mojo%20portal/contact-us.aspx"

I not able to understand why percantage is comming in url for all pages...

Should i remove this page and create new one..Please guide..

10/22/2011 8:11:11 AM
Gravatar
Total Posts 18439

Re: Contact Form

If you know how to change it in IIS I would change it. It requires removing the application/vitual directory and recreate it without the space and point it to the same physical folder where it is already installed. But I would also make sure the physical folder has no spaces in it either.

spaces in urls have to be escaped which makes them ugly like with the %20 as you see.

I don't think it is the cause of the contact form error though. I would try using different email addresses and see if that affects it.

10/24/2011 7:45:37 AM
Gravatar
Total Posts 27

Re: Contact Form

Hi Joe Audette,

 I tried sending mail with another mail as u suggested but still i'm not able to send mail.. The same smtp host is working in other projects. just check my whatever i have configured in webconfig..

<add key="EnableSiteSettingsSmtpSettings" value="false"/>
<add key="MaskSmtpPasswordInSiteSettings" value="true"/>
<add key="ShowSmtpEncodingOption" value="false"/>

<add key="SMTPServer" value="******SmtpHost*****"/>

           <add key="SMTPRequiresAuthentication" value="false"/>

           <add key="SMTPUseSsl" value="true"/>

       <add key="SMTPPort" value="25"/>

           <add key="SMTPUser" value="mukesh@mactechnology.net"/>

           <add key="SMTPPassword" value="******Password**********"/>

           <add key="SMTPTimeoutInMilliseconds" value="30000"/>

    Is there anything i miss to configure..........Plz guide me because of this page,project is getting late sir.....

10/24/2011 7:54:27 AM
Gravatar
Total Posts 18439

Re: Contact Form

check with your web host, some web hosts only allow you to use their smtp servers and nothing else.

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