Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

problem in AT command with smtp

Status
Not open for further replies.

Mohamed Slama

Member level 4
Member level 4
Joined
Nov 8, 2013
Messages
72
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Visit site
Activity points
443
SA

i can send email from sim900, but i can't send attached mail because i dont know how the path of the file is placed into the instruction "AT+SMTPFILE=1,"test.txt",0"

So, where the AT command gets the path or text file ??

the instructions that i used are

AT+SAPBR=4,1

AT+SAPBR=3,1,"CONTYPE","GPRS"

AT+SAPBR=3,1,"APN","PHONEUM"

AT+SAPBR=3,1,"USER",""

AT+SAPBR=3,1,"PWD",""

AT+SAPBR=1,1

AT+SAPBR=2,1

AT+EMAILCID=1

AT+EMAILTO=30


AT+SMTPSRV="mail.unitedgroupco.com",26


AT+SMTPAUTH=1,"xx@xxxxxxx.com","12345"

AT+SMTPFROM="x@xxxxxx.com","m"

AT+SMTPRCPT=0,0,"xxxxl@xxxxx.com","Dr.Ahmed"

AT+SMTPSUB="TEST"
AT+SMTPBODY
This is test attached mail
AT+SMTPFILE=1,"test.txt",0 ===========> this is my problem from where can i get this file

AT+SMTPSEND
 

Read about AT+SMTPFT Transfer the Email attachment.

The modem has no supernatural connection to your computer to read a file from your harddisk. You have to transfer the data through the serial interface. AT+SMTPFILE only assigns a file name to the data you are going to transfer.
 

i use arduino with gprs (sim900)

just; i want to know how do i get the file(test.txt) and placed into instruction (AT+SMTPFILE=1,"test.txt",0)

the file is exist on sd card connected to arduino
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top