Why HTML tags disappear in email text after having sent the message

Phoca Email (Newsletter) - sending emails and managing newsletters in Joomla! CMS
User avatar
f.gruber
Phoca Member
Phoca Member
Posts: 32
Joined: 12 Sep 2012, 11:47

Why HTML tags disappear in email text after having sent the message

Post by f.gruber » 21 Oct 2021, 18:04

Since my fist days of using Phoca Email extension I wonder, why all HTML tags get lost, after the email has been sent.

Can this behaviour be changed?

Thanks for answering.
Ferdinand

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 44438
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Why HTML tags disappear in email text after having sent the message

Post by Jan » 25 Oct 2021, 00:40

Hi, which HTML tags you mean? Which part do you mean? Sending email or newsletter?

Jan
If you find Phoca extensions useful, please support the project

User avatar
f.gruber
Phoca Member
Phoca Member
Posts: 32
Joined: 12 Sep 2012, 11:47

Re: Why HTML tags disappear in email text after having sent the message

Post by f.gruber » 12 Nov 2021, 22:30

This problem is related to Phoca Email.
Let me give an example:
I create a Mail message in Phoca Email using the graphical editor as usual. Now I switch to the code view, to show the created HTML. This is the HTML text:

Code: Select all

<h1>Message</h1>
<h2>Test</h2>
<p><em>This</em> is a <strong>HTML</strong> Mail. It was sent with <span style="color: #0000ff;">Phoca Email</span> Component.</p>
Now I click on the SEND button. After having sent the E-Mail, the text in the editor window has changed to plain text:

Code: Select all

<p>Message Test This is a HTML Mail. It was sent with Phoca Email Component.</p>
As you can see, all HTML tags have got removed.

However, the recipient received the message as HTML formatted text.

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 44438
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Why HTML tags disappear in email text after having sent the message

Post by Jan » 18 Nov 2021, 23:04

Hi,

so my idea is following:

Phoca Email gets the HTML version and send the HTML version. The second function is to save the content but this will be stripped by editor function. :idea:

The question is, does the recipent get the right HTML? With all the set HTML tags?

Can you paste me the screenshot of situation before and after sending?

Jan
If you find Phoca extensions useful, please support the project

User avatar
f.gruber
Phoca Member
Phoca Member
Posts: 32
Joined: 12 Sep 2012, 11:47

Re: Why HTML tags disappear in email text after having sent the message

Post by f.gruber » 19 Nov 2021, 23:08

Jan wrote:
18 Nov 2021, 23:04
.. The question is, does the recipent get the right HTML? With all the set HTML tags? ...
Yes, the recipient gets the HTML Mail including all HTML tags as expected.

Screenshot of the mail message in the editor before having sent:
Image

Screenshot of the mail message in the editor after having sent:
Image

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 44438
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Why HTML tags disappear in email text after having sent the message

Post by Jan » 28 Nov 2021, 14:15

Hi, when you switch to standard tinyMCE editor (for test only), do you get the same problem?

Jan
If you find Phoca extensions useful, please support the project

Post Reply