ED_OK_MAIL_SENT but I don't recive any e-mail


#1

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!


#2

hi
Just to try to help u, because i had this problem, and it was the parametres of the SMTP and the mail : ex : DOMAIN, SMTPSERV or recipient adress.

Because the fact that the module return u that it has send the email don(t mean that it has been received by destination.


#3

Thank you very much but I still have the problem.

I think I put all the parameters ok, but I’m not sure about the DOMAIN parameter. What is the domain of an email account? Could you tell me an example?

Another question:

Is correct to use next function

ed_SendMail(1,resposta_send);

when I want send the email defined with Id=1??

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; 
}

Thank you very much!