Pictures in newsletter?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
9 years ago
Hi
My pictures will not show up in my newsletters I send to my customers. Anyone knows what can be wrong? I'm using Nop 3.4
9 years ago
By default relative image paths are used. Open HTML source and ensure that absolute image URLs (including site URL) are used
9 years ago
This problem persists on our site. If pictures are uploaded and inserted using the feature in the campaign section, the pictures will not work when the newsletter is sent. The email source shows that the path is "C:\content.." rather than www.sdafs.com\content...

I guess the workaround is to manually edit the html code, but that is rather time consuming for building a newsletter campaign!
9 years ago
Here are a few important points in regard to sending newsletter:

1) Please make sure you have complete URL of the images in the HTML source code (not c:/image) - should be like: http://www.domain.com/images/Image1.jpg

2) If you have included images correctly in the html source code and on the receiver's end it is STILL not showing up - Mail servers like Gmail, yahoo, hotmail and others sometimes block images from displaying as a security measure.

This is not considered as an issue, the receiver get an option in the email header "Display images" and once they click on it, they will see the images. This is something that you do not have any control over.

NOTE: This is the reason majority of email templates these days include link to "View the email in browser" so that if images are being blocked the receiver can view the email on browser. You should include a link of your email too in your template.

For more information, see this: https://litmus.com/blog/the-ultimate-guide-to-email-image-blocking





EDIT: I think, there was a similar bug in previous 3.30 as the html editor was stripping out the url but I think this was fixed in 3.40v

So, please make sure you are using 3.40v: \Nop.Web\Administration\Views\Shared\EditorTemplates\RichEditor.cshtml file
9 years ago
Thanks for the response.  I completely understand what you are stating, however, If I am in "Edit Campaign" and I click "Insert/edit image" then select an image from the library using roxy fileman, or upload a new image, then add it to the campaign it adds the path as such <p><img src="/Content/Images/uploaded/  rather than http://www.asdf.com/Content/...

I did not do this until we upgraded to v3.4. Previously I could just add the images and the paths were correct without modifying any source.

I certainly can go in and manually edit the source to add the full website path to the img src's but that is quite in-efficient.
9 years ago
Once a picture is uploaded, manually add full path (e.g. http://www.asdf.com/) to it

P.S. Of course, should be done only for message templates and not other editors such as products, etc
9 years ago
a.m. wrote:
Once a picture is uploaded, manually add full path (e.g. http://www.asdf.com/) to it

P.S. Of course, should be done only for message templates and not other editors such as products, etc


I can do that and completely understand what has been stated in past responses on this thred, I just wanted to bring it to the attention that it was not like this in the past. I have sent thousands of email campaigns with nopcommerce up to v3.2 and I used to just select the image, type in the alt text and done...no adding of the path to the source. Now for every single image that I add to a campaign, I will have to modify the source to add the path. This is not a big issue for a person like myself, but for folks who are not html savvy...this would be difficult, confusing and generally not very user friendly.
8 years ago
A nice solution might be to have a html filter on the rss route that automatically converts any relative paths on img src tags in the content with the absolute address.
8 years ago
Any one has a better solution for this other than changing the source manually to add in the domain?
8 years ago
I found interesting article here

http://questionbox.in/how-to-add-images-to-an-email-in-c-sharp-asp-net-mvc/

This shows how to add images to an email, newsletter.

Few things that needs to be taken care for adding styling and images to email :

The style should be inline css, adding class attributes for the html elements do not work efficiently.
The src value for the image tag should be full location of the image.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.