$base64_attFile = chunk_split(base64_encode(file_get_contents($attFile)));
"subject":"Order Confirmation",
"attachments": { "content": "'.$base64_attFile.' ", "mime_type": "application/pdf", "name": "myinvoice.pdf"},
"htmlbody":"<div><b> Test email sent successfully. </b></div>",
}'