Closed shiluda closed 6 years ago
You need to apply some basic common sense here. Just look at your code:
$mail->addStringAttachment(file_get_contents($url), 'img.png');
$url = "https://www.pexels.com/photo/woman-wearing-black-crew-neck-shirt-and-blue-denim-shorts-911575/";
Doing this interactively is a bad idea anyway - it's very slow.
Thanks it's working!
the recipient receives the email but cannot view the image attached