close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Question on phpmailer external link img not controllabe with css

Thread began 3/13/2023 5:53 pm by lr_leal239405 | Last modified 3/23/2023 4:54 pm by lr_leal239405 | 301 views | 6 replies

lr_leal239405

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&amp;v=beta&amp;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.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...