I was told to look at adding authentication to my web.config file; I added
the following:
authenticationMode="SSL"
I put this in my web.config mail settings and when I put the mouse
over it, i get the following message:
"The authenticationMode attribute is not declared"
Can you please help?
The entire web.config system.net......
<system.net>
<mailSettings>
<smtp from="abc@dotnet.itags.org.gmail.com">
<network host="smtp.gmail.com" port="587" password="secret" userName="abc"
authenticationMode="SSL"/>
</smtp>
</mailSettings>
</system.net>That's not the kind of authentication needed to send authenticated email.
Get rid of that web.config entry and see :
http://www.systemnetmail.com/faq/4.2.aspx
...for sample code to send authenticated email.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
======================================
"Bgreer5050" <bgreer5050@.yahoo.comwrote in message news:s3YKi.9313$JD.7122@.newssvr21.news.prodigy.net ...
Quote:
Originally Posted by
>I posted a problem with sending email via smtp using Dot Net 2.0
>
I was told to look at adding authentication to my web.config file; I added the following:
>
authenticationMode="SSL"
>
I put this in my web.config mail settings and when I put the mouse
over it, i get the following message:
>
"The authenticationMode attribute is not declared"
>
Can you please help?
>
>
The entire web.config system.net......
>
<system.net>
>
<mailSettings>
>
<smtp from="abc@.gmail.com">
>
<network host="smtp.gmail.com" port="587" password="secret" userName="abc" authenticationMode="SSL"/>
>
</smtp>
>
</mailSettings>
>
</system.net>
>
>
>
>
He is using a custom solution I wrote at my blog, and not realizing it was a
custom solution, and trying to mix/match elements.
http://sholliday.spaces.live.com/Blog/cns!A68482B9628A842A!138.entry
OP,
Please see the note above. My solution cannot be intermixed with original
DotNet config setup.
"Bgreer5050" <bgreer5050@.yahoo.comwrote in message
news:s3YKi.9313$JD.7122@.newssvr21.news.prodigy.net ...
Quote:
Originally Posted by
>I posted a problem with sending email via smtp using Dot Net 2.0
>
I was told to look at adding authentication to my web.config file; I
added the following:
>
authenticationMode="SSL"
>
I put this in my web.config mail settings and when I put the mouse
over it, i get the following message:
>
"The authenticationMode attribute is not declared"
>
Can you please help?
>
>
The entire web.config system.net......
>
<system.net>
>
<mailSettings>
>
<smtp from="abc@.gmail.com">
>
<network host="smtp.gmail.com" port="587" password="secret" userName="abc"
authenticationMode="SSL"/>
>
</smtp>
>
</mailSettings>
>
</system.net>
>
>
>
>
0 comments:
Post a Comment