Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Borland SMTP and Authentication?

Status
Not open for further replies.

camperjohn64

Programmer
Feb 1, 2005
1
US
Has anyone ever successfully used the NMSMTP1 component of Borland to actually connect to a SMTP server?

Where do I put my Authentication and passwords?

NMSMTP1 -> Host = "mail.mccarthy.net";
NMSMTP1 -> UserID = "john";
NMSMTP1 -> Connect();

Ok that's great, but where do I put my password information so I can actually send an email??!?!?

Is the component faulty? Did Borland forget to add it to the component? If it is part of the "FinalHeader" property, what do I put in there?
 
But?
What password?

To _send_ e-mail you don't need password, the e-mail is actually just send out on the cyberspace without furter doing.

But you need to be connected to the ned somehow but that's another problem.

It's the recieving of e-mail where you have to log in on the POP3-server that requires password.

Totte
Keep making it perfect and it will end up broken.
 
Totte,
original SMTP protocol does not include any authentication, that's true, but since first definition many things have changed. For example, there's [link ftp://ftp.isi.edu/in-notes/rfc2554.txt]RFC 2554[/url] which describes SMTP extension for authentication, and many service providers actually require you to authenticate before sending email.

camperjohn64,
I haven't used NMSMTP, but I think Indy sockets provide SMTP components with authentication possibility. Indy website is located here and there's some useful information in their knowledge base.

Hope that helps
 
Good, now i have learned something today :)

Totte
Keep making it perfect and it will end up broken.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top