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>
Juan T. Llibre - 28 Sep 2007 02:09 GMT
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 español : http://asp.net.do/foros/
======================================
>I posted a problem with sending email via smtp using Dot Net 2.0
>
[quoted text clipped - 24 lines]
>
> </system.net>
Mark Fitzpatrick - 28 Sep 2007 02:13 GMT
If you look in the documentation, there is no authenticationMode attribute
for the <network> config element.

Signature
Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
>I posted a problem with sending email via smtp using Dot Net 2.0
>
[quoted text clipped - 26 lines]
>
> </system.net>
sloan - 28 Sep 2007 15:52 GMT
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.
>I posted a problem with sending email via smtp using Dot Net 2.0
>
[quoted text clipped - 26 lines]
>
> </system.net>
Bgreer5050 - 29 Sep 2007 22:15 GMT
Thanks Sloan.
I missed that.
> 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.
[quoted text clipped - 35 lines]
>>
>> </system.net>