an ASP.NET Open Source CMS & eCommerce platform
Search:
Last Post 5/12/2009 8:58:00 AM By lukezy. 3 replies.
5/12/2009 5:27:04 AM
shairyar
Posts: 2
Joined: 11/17/2008
Contact Us control
Hi, not sure if this has been posted before if it has been then please direct me to the right thread. My question is that i am using the contact form control, and for this do we need to change anything in "EmailManager.cs" or system will pick up the details from the e-mail given under site setup wizard, reason i am asking this is because i keep getting the following error when i click submit even though all the details are correct.
 
 
Failed to send email. Please verify email address is correct. Or you could send email directly to shairyar_abaig@yahoo.com
 
 
5/12/2009 8:03:07 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Contact Us control
This is the email validation error. Check the email address in General -> Address -> Site Email is valid. Please remove empty spaces if there is any.
DotShoppingCart Staff
5/12/2009 8:26:53 AM
shairyar
Posts: 2
Joined: 11/17/2008
Re: Contact Us control
The e-mail address was fine, when i started looking in more detail while debuging it i found out somewhere i had to give smtp server for the mails to go through. in EmailManager.cs i placed my server ip and it worked. I hope this is how it is supposed to be and it is not going to mess anything else up although mails are going through now.
 
new SmtpClient("SMTPSERVER").Send(message);
 
Regards,
Shairyar
5/12/2009 8:58:00 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Contact Us control
You don't need to change the code in EmailManager.cs. Instead you should configure it correctly in web.config. Check the smtp settings in web.config.
DotShoppingCart Staff