Re: Sending Emal2SMS
- From: deciacco <a@a>
- Date: Wed, 06 Dec 2006 09:57:27 -0600
Vp...you can check out my app at
http://www.deciacco.com/blog/item/2006/11/smtptester---foxpro-app
It will allow you to test smtp communication.
I don't currently make the source available...but here is what you need
to know.
After you connect into the smtp server and you get your 220 response,
you will need to most likely issue an EHLO command as some servers
require the correct order of commands. You also want to issue it because
you want to know what type of AUTH is supported.
After you receive the response to the EHLO command you will need to
issue the AUTH command. Most likely it's AUTH PLAIN or AUTH LOGIN. The
EHLO response will tell you what the smtp server accepts. If it's AUTH
PLAIN then you will need to follow it with authentication data converted
in base64 format. For example:
AUTH PLAIN AHVzZXJuYW1lQGRvbWFpbi5jb20AbXlwYXNzd29yZA==
To get the long string that contains your username and password you can
use this command in Foxpro:
Strconv(Chr(0) + "username" + Chr(0) + "password",13)
Or you can use my utility as it allows you to enter the username and
password and it will output the string for you.
if you use AUTH LOGIN then the server will allow you to enter the
username and password separately. It will first ask for the username,
but it won't display username it will respond with username in base64
format. Then it will ask for the password. Something like this:
*************************
334 VXNlcm5hbWU6 --> means enter username now
AHVzZXJuYW1lQ --> you enter your username
334 UGFzc3dvcmQ6 --> menas enter the password now
5jb20AbXlwYX --> you enter your password
*************************
Check out these links for more info:
http://www.technoids.org/saslmech.html#appA
http://www.yuki-onna.co.uk/email/smtp.html
http://qmail.jms1.net/test-auth.shtml
Hope this helps!!
Vp wrote:
Dear All.
I am using winsock to send mail and it is going fine, but when i am
trying send email using same that will give problem and ask for AUTH
commnad. I don't know how to use this command in exmail server.. any
idea ?
Thanks
- References:
- Sending Emal2SMS
- From: Vp
- Sending Emal2SMS
- Prev by Date: Re: Locate Window programm on the disk
- Next by Date: Re: foxpro over Internet
- Previous by thread: Sending Emal2SMS
- Next by thread: Locate Window programm on the disk
- Index(es):
Relevant Pages
|