Laravel mail embedded image not showing for some people - laravel

I have a problem with Laravel mail image embedding or rather its combination with Outlook. I'm sending a mail containing embedded profile image of user who created certain activity. For some reason some people however don't see the image only big X icon:
I have tried attaching the image to the mail
The mail is coming from same domain
I was able to see the image even when I sent testing mail to my personal gmail account
My settings are the same as the person who is not able to see the image
EDIT:
image tag: <img class="img" src="cid:generated_id#swift.generated">

Related

I want to use Image tracker in my Emails to track recipients who opened the mail or not. I use mail merge on outlook, so how can I put tracking image?

We do multiple email marketing activities to numerous recipients every day. Thus, I was looking forward to track how many recipients have opened my email. My development team has given me an API, through which I can generate unique image links for all the recipients and send them through mail merge field. Currently, when I am sending emails to recipients with unique image links, the image is rendering in the email content but I don't get any insight in my backend API.
Usually, I use Mail Merge on Word to run the campaigns. And I use Microsoft Outlook as email operator.
CAN ANYONE PLEASE HELP ME ON HOW TO INSERT A TRACKING IMAGE IN MY MAIL CONTENT ON WORD, SO THAT IF ANYONE OPENS THE MAIL, I GET HIS/HER DETAILS IN MY BACKEND DATABASE.
I tried to add the image in my mail content through the "IncludeImage" command on word and in the file URL I called the merge field from the connected datasheet. But when I am running the campaigns the image is appearing but I am not getting any tracking in my backend database.

Can you embed an image in a Nodemailer email without also having the image attached to the email?

I am successfully following the Nodemailer documentation to embed an image in the email from my app. As listed in the documentation, the image also shows up as an attachment to the email. So it's attached to the email, and embedded in the body of the email.
Is there a way to have the image embedded in the email body, but not also included as a separate attachment? I find the extra attachment is distracting.
Thank you!
Jon

Email Nativescript Chart

I am working on a nativescript(using javascript)mobile application and using RadChart on one of the pages.
I need to be able to open these chart on the default email client on the click of a button for user to be able to mail them. I did see that with the nativescript-email plugin we could send attachments, how do I attach the RadChart from the app to the email?
Or is there any way I could just open the RadChart page(from the mobile app) on to the mail client? Any other suggestions on how I could proceed with this?
You can not open RadChart or any native UI component on email client. Email could be either plain text or Html only.
You could capture a screenshot of RadChart and email the image as an attachment in the email.
Use nativescript-screenshot for taking screenshot of RadChart.
Use nativescript-email for sending email with attachment.

How to display Protected Images in Email Messages

I am creating a web app using Laravel 5.3 where only authorised users can view the images in that app. For example, lets says something like Facebook where only friends can view the user's avatar if the permission is set like that. When the image is viewed from the app, the api check the auth credentials, check the permission and displays the user image accordingly. However, my question is, if I am sending a notification emails to users, how can I display the protected images in email messages? For example, if I add the img url like this in html email:
<img src="http://example.com/api/image/useravatarname.jpg" />
the above will fail since it doesnt have a token in it. In these cases, how are protected emails displayed in emails? How does website like Facebook does it?
These are the methods I have thought of but not happy with:
1) Embed Image Binary Data: I don't know if adding the image binary data will work in html emails. Even if it does, it doesn't seem like a good method when sending emails.
2) Image URL Parameter: I was thinking maybe to add some parameters like the user's email address ?xyz#gmail.com to the img source url and then from the api locate the user with that email id and verify if they have the permission to view the image. But the problem with it is, some people can view the image by adding the email id parameter easily by guessing.
3) Facebook Notification Email: When I checked the facebook notification email, I see the avatars in the email are displayed something like this and I have no idea what they are doing here:
https://ci5.googleusercontent.com/proxy/lkjasdlkjsaldjalsjdlasjdlkjasdljsaldjasldlasdljqljaldjsaldjsaldlsajdlsajdlkasjdkljasldkjaslkdjsakldjsaljdlsajdlasjdla#https://scontent-syd2-1.xx.fbcdn.net/v/t1.0-1/p100x100/ljsdlkjsdljsdljsd_23232323_23232_n.jpg?oh=askaslkalsjalsjalksjalkjsas&oe=58C270EEE
Is there another way?

HTML Email Linked Resource Image Only shows in reply

Odd one here.
I am embedding an image in an email using a linked resource. It doesn't show in the original generated email but when I click on reply or forward it shows up fine.
The following happens with Outlook.com (Hotmail) and Chrome/Firefox:
It doesn't show in either the default view or reply view in IE
It shows the image in the original and the reply on my iPad native email client
It shows same as Chrome/Firefox in Opera on the iPad.
Anyone know how to fix this anomaly?
Thanks
Use a multipart email to embed the image in the email:
How to create an email with embedded images that is compatible with the most mail clients
Key Concepts of MHTML

Resources