Using gmail it did worked. but the mail I want to use is active and I can login with credentials by webmail and can also send mail. Where might be the problem based on the configuration on my first post?
Eran, Your last suggestion did not work either. The only working configuration is using gmail. I do not understand why it does not work with my corporate mail
Dose the ContactForm use the username and password to logon to the smtp-server? What if you try to make "your own" email usercontrol to just make sure that you can send emails using the smtpclient-class? I'm thinking that you can make sure if its you mailserver or the package that is causing the problems.
Error sending the form
I have set up the form successfully but I am unable to send it and every time I get failureHeaderText and failureMessageText.
I checked the configuration many times
Do I miss something?
hi,
are you sure you smtp settings are correct?
to check this, if you have gmail account, try first to sent it using gmail. this is the setting that working for gmail:
and in the RVContactForm.config:
if it also doenst work, so its something else - try to debug the RVContactForm.js using firebug to see the request and response from the webservice.
let me know.
Eran
Hi Eran,
Using gmail it did worked. but the mail I want to use is active and I can login with credentials by webmail and can also send mail. Where might be the problem based on the configuration on my first post?
Are you sure that your outgoing server (smtp) is open for connections? Have you tried it in ie. Outlook?
hi, maybe this will helps you:
this is the configuration that i'm using on other site, that uses the local smtp email to send mail. try this:
and the RVContactForm.config:
Markus, I can send and receive mails by outlook.
Eran, Your last suggestion did not work either. The only working configuration is using gmail. I do not understand why it does not work with my corporate mail
Dose the ContactForm use the username and password to logon to the smtp-server? What if you try to make "your own" email usercontrol to just make sure that you can send emails using the smtpclient-class? I'm thinking that you can make sure if its you mailserver or the package that is causing the problems.
I had a look at the source-code and i think i found the problem. No Network Credential are set on the StmpClient:
SmtpClient mySMTPClient = new SmtpClient();
if (enableSSL=="true")
{
mySMTPClient.EnableSsl = true;
}
try
{
mySMTPClient.Send(strEmailFrom, strEmailTo, strEmailSubject, strEmailBody);
}
catch (SmtpException ex)
{
throw new SmtpException("error sending mail",ex);
}
I think that the package-creator need to add something like this:
mySMTPClient.Credentials = new NetworkCredential("username", "password");
Because the username and passwords set in web.config are not used by default. You may need to set them in code accourding to this posts:
http://stackoverflow.com/questions/2766928/how-to-set-username-and-password-for-smtpclient-object-in-net
http://stackoverflow.com/questions/4685219/smtpclient-wont-authenticate-when-inflated-from-web-config
hi markus,
did you try to modify the code and it worked?
did you solved it in other way?
thanks.
eran.
So did anyone modify the package ? I'm having the same problem, my smtp server doesn't allow relaying...
is working on a reply...