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", "xxxx...@yahoo.com");
                
                
        
template.sendBodyAndHeaders("smtps://smtp.gmail.com?username=s...@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.

Reply via email to