Base64


Closed Thread
Results 1 to 8 of 8

Thread: Base64

Hybrid View

  1. #1
    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.

  2. #2
    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.

  3. #3
    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