Emails via API not going. NO Errors so its sending but not recieving

0 votes

Emails via API not going. NO Errors so its sending but not recieving

My sending code is : 

 
String sendTo = "chail@gmail.com";
String sendSubject  = "Feedback";
String sendMsg = "Your message";
String senderEmailId = "jingahr@gmail.com";
 
HashMap<String, String> otherMetaHeaders = new HashMap<String, String>();
otherMetaHeaders.put("template", "DAILY_REPORT");//Which you are created from AppHQ.
 
emailService.setOtherMetaHeaders(otherMetaHeaders);
emailService.sendMail(sendTo,sendSubject, sendMsg, senderEmailId, EmailMIME.PLAIN_TEXT_MIME_TYPE, new App42CallBack() {
public void onSuccess(Object response)
{
Email emailObject = (Email)response;
System.out.println("Email From is : " +emailObject.getFrom());
System.out.println("email To is : " +emailObject.getTo());
System.out.println("Subject is : " + emailObject.getSubject());
System.out.println("Message Body is : " + emailObject.getBody());
}
public void onException(Exception ex) 
{
System.out.println("Exception Message"+ex.getMessage());
}
});
 
 
my app name is ROUTES
and in APP42 I have a template also ..
 
Can you please tell me what I am missing ? 
 
Thanks .. 
 
 
 
 
asked Sep 3, 2015 in App42 Cloud API-BaaS by jingahr (31 points)

1 Answer

0 votes

Hello,

Are you getting any security warnings when sending email to users? Please make sure, your email doesn't restrict third party application for sending email. If that is the case, then please click here to allow a new application to access your account for sending the email and let us know if it resolve your issue.

 

Regards,

Himanshu Sharma

 

 

answered Sep 3, 2015 by hs00105 (2,005 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...