How can I add multiple embeded images with php mailer? - php

I'm using PHP MAILER to add more than one image for a confirmation message when users sign up to my site. This is the code to add the logo image:
$mail2->AddEmbeddedImage('images/email/logo.png', 'vlogo');
Now I want to add 5 social media images in svg format to the footer of
my message. I have everything set up, but I can't find any information
on adding multiple images to php mailer.
How can I add more than one embedded image to phpmailer?

Related

Email received but image not displaying?

In my demo project, I used the email functionality for new register user into the system. For receive mail, used one kind of HTML page with all mail sent details of the respective user. For image added the path of the website like "http://abc.input.com/assets/image/welcome.png". Stored the same template body details in the database too. The path is recorded the same as the set path. But when I got the mail banner image not displaying and on inspect mail body image path showing one extra dot-like "http://abc..input.com/assets/image/welcome.png". That extra dot will create a problem to display image. Is it regarding any email agent-specific issue? Please share any suggestion. I have tried to provide a set of all related HTML tag but not working.
<img src="http://abc.input.com/assets/image/welcome.png" style="height: 175px; width: 560px;" alt="welcome">
I' do some minor changes in <img> source tag with renaming the image name with a small case and added the <anchor> tag with href attribute. Now the image is showing properly when I got the email from the client.

Send email with PHPMailer and rotate images

I am able to send emails with images using PHPMailer, but now I would like to rotate some of the images from landscape to portrait. Is it possible to rotate images using CSS in the email?
According to Campaign Monitor, the CSS transform:rotate() property is not supported in the majority of the top Desktop, Mobile, and Webmail email clients.
Instead, a more dependable method would be to simply rotate the images manually in advance, or use the PHP function imagerotate() to rotate the images to landscape programmatically before sending the email.

Need to create image from content of div

I want to create a programme that can
take text input from user and adjust anywhere in specific div
change font, fontcolor and size as per user selection
upload image as background
save whole customization and send as email
with help of PHP/JavaScript
Can anyone suggest how to do this.
Main issue is create image from user customization.
An existing programme to do this is also acceptable
I am programmer and working on php javascript magento
EDIT
Reading your description, it doesn't sound like you really need a screencapture-like version of the content the user created, you just need an HTML embedded editor and a way for someone to upload an image as the background with a way to preview the result. You can send emails with backgrounds using CSS.
(Not sure what you mean, but I presume you can figure this one out)
Use TinyMCE for an editor: http://tinymce.moxiecode.com/
Use jQuery AJAX file upload plugins (maybe http://www.uploadify.com/)
Submit the form (with the selected settings and edited html) to server and process as email
Try here for how to add an image to the background of an email:
http://www.campaignmonitor.com/blog/post/3170/adding-background-images-to-your-email-in-two-simple-steps/

Send email as html with embedded images as background

I am trying to send email as html with embedded images (not attachment) and as background.
I was trying to use Xpert Mailer but their documantion has small amount of information so I didnt succeed.
I was also trying to use Swiftmailer, with Swiftmailer I succeed to send email with embedded images but not as background.
Anyone has any clue how to send embbed images as background / has good PHP Email Sender?
Thanks!
Don't know about the apps you're using but this can be done by embedding the images in base64 format, looks like this:
<img src="data:image/gif;base64,R0lGODlhUAABLABLAMOREBASE64HERE">
Quick google search shows the following converter site: click
I found the answer. the problem was not my html or how I embedded the image. tha problem was that gmail doesnt support css property background / background-image and therefore it didnt work for me.
I had to use

Display, Edit and Save PDF's in the Browser using PDF

I am trying to create an interface to allow easy editing of PDFs like VuePDF in an application I am building. This is not core to the application and will only be used by the admin.
I was wondering if there was a per-built stack for editing PDFs in the browser window?
Basically the admin user needs to black-out private data, like names and addresses.
If there is not currently a solution I was thinking of some like:
Using ImageMagik to create JPEG version of each page
Using the canvas element to add black marks to the image
Recording the location of top-left and bottom right of each black mark
Sending back the coordinates and adding black rectangles to the original PDF
Is that correct?
If you draw over the PDF, the data will still be there in the PDF and easy to extract. I wrote a blog article explaining the issue at http://www.jpedal.org/PDFblog/?p=553
You need to replace the text in the PDF command stream as well.

Categories