468,491 Members | 1,961 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,491 developers. It's quick & easy.

SMTP password

I'm trying to write code that will send an e-mail using WinSock.
Problem is that my server requires my password for outgoing e-mail.
What is the SMTP format for supplying the password to the server?? I've
checked out http://www.faqs.org/rfcs/rfc821.html but there is
absoulutely nothing concerning authentication. Any help appreciated.
Nov 20 '05 #1
12 2441
In article <a_***************@newssvr22.news.prodigy.com>,
co****@anon.com says...
I'm trying to write code that will send an e-mail using WinSock.
Problem is that my server requires my password for outgoing e-mail.
What is the SMTP format for supplying the password to the server?? I've
checked out http://www.faqs.org/rfcs/rfc821.html but there is
absoulutely nothing concerning authentication. Any help appreciated.


Perhaps it's this one:

"RFC 2554 - SMTP Service Extension for Authentication"
http://www.faqs.org/rfcs/rfc2554.html

--
Patrick Steele
Microsoft .NET MVP
http://weblogs.asp.net/psteele
Nov 20 '05 #2
copyco <co****@anon.com> wrote in news:a_rYb.551$kG3.457
@newssvr22.news.prodigy.com:
I'm trying to write code that will send an e-mail using WinSock.
Problem is that my server requires my password for outgoing e-mail.
What is the SMTP format for supplying the password to the server?? I've
checked out http://www.faqs.org/rfcs/rfc821.html but there is
absoulutely nothing concerning authentication. Any help appreciated.


There are about half a dozen ways to specify authentication for SMTP. Only
LOGIN is simple.

Use Indy instead, its free and supports all the common methods as well as
some uncommon ones. Its also free. ;)

http://www.indyproject.org/


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
Nov 20 '05 #3
Yeah, I'm finding that examples given for SMTP authentication just
aren't working on my server. How does my e-mail client do it then?
Chad Z. Hower aka Kudzu wrote:
copyco <co****@anon.com> wrote in news:a_rYb.551$kG3.457
@newssvr22.news.prodigy.com:
I'm trying to write code that will send an e-mail using WinSock.
Problem is that my server requires my password for outgoing e-mail.
What is the SMTP format for supplying the password to the server?? I've
checked out http://www.faqs.org/rfcs/rfc821.html but there is
absoulutely nothing concerning authentication. Any help appreciated.

There are about half a dozen ways to specify authentication for SMTP. Only
LOGIN is simple.

Use Indy instead, its free and supports all the common methods as well as
some uncommon ones. Its also free. ;)

http://www.indyproject.org/


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Nov 20 '05 #4
copyco <co****@anon.com> wrote in
news:7B********************@newssvr11.news.prodigy .com:
Yeah, I'm finding that examples given for SMTP authentication just
Your server probably requires a differenet auth type.
aren't working on my server. How does my e-mail client do it then?


Its probably has code to perform auth.


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
Nov 20 '05 #5
copyco <co****@anon.com> wrote in news:T3uYb.588$Hb4.83
@newssvr22.news.prodigy.com:
Ok, below is a windows script file I got working. It does what I want
which is to send out an e-mail message. Is there any way to do this in
a windows application? The only think I'm missing is how to get the
authentication to work. I suppose I could somehow shell out to run this
script, but wouldn't that be the hard way? Thanks for any help.


I told you how. :)

Impelementing all the popular auth methods would take you a few weeks
mininmum. Indy already does all this for you - and its free. It doesnt
require CDO either.

http://www.indyproject.org/

There is even an SMTP demo with source at:
http://www.atozed.com/indy/

--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
Nov 20 '05 #6
Thanks. Indy looks like a pretty cool tool. However there aren't many
demos available for VB.NET and the ones that are, are for a newer
version of Visual Studio :-( So it's gonna take me a while to figure
out how to use this. Thanks again.
Chad Z. Hower aka Kudzu wrote:
copyco <co****@anon.com> wrote in news:T3uYb.588$Hb4.83
@newssvr22.news.prodigy.com:
Ok, below is a windows script file I got working. It does what I want
which is to send out an e-mail message. Is there any way to do this in
a windows application? The only think I'm missing is how to get the
authentication to work. I suppose I could somehow shell out to run this
script, but wouldn't that be the hard way? Thanks for any help.

I told you how. :)

Impelementing all the popular auth methods would take you a few weeks
mininmum. Indy already does all this for you - and its free. It doesnt
require CDO either.

http://www.indyproject.org/

There is even an SMTP demo with source at:
http://www.atozed.com/indy/

--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Nov 20 '05 #7
Thanks. Indy looks like a pretty cool tool. However there aren't
many demos available for VB.NET and the ones that are, are for a newer version of Visual Studio :-( So it's gonna take me a while to figure out how to use this. Thanks again.


I've you're looking for a commercial quality tool,
you may want to try IP*Works! The .Net Edition contains 39 differenet demos (78
if you count both C# and VB.Net), several of which are for the SMTP component of
the toolkit.

The components will allow you to see what type of authentication
the server supports through the PITrail event. The SMTP component supports the
most popular LOGIN and CRAM-MD5 authentication methods.

Regards,
Lance
R.
/n software
http://www.nsoftware.com/

-

Nov 20 '05 #8
copyco <co****@anon.com> wrote in news:JrzYb.22637$eM.13893
@newssvr24.news.prodigy.com:
Thanks. Indy looks like a pretty cool tool. However there aren't many
Thanks.
demos available for VB.NET and the ones that are, are for a newer
Well there is a mail demo - and more are coming. And you can always ask on
the Indy newsgroups. :)
version of Visual Studio :-( So it's gonna take me a while to figure
out how to use this. Thanks again.


Indy does however require .net framework 1.1 - I dont think earlier versions
of Visual Studio support 1.1?
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
Nov 20 '05 #9

"copyco" <co****@anon.com> wrote in message
news:a_***************@newssvr22.news.prodigy.com. ..
I'm trying to write code that will send an e-mail using WinSock.
Problem is that my server requires my password for outgoing e-mail.
What is the SMTP format for supplying the password to the server?? I've
checked out http://www.faqs.org/rfcs/rfc821.html but there is
absoulutely nothing concerning authentication. Any help appreciated.


Base64 encoding, which is the same encoding you must use for all
attachements.

HTH,
Sueffel
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004
Nov 20 '05 #10

"Chad Z. Hower aka Kudzu" <cp**@hower.org> wrote in message
news:Xn******************@127.0.0.1...
copyco <co****@anon.com> wrote in news:T3uYb.588$Hb4.83
@newssvr22.news.prodigy.com:
Ok, below is a windows script file I got working. It does what I want
which is to send out an e-mail message. Is there any way to do this in
a windows application? The only think I'm missing is how to get the
authentication to work. I suppose I could somehow shell out to run this
script, but wouldn't that be the hard way? Thanks for any help.


I told you how. :)

Impelementing all the popular auth methods would take you a few weeks
mininmum. Indy already does all this for you - and its free. It doesnt
require CDO either.


BTW, took me 2 days to write an SMTP component from scratch. I think it's
great that you guys have done this IndyProject, but sometimes people want
the satisfaction of doing it themselves, and no one can argue with that.

Sueffel

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004
Nov 20 '05 #11
"Sueffel" <so*****@somewhere.com> wrote in news:uusiPuj9DHA.2560
@TK2MSFTNGP09.phx.gbl:
BTW, took me 2 days to write an SMTP component from scratch. I think it's
great that you guys have done this IndyProject, but sometimes people want
the satisfaction of doing it themselves, and no one can argue with that.


Yes, there is a certain satisfaction. But as you find things it doesnt do -
it a major pain to have it as a liability. :)
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
Nov 20 '05 #12
"Sueffel" <so*****@somewhere.com> wrote in news:#LzJBtj9DHA.2432
@TK2MSFTNGP09.phx.gbl:
Base64 encoding, which is the same encoding you must use for all
attachements.


Only for LOGIN auth. That wont help with servers that use much newer and more
advanced schemes.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
Nov 20 '05 #13

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Andy Turner | last post: by
1 post views Thread by Pedro | last post: by
5 posts views Thread by Prashant Barnwal | last post: by
2 posts views Thread by =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post: by
2 posts views Thread by DwBear75 | last post: by
2 posts views Thread by =?Utf-8?B?QWRhbSBNaWxsaWdhbg==?= | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by theflame83 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.