Sending email with attachments (Cellular too)

The attached sample program illustrates how to send an email (SMTP) with an attachment. Particularly, it sends an image (gif). There are also instructions for sending the image to cellular devices.

Note: this sample uses lots of root data space and should be modified to work with extended memory to support larger attachments.

Also if you are using a Rabbit connected to a GPRS or CDMA modem and you want to send an email with an attachment you just have to add the PPP connection part to this sample since this sample uses Ethernet.

Have fun…

from attachment, i try to run it with the adjustment since i use the PP over the GPRS connection but it still does not work…

the modem cannot initialize…

my sim card has the GPRS configure…

please help me???

I would recommend you first try the attached sample program to make sure you can estabilish a PPP connection.

i already try it

the modem can open PPP
here the results

BringUpIface: Pending… attmpt = 1
CHAT: sending ‘AT’
CHAT: expecting ‘OK’
CHAT: found it!
CHAT: sending ‘AT+CGDCONT=1,“IP”,“maxis.com”,’
CHAT: expecting ‘OK’
CHAT: found it!
CHAT: sending ‘ATDT991#’
CHAT: expecting ‘CONNECT’
CHAT: found it!
CHAT: end of script
PPP: sending LCP config req i/f 0
PPP: sending LCP config req i/f 0
PPP: sending LCP config req i/f 0
PPP: sending LCP config req i/f 0
PPP: sending LCP config req i/f 0
PPP: sending LCP config req i/f 0
PPP: sending LCP config req i/f 0
PPP: LCP too many retries i/f 0
BringUpIface: Pending… attmpt = 2
CHAT: sending ‘AT’
CHAT: expecting ‘OK’
CHAT: found it!
CHAT: sending ‘AT+CGDCONT=1,“IP”,“maxis.com”,’
CHAT: expecting ‘OK’
CHAT: found it!
CHAT: sending 'ATDT
99
**1#’
CHAT: expecting ‘CONNECT’
CHAT: found it!
CHAT: end of script
PPP: sending LCP config req i/f 0
PPP: got packet BB98 on i/f:0 protocol:0xc021
PPP: LCP reject on i/f 0
PPP: sending LCP config req i/f 0
PPP: got packet BB98 on i/f:0 protocol:0xc021
PPP: received LCP ACK i/f 0. local_acked = 1
PPP: got packet BB98 on i/f:0 protocol:0xc021
PPP: LCP config request i/f 0
PPP: accepting option 2
PPP: NAKing option 3
PPP: sending LCP nak i/f 0
PPP: got packet BB98 on i/f:0 protocol:0xc021
PPP: LCP config request i/f 0
PPP: accepting option 2
PPP: accepting option 3
PPP: accepting option 7
PPP: accepting option 8
PPP: sending LCP ack i/f 0
PPP: sending our credentials /
PPP: sending PAP auth i/f 0
PPP: got packet BB98 on i/f:0 protocol:0xc023
PPP: sending IPCP config i/f 0
PPP: got packet BB98 on i/f:0 protocol:0xc021
PPP: sending LCP term ack i/f 0
PPP: link i/f 0 is down

thanks…
but i still canot send pic