473,241 Members | 1,599 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,241 software developers and data experts.

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 2571
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Andy Turner | last post by:
Hi, I'm trying to setup PHP so it will use a remote SMTP server. I'm going to sound like a newbie but how? I know you need to alter php.ini, change SMTP from localhost to the SMTP server and the...
1
by: Pedro | last post by:
Hi all, a friend using Windows wanted to send mail, but he got timeout errors after editing php.ini Mail section smtp = smtp.server.com sendmail_from = friend@server.com I realized that...
2
by: T.Archer | last post by:
The host a client wants to use requires authentication to relay messages. How do I set the authentication (username/password) before using the smtpmail.send(mailmessage) method? Surely this...
3
by: RN | last post by:
I am tired of sending mail from the built-in SMTP service for so many reasons (errors are nondescriptive in the event log, it doesn't let me control which IP address it sends from, and it...
5
by: Prashant Barnwal | last post by:
Hi, This message i get whne i try to send mails theu my app server. any idea where and what to look for? It works fine in Dev bed. Guide me to apprpriate news group if its not the right place. ...
5
by: Chris | last post by:
I am trying to send email in C#. I wrote 2 pieces of code: 1. MailMessage mail = new MailMessage(); mail.From = "from_address"; mail.To = "to_address"; mail.Subject = "subject"; mail.BodyFormat...
2
by: =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post by:
I've tried: MailSettingsSectionGroup mailConfig = WebConfigurationManager.GetSection("system.net/mailSettings") as MailSettingsSectionGroup; and: Configuration configurationFile =...
2
by: DwBear75 | last post by:
I am hoping to find some simple examples of how to create a logger instance using smtphandler. I don't want to create a separate ini file. I just want to sent the smtphost, from, to right in the...
2
by: =?Utf-8?B?QWRhbSBNaWxsaWdhbg==?= | last post by:
Hello all- I am using visual studio 2008 .net 3.5 and I am trying to send an e-mail from a web application using SmtpClient (see below, the numbers have been changed to protect the innocent) ...
6
by: phpmagesh | last post by:
Hi, I am using mail function in my php page, As soon i update the details, i have to send mail to the customer with the updated details, problem is when i send mail it simple through waring msg...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
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...

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.