CodePlexProject Hosting for Open Source Software
I can not send my email when i use SMTP ( GMail ) .
This is my config.
<network host="smtp.gmail.com" port="587" userName="firstname.lastname@example.org" password="mypassword" />
Steps to reproduce, expected behaviour, actual behaviour.
Do you have any exception or stacktrace you can show us?
Do this work from a std. asp.net page that send mail? Composite C1 uses the std. .net api for mailing and if your settings are correct (and registered in web.config) you
should be fine.
marcus, shouldn't you be sleeping by now? :P
In your subject you're saying that you want to use SSL, but then you should tell .Net that as well with the
attribute on network
I got this error when posting a comment . ( I use SMTP - Gmail )
"Failed to get value for function 'Composite.Community.Blog.BlogRenderer' - An error occurred during a call to extension function 'CallFunction'. See InnerException for a complete description of the error. - Failed to get value for function 'Composite.Community.Blog.Comments'
- 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. p8sm9788036wff.16 - "
thats because you havent enabled ssl
I've just solved the problem
SmtpClient client = new SmtpClient();
client.EnableSsl = true; // I just add this line
my dear friend... you need to set it in your web.config, not hardcode it in code
Are you sure you want to delete this post? You will not be able to recover it later.
Are you sure you want to delete this thread? You will not be able to recover it later.