Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

smtp.send fail

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bgreer5050 - 28 Sep 2007 01:39 GMT
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>

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.