pedja089
- 11th January 2011, 17:21
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
mister_e
- 12th January 2011, 10:50
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&
pedja089
- 12th January 2011, 11:26
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
Ioannis
- 12th January 2011, 13:17
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
ScaleRobotics
- 12th January 2011, 15:31
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
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/content.php?r=152-A-better-Search-tool-for-the-Forum
mister_e
- 13th January 2011, 09:39
I hope not too much trouble for you...
Thanks
http://www.youtube.com/watch?v=d-diB65scQU
mosajii
- 4th February 2011, 05:04
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.;)
pedja089
- 4th February 2011, 08:41
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.
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
First you need to set up gprs conn.
then
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...
Base64 in vb6 application, I use to set email, server, time between e mail, and other device parameters.
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
Powered by vBulletin® Version 4.1.7 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.