You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by ishwar <pa...@gmail.com> on 2013/10/24 07:31:43 UTC
how to know which email receipt is failure for what reason
hi,
i am sending the email using following code.
public boolean sendEmail(JSONObject data)
{
boolean status=false;
camel = new DefaultCamelContext();
template = camel.createProducerTemplate();
Map<String, Object> map = new HashMap<String, Object>();
map.put("To",data.getString("toaddress"));
String body = data.getString("body");
map.put("Subject", data.getString("subject"));
map.put("From", "xxxxxxx@yahoo.com");
template.sendBodyAndHeaders("smtps://smtp.gmail.com?username=sxxx@gmail.com&password=ixxx",
body, map);
status=true;
return status;
}
This code is working fine for sending single receipt as well as multiple
receipt but the problem is that how do i know which email receipt is fail
and for what reason.i am new in camel so i do not know whether camel is
proving or not?
--
View this message in context: http://camel.465427.n5.nabble.com/how-to-know-which-email-receipt-is-failure-for-what-reason-tp5742112.html
Sent from the Camel - Users mailing list archive at Nabble.com.