Do you get some kind of error when sending an e-mail? (You should be able to see these in the log manager if you have the log manager package installed).
Entry log: System.Net.Mail.SmtpException: The SMTP server requires a secure
connection or the client was not authenticated. The server response was:
5.7.0 Must issue a STARTTLS command first.
Just come to think about it...don't think this will help...Something tells me you need to make another extension based on the umbraco.library:SendMail() extension, which takes one more parameter to allow for SSL...
I think it was Pinal Bhatt in here who did this and posted the solution - however I must admit I can't remember the title of the post but try searching for it in here. I will let you know if I find it.
No way. I enabled SSL in my domain and tried again refreshing IIS with ports 587 and 465. The first still gives STARTTLS error and the second times out.
Do you know any other thing i can try to make it work?
The From address and the username have to match, you can't use Gmail as a relay for an alternative email address and the port has to be 587 and SSL true.
As Nick suggests web.config configuration should be similar to what he points.
It's possible that Google blocks any email you try to send from the server where website is hosted. In that case, you should receive an email notifying of attempted unauthorized account access. Just follow email instructions to mark the server as a trusted device/machine. That should do the trick.
Need help to config mail settings
Hi.
I am trying to config my google apps mail domain in web.config file but i can't get it to work. My file reads:
<system.net>
<mailSettings>
<smtp from="[email protected]" deliveryMethod="Network">
<network defaultCredentials="false" host="smtp.gmail.com" port="465" userName="[email protected]" password="xxxx" />
</smtp>
</mailSettings>
</system.net>
What am i doing wrong?
Thanks in advance for your work!
Hi Ivan
Do you get some kind of error when sending an e-mail? (You should be able to see these in the log manager if you have the log manager package installed).
Have you tried to use port 587 instead of 465?
/Jan
I will give it a try.
Thanks Jan.
Hi again Jan.
Entry log: System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first.
And was this error occuring when the port was set to 587 or 465?
/Jan
Both
Have a look at this post's 1. suggestion: http://www.google.com/support/forum/p/Google%20Apps/thread?tid=396e53acd0030ef4&hl=en
Does this help?
/Jan
Hi again
Just come to think about it...don't think this will help...Something tells me you need to make another extension based on the umbraco.library:SendMail() extension, which takes one more parameter to allow for SSL...
I think it was Pinal Bhatt in here who did this and posted the solution - however I must admit I can't remember the title of the post but try searching for it in here. I will let you know if I find it.
/Jan
No way. I enabled SSL in my domain and tried again refreshing IIS with ports 587 and 465. The first still gives STARTTLS error and the second times out.
Do you know any other thing i can try to make it work?
__________________________________________________________________________________________________________________________
UPDATE!
Finally I used information in this post to solve the problem:
http://our.umbraco.org/projects/website-utilities/cultiv-legacy-contact-form-%28pre-47!%29/requests-and-questions/2662-How-to-relay-mail-through-Gmail
Ivan are you able to advise on the fix as that article is not available anymore.
Hi Jack,
I believe google made various changes. I've only ever been able to get it to work with the following configuration:
The From address and the username have to match, you can't use Gmail as a relay for an alternative email address and the port has to be 587 and SSL true.
Cheers,
Nik
Hi Jack,
As Nick suggests web.config configuration should be similar to what he points.
It's possible that Google blocks any email you try to send from the server where website is hosted. In that case, you should receive an email notifying of attempted unauthorized account access. Just follow email instructions to mark the server as a trusted device/machine. That should do the trick.
Best, Ivan
is working on a reply...