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

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

Related

Laravel mail embedded image not showing for some people

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">

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 add a HTML RSVP Form in a reply email from a hyperlinked image in Outlook

I created a PNG invitation with a RSVP button which I copied to the body of an Microsoft Outlook email. I clicked the Hyperlinked option which took me to a screen where I chose the Email Address option. By adding the email address in the required section I tested it by sending it to myself but when I opened the email and clicked on the image, the reply mail in a separate screen opened with only the mail to and subject section filled in. What do I do to get the email to open with the html form embedded in the email which the recipient can fill in and RSVP? Please help, I am on deadline.
You can't - mailto url only lets you pass recipients, subject, and body. No HTML body or attachments are possible.

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