Question on phpmailer external link img not controllabe with css
I can't seem to find a solution to the following problem. I can't control the image size, on email sent using phpmailer, no matter what I do for links that pull specifically from Linkedin. So the source that comes to the email is, for example:
<figure><a href="https://www.mywebsite.com/products/ap.php" rel="noopener noreferrer" target="_blank"><img style="width:50px; height=" autoalt="No alt text provided for this image" id="ember43" loading="lazy" src="https://media.licdn.com/dms/image/D4E12AQGP40Gx347Lyw/article-inline_image-shrink_1000_1488/0/1678714121121?e=1684368000&v=beta&t=F0KMkmsp7r3agMZQN_Yp8u2XJPX37h78ZeZPcdtNbGU" style="height: 375px; width: 500px;"></a></figure>
The email code looks like this:
<?php
$Email = new WA_Email("newsletter");
$Email->From = "My Company <noreply@mycompany.com>";
$Email->CharSet = "UTF-8";
$Email->addTo("webmaster@mycompany.com");
$Email->BodyFile = "../webassist/email/templates/newsletter.php";
if (function_exists("rel2abs") && $Email->Redirect) $Email->Redirect = $Email->Redirect?rel2abs($Email->Redirect,dirname(__FILE__)):"";
for ($emailGroup=0; $emailGroup<sizeof($Email->To); $emailGroup++) {
$Email->Subject = "My company Newsletter";
$Email->send($emailGroup);
}
$Email->close();
?>
This is for a Newlsetter that boss writes thru Linkedin. I am using the Webassist tools to Update the content. When I paste directly from Linkedin email, it includes the photos automatically without me having to download every image that was included. I like that ...just Cut and Paste and Done. ...If I could just make the image size to obey the CSS rule. I don't know if Linkedin CSS takes over or what, but they just appear gigantic on the Email received. Just to clarify, I am resending Email using PHP mailer apart from the email sent by my boss thru Linkedin.