Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

[BUG] Mail with HTML body are empty on Gmail. #1988

Closed
badstorm opened this issue May 8, 2020 · 3 comments
Closed

[BUG] Mail with HTML body are empty on Gmail. #1988

badstorm opened this issue May 8, 2020 · 3 comments
Labels

Comments

@badstorm
Copy link

badstorm commented May 8, 2020

Hi, in my project I have included function to send html email following this guide buffalo/mail.
With the last version, the mail are sent correcty with html body and works on any mail providers, except for gmail accounts.

On gmail there is no content (I can see only the title). But if i click on "Show original" there HTML code is present.

I also tried different html codes the check if was an HTML rednering error, but is all ok.

Maybe there are some missing headers to be added to the email?

@badstorm
Copy link
Author

badstorm commented May 8, 2020

This is the result of "Show Original" get from gmail web app:

Return-Path: <b****e@o***.com>
Received: from localhost ([88.147.6.23])
        by smtp.gmail.com with ESMTPSA id x23sm11589016wmj.6.2020.05.08.01.02.42
        for <h***o@b**.com>
        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
        Fri, 08 May 2020 01:02:43 -0700 (PDT)
Message-ID: <5eb51223.1c69fb81.886ad.ae3c@mx.google.com>
Sender: Service <b****e@o***.com>
From: Service <n****y@b***.com>
X-Google-Original-From: Service <n****y@b***.com>
MIME-Version: 1.0
Date: Fri, 08 May 2020 10:02:43 +0200
To: h***o@b**.com
Subject: This is the subject of the eMail
Cc: 
Content-Type: multipart/alternative; boundary=c8e303a805884ead3dc6df8760bbfe8094b710f68c3ff603b361b408777b

--c8e303a805884ead3dc6df8760aafe8094b710f68c3ff603b361b408777b
Content-Transfer-Encoding: 8bit
Content-Type: text/html; charset=utf-8; charset=UTF-8

<h1>This is the title of the mail</h1>

<p>This is the main content of the email</p>


--c8e303a805884ead3dc6df8760bbfe8094b710f68c3ff603b361b408777b

@github-actions
Copy link

github-actions bot commented Aug 7, 2021

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions
Copy link

This issue was closed because it has been stalled for 5 days with no activity.

@sio4 sio4 added the # chkme label Sep 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants