473,387 Members | 1,572 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,387 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 2582
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.