Base64


Closed Thread
Results 1 to 8 of 8

Thread: Base64

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Posts
    755

    Default 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

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Angry

    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.

  3. #3
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default

    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

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,115


    Did you find this post helpful? Yes | No

    Default

    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

  5. #5
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by pedja089 View Post
    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/cont...-for-the-Forum
    http://www.scalerobotics.com

  6. #6
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by pedja089 View Post
    I hope not too much trouble for you...
    Thanks
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  7. #7
    Join Date
    Feb 2011
    Posts
    3


    Did you find this post helpful? Yes | No

    Default

    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.

  8. #8
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default

    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.
    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
    First you need to set up gprs conn.
    then
    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...
    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
    Last edited by pedja089; - 4th February 2011 at 08:56.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts