Having Issue with Images in Email Campaign

Posted by Community Admin on 04-Aug-2018 14:47

Having Issue with Images in Email Campaign

All Replies

Posted by Community Admin on 11-Oct-2011 00:00

Hello,

I am hoping someone has experienced this problem and can help me out.

I am using the Email Campaign module to send out a newsletter.  When I create my Message Template, I have a few images that I have inserted into the layout.  The images are stored in the Default Album (stored in database).  They show up fine when editing the Message Template, but when I create the Campaign and send the message using my template, the images are broken.

The code that is generated when I insert the image when editing the template is:

<IMG style="WIDTH: 350px; HEIGHT: 61px" src="/images/default-album/hort-couture-logo.jpg" sfref="[images]09e1f634-e44a-4217-b075-67a02f2b20c9">

Looking at the source code of the email message I receive, the code remains the same.  I can see where this is an issue, because the SRC attribute does not include the domain information....BUT..

I modified my Message Template so my image source code looks like this:
<IMG style="WIDTH: 350px; HEIGHT: 61px" src="http://www.hortcoutureplants.com/images/default-album/hort-couture-logo.jpg" sfref="[images]09e1f634-e44a-4217-b075-67a02f2b20c9">

Then I resent the campaign and looked at the source code of my email, and the image source code was totally mutilated:

I don't understand what would be causing this...is this a SF bug?  I am running SF 4.2.1650.

Any help would be greatly appreciated as I have 3 newsletters to send out this week and it would be great to use this module to do it.

Thank you,
Jim

Posted by Community Admin on 12-Oct-2011 00:00

UPDATE:  OK, I found where this was a bug and upgraded my website to 4.2.1733 and the images are working now.  BUT, I have a new problem where http://localhost/ is placed at the beginning of all my links on the received email message.

Here are a couple of examples of the problem:

My link in the template shows:  http://www.facebook.com
My link in the received email shows:  localhost/.../www.facebook.com

My link in the template shows:  http://www.mywebsite.com
My link in the received email shows:  localhost/aa88ee3c-d13d-4751-ba3f-7538ecc6b2ca

Any ideas what is going on.  This is fairly urgent.

Thank you,
Jim

Posted by Community Admin on 13-Oct-2011 00:00

Dear Jim

I had a ticket because of this issue about the links and got confirmation that this will be fixed very soon (I sure hope its 4.3)

Markus

Posted by Community Admin on 14-Oct-2011 00:00

Hello Jim,

As Markus noted in his post, this has been logged in our system for fixing, and will most likely be fixed for the upcoming internal release.

Best wishes,
Victor Velev
the Telerik team

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 08-Feb-2012 00:00

Is this fixed yet? We can't put any links in our emails due to the same issue (blank page found when following links).
Thanks, Thom

Posted by Community Admin on 10-Feb-2012 00:00

Hello Thomas,

The issue has been resolved in Sitefinity 4.3+.

Greetings,
Victor Velev
the Telerik team

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 13-Nov-2015 00:00

I'm using SF 6.3.5000

I am getting the same issue with my images using 'localhost' instead of the domain. Funny part is, I had sent out 6 issues. Issue 1 had localhost to the images, Issues 2 & 3 had the domain, then issues 4, 5 & 6 started using localhost again. 

While constructing the issue, the images of course show ok? I even updated the image widget with a new image and it still sends out localhost. 

Posted by Community Admin on 13-Nov-2015 00:00

Ok, after some testing I have got the images to show (and referencing the domain properly instead of localhost). What I had to do was

1) remove the image widget

2) insert a content block

3) insert an image in the content block

4) update the html of the content block and remove the sfref from the img and put in the domain there. This is circumventing the SF gears and cogs? Which I believe is updating the image src dynamically but inadvertently it puts in a localhost instead of the domain. 

Hope this helps and maybe identifies the issues as still existing in SF 6.3.5000 instead of claiming fixed in 4.3+. Or maybe this was a different bug but has the same end result, image not showing because of localhost in image source attribute. 

Posted by Community Admin on 11-May-2017 00:00

Hi,

Is this supposed to be solved in SF7.2?

 

I'm logged on mydomain.pt (which is balanced by the way) and if I "Send Check Message" everything goes as expected, and all images/files from the libraries are prefixed with mydomain.pt. However, when i press Send Issue the email I get instead of having images/files prefixed with mydomain.pt, they all get prefixed with the IP of the node the balancer sent me to...

 

And the balancer is not the problem because the same happens on a non balanced setup... where can I set Sitefinity to use the domain name instead of the IP? And why does this happen at all?

 

Thank you

This thread is closed