Has anyone tried to make a BASE64 encoder for email SMTP authentication in pbp?
I am trying to create e-mail client on the PIC and gsm modem.
For those who do not know, this is what it is:
http://en.wikipedia.org/wiki/Base64
Has anyone tried to make a BASE64 encoder for email SMTP authentication in pbp?
I am trying to create e-mail client on the PIC and gsm modem.
For those who do not know, this is what it is:
http://en.wikipedia.org/wiki/Base64
yes and this was 3 years ago or so. This forum have a search function, you should try, it's amazingly accurate, fat free and doesn't bite at all.
http://www.picbasic.co.uk/forum/showthread.php?t=8486&
Last edited by mister_e; - 12th January 2011 at 10:53.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
I tried, but I didn't found it.
And I could not even find google search forum. I hope not too much trouble for you...
Thanks
If you put the keywords "base64 picbasic" in Google, the first thing on the top is the link Steve gave you.
Magic, isn't it??
Ioannis
You can do just as Ioannis mentions, or to narrow you search, you can use the picbasic google search located under wiki and useful links, http://www.picbasic.co.uk/forum/cont...-for-the-Forum
http://www.scalerobotics.com
I and some of my friends had tried to create e-mail client on the PIC and gsm modem some years ago. But we were not successful. I would request Pedja to let me know how he is trying to do it. I would like to thank him in advance for his help.![]()
I'm almost finished. The program is written, but I have not found the time to test it.
To test an email server, I used putty.
Here's communications with the server.
First you need to set up gprs conn.Code:EHLO AUTH LOGIN here should be base64 emall http://www.webpan.com/Customers/Email/base64_conversion.htm 334 UGFzc3dvcmQ6 '=password enter password in base64 235 Authentication succeeded MAIL FROM: <123@123> 250 OK RCPT TO: <1123@123> 250 Accepted DATA 354 Enter message, ending with "." on a line by itself From: <123@123> To: <1123@123> Subject: Hello Date: 17:05:41 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii This is a simple Message . 'end of mesage, dot in singl 250 OK id=1Pch7Q-0003zQ-BX
thenBase64 in vb6 application, I use to set email, server, time between e mail, and other device parameters.Code:serout2 tx,84,["AT+CIPSTART=0,",34,"TCP",34,",",34,"mail.123",34,",","26",13,10] CALL WAIT_OK IF OK=0 THEN GOTO send serin2 rx,84,lag,ERR_GPRS,[wait("0, CONNECT OK")] serin2 rx,84,lag,err_mail,[wait("220")] pause 700 ' wait for comments serout2 tx,84,["AT+CIPSEND=0",13,10] CALL WAIT_V 'wait for > IF OK=0 THEN GOTO ERR_GPRS pause 10 serout2 tx,84,["EHLO",13,10] pause 5 serout2 tx,84,[26] CALL WAIT_SEND_OK serin2 rx,84,lag,err_mail,[wait("250")] pause 700 serout2 tx,84,["AUTH LOGIN email in base64",13,10] etc...
With a slightly different message body, you can send attachment.
EDIT:
I used the same principle for ftp. Works over a month without a single error
Last edited by pedja089; - 4th February 2011 at 08:56.
Bookmarks