Page 1 of 1

Sending NMS with cms news - causes problems in googlemail

Posted: Fri Dec 22, 2017 11:58 am
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

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

Posted: Sat Dec 23, 2017 10:16 pm
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

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

Posted: Wed Jan 24, 2018 12:41 pm
by map_1961
Thx Paul.

Then this is not a cmsms problem.

Thx

MAP