cfmailparam issue

16 views
Skip to first unread message

Mike G

unread,
Oct 10, 2019, 3:02:25 PM10/10/19
to hou...@googlegroups.com
I am sending an email with embedded images.  The email sends fine, except for one single image.  I have tried both an http ref as well as pulling it from disc.

Does anyone see anything in the super simple code that could be causing the issue?  I have been at this since 8am and have renamed the image, went from jpg to png to gif and even recreated it from scratch.  No matter what, gmail gives it as an attachment; but in the original email all embedded images are working as expected..

<cfset imgPath=rootFolder&"image/l/email/">
<cfmail to="spi...@gmail.com" from="spi...@gmail.com" replyto="spi...@gmail.com" subject="testin" type="html">
<cfmailparam file="https://www.sawblade.com/image/l/email/playvideovim.gif" contentid="vwvidbut" disposition="inline" />
<cfmailparam file="#imgPath#playvideovim.gif" contentid="vwvidbut1" disposition="inline" />
<img style="margin-top:7px;" src="cd:vwvidbut" width="142" alt="Click to view Tech Tip Video"><br>
<img style="margin-top:7px;" src="cd:vwvidbut1" width="142" alt="Click to view Tech Tip Video 1">

</cfmail>

image.png

Tom Stevenson

unread,
Oct 10, 2019, 3:20:05 PM10/10/19
to hou...@googlegroups.com

Should it be:

 

<img style="margin-top:7px;" src="cid:vwvidbut" width="142" alt="Click to view Tech Tip Video"><br>

--
--
You received this message because you are subscribed to the "Houston ColdFusion Users' Group" discussion list.
To unsubscribe, send email to houcfug-u...@googlegroups.com
For more options, visit http://groups.google.com/group/houcfug?hl=en

---
You received this message because you are subscribed to the Google Groups "Houston ColdFusion Users' Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to houcfug+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/houcfug/CAKb7GJOOkCzS-58iCc2EfG_jey3xCyDCM1qZtV%2BVqYs0fdp-7Q%40mail.gmail.com.

james....@bakerbotts.com

unread,
Oct 10, 2019, 3:49:33 PM10/10/19
to hou...@googlegroups.com

Do any other images using this method (of calling an SRC value) work?

 

I don’t think it’s the image; I think it’s Gmail (or possibly any other mail client) blocking images called in this manner.

 

See this article from SendGrid for an informative explanation: https://sendgrid.com/blog/embedding-images-emails-facts/

 

From the article:

 

The problem with CID embedded images is that they don’t always display properly in email clients. The rule of thumb I use is that CID embedding will work fine in the majority of desktop email clients, but most likely not at all in web based email clients such as Gmail, or Yahoo! Mail. Bummer.

 

I have a feeling your images are not working in Gmail due to this fact. The article does talk about other methods though, so you may find your solution there.

 

From: hou...@googlegroups.com <hou...@googlegroups.com> On Behalf Of Tom Stevenson
Sent: 10 October, 2019 2:20 PM
To: hou...@googlegroups.com
Subject: RE: [houcfug] cfmailparam issue

 

[EXTERNAL EMAIL]



Confidentiality Notice:

The information contained in this email and any attachments is intended only for the recipient[s] listed above and may be privileged and confidential. Any dissemination, copying, or use of or reliance upon such information by or to anyone other than the recipient[s] listed above is prohibited. If you have received this message in error, please notify the sender immediately at the email address above and destroy any and all copies of this message.

Mike G

unread,
Oct 10, 2019, 3:53:40 PM10/10/19
to hou...@googlegroups.com
OMG.  Been looking at that for hours and missed it.  Thanks!!!

M

Reply all
Reply to author
Forward
0 new messages