If you don't have an smtp server available on your hosting machine, you can use your Gmail account to relay your mail. The disadvantage of doing this is that the "from" address will always be your Gmail account's address.
When you create content item, you have an optional checkbox "Mailserver SSL on". We need SSL for Gmail, so set this checkbox to true.
Id say both. This probably how wiki material starts. Now we just need a way of handling this. Would be cool if we could mark posts as potiential wiki material and process them later.
Yes that would be a nice feature I think. But maybe I was also to fast. Have first realised that this post is actually related to the page with the package :)
I tried putting the smtp configuration in both .config file and from the code behind (SMTPClient object) but unfortunately, none of them are working. Can you please suggest me what to do to resolve the problem? Did I miss any thing here? Waiting for your kind and earliest response on this. Thanks in advance for your time.
What version of Umbraco are you using? This works without modification when added in web.config on some versions (i want to say 4.5+) but required a fix on previous versions.
Also, make sure you're using FQDN for the username and check if they are in your gmail outbox. I always use gmail for SMTP, sometimes you'll just overlook something and it won't work as expected.
How to relay mail through Gmail
If you don't have an smtp server available on your hosting machine, you can use your Gmail account to relay your mail.
The disadvantage of doing this is that the "from" address will always be your Gmail account's address.
When you create content item, you have an optional checkbox "Mailserver SSL on". We need SSL for Gmail, so set this checkbox to true.
In your web.config, use these settings:
This is a great tip and I really like it :) But I am wondering if it should'nt be placed in a wiki rather in a post on the forum?
Id say both. This probably how wiki material starts. Now we just need a way of handling this. Would be cool if we could mark posts as potiential wiki material and process them later.
/Jesper
Yes that would be a nice feature I think. But maybe I was also to fast. Have first realised that this post is actually related to the page with the package :)
Just wanted to say, thank you! x
Wrong thread, sorry :)
hi,
I tried putting the smtp configuration in both .config file and from the code behind (SMTPClient object) but unfortunately, none of them are working. Can you please suggest me what to do to resolve the problem? Did I miss any thing here? Waiting for your kind and earliest response on this. Thanks in advance for your time.
Regards,
sharad kumar rathore
What version of Umbraco are you using? This works without modification when added in web.config on some versions (i want to say 4.5+) but required a fix on previous versions.
Also, make sure you're using FQDN for the username and check if they are in your gmail outbox. I always use gmail for SMTP, sometimes you'll just overlook something and it won't work as expected.
-Amir
is working on a reply...