473,320 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

smtp.send fail

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="ab*@gmail.com">

<network host="smtp.gmail.com" port="587" password="secret" userName="abc"
authenticationMode="SSL"/>

</smtp>

</mailSettings>

</system.net>


Sep 28 '07 #1
2 1827
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/
======================================
"Bgreer5050" <bg********@yahoo.comwrote in message news:s3****************@newssvr21.news.prodigy.net ...
>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="ab*@gmail.com">

<network host="smtp.gmail.com" port="587" password="secret" userName="abc" authenticationMode="SSL"/>

</smtp>

</mailSettings>

</system.net>


Sep 28 '07 #2

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" <bg********@yahoo.comwrote in message
news:s3****************@newssvr21.news.prodigy.net ...
>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="ab*@gmail.com">

<network host="smtp.gmail.com" port="587" password="secret" userName="abc"
authenticationMode="SSL"/>

</smtp>

</mailSettings>

</system.net>


Sep 28 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dan Boyle | last post by:
Hi, I am having difficulty connection to an smtp host. I am using the following code but I don't think I fully understand what smtp host can be used. function setSMTPParams($host = null,...
34
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access Connection granted to "127.0.0.1". 3. Relay only allow...
3
by: piercy | last post by:
is there a way to verify a SMTP server? for instance. my users specify the SMTP server depending on there local settings. if they put in a wrong smtp address it will still attempt to send the...
16
by: bgreer5050 | last post by:
I have a form with the following fields: UserEmail Subject Body When the form is submitted, the email is processed fine. When I try to add another field to the mm.body (mm.Body = Body.Text...
9
by: Keith G Hicks | last post by:
I have a vb app that runs on a server. It periodically checks for rows in a table that are ready to have data mailed out to clients. After it finds row(s) that are ready, it emails the info out and...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.