Hi,
can you paste here a copy of the message (with headers) so i can take a look at it?
Thread Starter
kamoe
(@kamoe)
Authentication-Results: XXXX.XX;
dmarc=none (p=NONE sp=NONE) d=spania.us; header.from=XXXX.XX;
dkim=none [email protected]
Return-Path: <[email protected]>
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on XXXX.XX
X-Spam-Level: *
X-Spam-Status: No, score=1.7 required=6.0 tests=HEADER_FROM_DIFFERENT_DOMAINS,
HTML_MESSAGE,HTML_MIME_NO_HTML_TAG,MIME_HTML_ONLY,NO_RELAYS,URIBL_BLOCKED
autolearn=no autolearn_force=no version=3.4.0
X-Original-To: XXXX.XX
Delivered-To: XXXX.XX
Received: by XXXX.XX (Postfix, from userid 10002)
id 525381920CA6; Thu, 28 Mar 2019 01:57:13 +0100 (CET)
To: XXXX.XX
Subject: New Ad has been published.
Date: Thu, 28 Mar 2019 00:57:13 +0000
From: XXXX.XX <XXXX.XX>
Message-ID: <[email protected]>
X-Mailer: PHPMailer 5.2.22 (https://github.com/PHPMailer/PHPMailer)
MIME-Version: 1.0
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit
X-PPP-Message-ID: <[email protected]>
X-PPP-Vhost: XXXX.XX
Heisann, da har vi publisert annonsen din med denne overskriften:
‘Gopro Hero 2’
Du kan se annonsen publisert her: https://XXXX.XX/
Vil du endre noe klikk her: https://XXXX.XX?post=1219&action=edit
XXXX.XX er gratis takket være støtten vi får av https://XXXX.XX/
Hi,
thanks, the email has a Content-Type: text/html; charset=utf-8 header so it is being sent in HTML format but the actual email content does not seem to have any tags.
I tried on my dev site to make a part of text bold and it seems to be working fine?
One thing that might not be working is the formatting, in the HTML format the new line tags are not added automatically, mainly because it is much better to use the Text Editor and enter all the HTML tags manually not using the visual editor.
In other words, the best way to use the HTML emails is to click in the editor “Text” tab and enter the HTML manually this gives the most control over them.
If you would like to use the Visual editor to compose HTML emails then you can apply the new line tags to emails automatically by adding the code below in your theme functions.php file
add_filter( "wpadverts_message", function( $mail ) {
$mail["message"] = nl2br( $mail["message"] );
return $mail;
} );
Thread Starter
kamoe
(@kamoe)
Hi Greg, thanks.. yes using the text editor adding HTML there works just fine.
Problem solved 🙂
K
Hi,
ok great, i am marking this thread as resolved then :).