I have debugged this code and found that attachment is not getting attached because during handling the response it is not entering into the while loop,which means no attachments were there. Kindly let me know how can i get this problem solved.
This looks like a job for .... legal tender! It says so right in this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!