Page 1 of 1

Mailform with Gmail

Posted: Wed Feb 22, 2017 10:51 pm
by kiwikonnection
Have a Gmail Address as recipient for a Mailform, but message appears in plain text format instead of html, so all the html tags and code is displayed. Any fix for this?

Re: Mailform with Gmail

Posted: Thu Feb 23, 2017 12:40 am
by cmb
kiwikonnection wrote:Have a Gmail Address as recipient for a Mailform, […]
Please clarify which mailform you're using.

Re: Mailform with Gmail

Posted: Thu Feb 23, 2017 1:33 am
by kiwikonnection
the default mailform that comes with CMSimple_XH 1.6.7. Cheers

Re: Mailform with Gmail

Posted: Thu Feb 23, 2017 2:52 am
by kiwikonnection
Oops, sorry. It is AdvancedForm_XH V1.0

Re: Mailform with Gmail

Posted: Thu Feb 23, 2017 11:25 am
by cmb
kiwikonnection wrote:Oops, sorry. It is AdvancedForm_XH V1.0
Have you configured mail→type=html? Does the problem also happen with other email clients?

Re: Mailform with Gmail

Posted: Thu Feb 23, 2017 9:49 pm
by kiwikonnection
Mail type in Advancedform is set to html

Windows Live Mail seems to convert it to plain text and displays the message with an incoming mail is headed with

Content-Type: text/plain; charset = "UTF-8"

Content-Transfer-Encoding: 8bit



Gmail and Outlook both display the message as

Content-Type: text/html; charset = "UTF-8"

Content-Transfer-Encoding: 8bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<style type="text/css">

div.advfrm-mailform td.label {

vertical-align: top;

padding-right: 1em;

/* the following aligns the labels to the right */

/*text-align: right;*/

}


</style>

</head>

<body>

<div class="advfrm-mailform">

<table>


When I change text to plain in the Advancedform configuration, all programs (WLM, Gmail & Outlook) display it in plain text but without any content type reference ( i.e. Content-Type: text/html; charset = "UTF-8" or Content-Type: text/plain; charset = "UTF-8" )

The quick fix is to set it to plain text.

Cheers

Re: Mailform with Gmail

Posted: Thu Feb 23, 2017 11:02 pm
by cmb
Ah, I see. Apparently, the email headers are not recognized as such. Please activate "Mail→Line ending *nix" in the plugin configuration, and see if that solves the issue.

Re: Mailform with Gmail

Posted: Thu Feb 23, 2017 11:24 pm
by kiwikonnection
Thanks a lot, that fixed the issue.

Cheers

Re: Mailform with Gmail

Posted: Thu Feb 23, 2017 11:27 pm
by cmb
kiwikonnection wrote:Thanks a lot, that fixed the issue.
Great! :)