Now i'am Explain about how to attach a File/Image from External URl.
General File/Image attachemnet:
$mail->AddAttachment("images/kc_logo.jpg");File/Image attachment from Remote:
$string = file_get_contents("http://sri-knowledgecorner.rhcloud.com/images/blogicon.jpeg"); $mail->AddStringAttachment($string, "01182013_220715.jpg", $encoding = 'base64', $type = 'application/octet-stream');
Read More info about file_get_contents and cURL Click Here
No comments:
Post a Comment