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.
Related
I have some trouble to correctly embed images in html/php email.
My .php file just sends out a few text emails. But I want a picture in there.
<img src="http://website/image.jpg"> works so far but outlook blocks the image and I have to click download images every time.
So I found out that this is the behaviour of linked images. What I need is an embeded image.
<img src="image.jpg"> seems easy but does not work. The image is in the root directory of the index.php but the Mail does not contain the image. Just an error appears: "image cant be displayed".
I swear I googled for 2 hours now. How do the companies do that with their signature.
I appreciate your help.
I've done the company signature couple days ago and found a lot of problems.
For instance, you can set background-image and gmail and most of the email managers will display it, but outlook will not.
For images isn't the same.
Outlook will display your image, usually when it's https://...
In my case I was using firebase hosting to locate the images and 0 problems with that.
<img data-imagetype="External" src="https://firebasestorage.googleapis.com/..." class="x_gmail-CToWUd">
I use this signature in gmail, and outlook is displaying that <img> tag without any problems, and no need to make any attachment.
The data-imagetype is added from outlook when receiving the email and the class x_gmail... too.
Hope this will help you, if not I'll try to find a better solution for you.
Most email clients block images as a default. It’s up to the user or administrator to overcome this behavior. You can’t override it in email.
I have a sign-up form. When someone signs up, they immediately receive an email (in HTML format) with the following information:
1) Their sign-up information (Name, P#, Email, etc.)
What I need is the following:
1) After sign-up, in the email the user receives, there needs to be a png-image that is generated by an external script. At the moment, I am using PEAR to generate/send the email (AOK) and Mail_Mime::addHTMLImage() to add the image, but alas, with no luck. All I get when I send the email is a broken image with my alt text appearing. It's important to keep in mind that I am generating the image (to be used in the HTML email) from an external script.
The code I'm using to try and grab the image (from the external script) is as follows:
$mime->addHTMLImage(get_template_directory_uri()."/qr_code_generator.php?code=", "image/png");
Also, not sure if it helps, but I'm using http://phpqrcode.sourceforge.net/ for the QR code generation
Any and all help is greatly appreciated!
I answered most of this in your previous question here.
The likely issue again is that you can't embedded base64 encoded images directly into the body of the email, you have to treat them like attachments. The way you do that is with a content section and an appropriate content id.
Check out the documentation for the addHTMLImage method.
https://pear.php.net/manual/en/package.mail.mail-mime.addhtmlimage.php
It's not the best documentation but check it out and my other answer. That should give you enough to solve the issue.
I have a newsletter designed for website which I send to all subscribers of my website. But at recievers end the message is getting clipped and isn't showing full message. User have to click on link to see full message. I want this email message to be shown in same page and dont want this message to get clipped. Email consists of images and description about the images.
What can I do to achieve this ?
Thanks in advance.
I went through certain solutions and problem I found was with the size of HTML newsletter.
If your email exceeds 102K, Gmail will display the first 102K and then it will clip off the remainder with a few different variations depending on the device.
So to avoid this problem try to keep your design of HTML letter within the limit by removing unnecessary code.
Hope it will help others too.
Thanks
You need to change the format from
<!--<![endif]-->
to
<!-- <!–– <![endif]––>-->
I've been creating a page where I can send some info with an image to a yahoo account. I'm using CKeditor and php mail. Is there a way to do it? Actually I've tried it and it works good but the image is blank only the border size of the image is visible. Thanks
Assuming that you are not embedding the images to the email, most likely your URL is wrong. Try post-processing the URLs to be absolute and not relative and that will fix your problem.
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/