Hello,
I have done an aplication that send e-mails… but I don’t recive them.
I recive the ED_OK_MAIL_SENT but…I don’t know why I don’t recive them.
the steps that I follow are:
adl_simSubscribe
Ed_Init
At+cgatt=1
ed_GprsSetConfig
adl_tmrSubscribe (few seconds)
ed_DialupConnectionStart
ed_SMTPSetConfig
ed_EmailSetConfig
adl_tmrSubscribe (few seconds)
ed_SendMail
ed_DialupConnectionStop
Following this steps, with AT commands in the Terminal Emulator I recive the email.
Could anybody say me how use exactly the functions ed_emailSetConfig and ed_SendMail? I don’t know If I have problems with the ID, I don’t know if I understand its function exactly…
I do it:
email_params=email();
email_er=ed_EmailSetConfig(&email_params);
email_test(email_er);
ed_emailSetupParams_t email (void)
{
TRACE (( 1, "****CONFIGURANT PARAMETRES MAIL" ));
email_es.Id = 1;
wm_strcpy(email_es.Rec,"juanfr@hotmail.com");
wm_strcpy(email_es.Subj,"hellooo");
wm_strcpy(email_es.Body,"hello world");
return email_es;
}
void email_test (s8 email_er_f)
{
switch (email_er_f)
{
case 0 :
TRACE (( 1, "****TODO OK EMAIL" ));
send_er=ed_SendMail(1,resposta_send);
send_test(send_er);
break;
default :
TRACE (( 1, "*****raro EMAIL" ));
}
}
And I wait the ED_OK_MAIL_SENT response before close the connection.
Could anybody help me? If all it is ok, what could it happen?
Thank you!