Sending NMS with cms news - causes problems in googlemail

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
map_1961
Power Poster
Power Poster
Posts: 410
Joined: Fri Apr 20, 2007 7:26 pm

Sending NMS with cms news - causes problems in googlemail

Post by map_1961 »

Hi again.

For sending dynamic Newsletters i use the code in message body:

Code: Select all

{News category='news category1,news catergory 2' summarytemplate='bootstrap-news-summary-nms' moretext='MEHR DAZU ⟩' number='3' start='0'}
The "bootstrap-news-summary-nms" template contains:

Code: Select all

...
<div class="thumbnail">
        {if isset($entry->fields)}
        {foreach from=$entry->fields item='field'}
        {if $field->type == 'file' && $field->value != ""}
        <a href="{$entry->moreurl}"><img class="img-responsive" src="{CGSmartImage src1=$entry->file_location src2=$field->value alias1='medium' notag=1 filter_watermark=1}" alt="{$entry->title|cms_escape}"></a>
        {/if}
        {/foreach}
        {/if}
...
In yahoo webmailer the newsletter result looks fine. In google mail no picture appears but directly under the news title:

News title
<img class="img-responsive" src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD//gA7Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcgSlBFRyB2NjIpLCBxdWFsaXR5ID0gNzUK.........

..followed by hundereds of stamps and digit combintions - but NO picture.

i would be very grateful for any help on this matter..
MAP
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: Sending NMS with cms news - causes problems in googlemai

Post by paulbaker »

Looks like gmail simply doesn't support images sent in this way:

https://stackoverflow.com/questions/187 ... oogle-mail

https://stackoverflow.com/questions/327 ... s-to-gmail
Testing today, Gmail does not support images using data: URLs. It just uses the alt text instead. – jameshfisher Feb 26 '16
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation

CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
User avatar
map_1961
Power Poster
Power Poster
Posts: 410
Joined: Fri Apr 20, 2007 7:26 pm

Re: Sending NMS with cms news - causes problems in googlemai

Post by map_1961 »

Thx Paul.

Then this is not a cmsms problem.

Thx

MAP
Post Reply

Return to “Modules/Add-Ons”