Search in support tickets

#947 – New email notifications are not sent to users

Posted in ‘Support’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Sunday, 01 August 2021 14:02 CEST
LenaJL
Hi,

thank you for the new email notification system. It works for admin emails but while testing as a frontend user, setting up an ad there was no email send to user after publishing the ad in backend.

Can you check?

Thx,
Leni
Custom Fields
Joomla Version
latest
PHP Version
latest
Product
AdsManager
Product Version
latest
Sunday, 01 August 2021 14:14 CEST
LenaJL
ok, found the issue. It's because of the html tags that I used - as you already said the editor has some problems...Would it help if I add the html directly to the database until this bug is fixed?

Thx,
Leni
Tuesday, 03 August 2021 13:33 CEST
loic
Hello,

I will try to fix that this week.

Sorry about the late reply.

Best regards.
 
Wednesday, 04 August 2021 14:46 CEST
loic
Hello,

To fix that, you just need to change one line, in administrator/components/com_adsmanager/views/admin/tmpl/emailtemplate.php, line 67 :

replace :
$editor = JEditor::getInstance();


By :
$editor = JFactory::getEditor();


Best regards.
 
Sunday, 08 August 2021 10:45 CEST
LenaJL
Hi,

I looks like this is not solving the problem. After changing the code I added my template:
<table id="bodyTable" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; height: 100% !important; width: 100% !important; background: #Ffff; margin: 0; padding: 0;" border="0" width="100%" cellspacing="0" cellpadding="0" align="center" bgcolor="#fff">
<tbody>
<tr>
<td id="bodyCell" style="mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; border-top-width: 0; height: 100% !important; width: 100% !important; margin: 0; padding: 20px;" align="center" valign="top">
<table id="templateContainer" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; border: 0;" border="0" width="600" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;" align="center" valign="top">
<table id="templateHeader" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; border-top-width: 0; border-bottom-width: 0; background: #FFFFFF;" border="0" width="600" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
<tbody>
<tr>
<td class="headerContainer" style="mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;" valign="top">
<table class="mcnImageBlock" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;" border="0" width="100%" cellspacing="0" cellpadding="0">
<tbody class="mcnImageBlockOuter">
<tr>
<td class="mcnImageBlockInner" style="mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; padding: 0px;" valign="top">
<table class="mcnImageContentContainer" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;" border="0" width="100%" cellspacing="0" cellpadding="0" align="left">
<tbody>
<tr>
<td class="mcnImageContent" style="text-align: center; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; padding: 0 0px;" align="center" valign="top"><img class="mcnImage" style="max-width: 600px; padding-bottom: 0; display: inline !important; vertical-align: bottom; outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; border: 0;" src="https://gallery.mailchimp.com/0500806d4ea1b3fc656a87d46/images/0f7db7d2-d456-4210-91a3-8d2df6ef001a.png" alt="" width="600" align="center" /></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;" align="center" valign="top">
<table id="templateBody" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; border-top-width: 0; border-bottom-width: 0; background: #FFFFFF;" border="0" width="600" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
<tbody>
<tr>
<td class="bodyContainer" style="mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;" valign="top">
<table class="mcnTextBlock" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;" border="0" width="100%" cellspacing="0" cellpadding="0">
<tbody class="mcnTextBlockOuter">
<tr>
<td class="mcnTextBlockInner" style="mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;" valign="top">
<table class="mcnTextContentContainer" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;" border="0" width="600" cellspacing="0" cellpadding="0" align="left">
<tbody>
<tr>
<td class="mcnTextContent" style="padding: 10px 18px 9px; font-size: 36px; line-height: 100%; text-align: center;" valign="top"><span style="font-family: open sans,helvetica neue,helvetica,arial,sans-serif;">Auftragsbestätigung</span></td>
</tr>
</tbody>
<tbody class="mcnTextBlockOuter">
<tr>
<td class="mcnTextBlockInner" style="padding-top: 9px;" valign="top">
<table style="width: 100%;" border="0" width="100%" cellspacing="0" cellpadding="0" align="left">
<tbody>
<tr>
<td style="width: 600px;" valign="top" width="600">
<table class="mcnTextContentContainer" style="max-width: 100%; min-width: 100%;" border="0" width="100%" cellspacing="0" cellpadding="0" align="left">
<tbody>
<tr>
<td class="mcnTextContent" style="padding: 0 18px 9px 18px;" valign="top">
<div style="text-align: center;"><img style="border: 0px; width: 100px; height: 4px; margin: 0px;" src="https://gallery.mailchimp.com/0500806d4ea1b3fc656a87d46/images/7ef7cddb-8b24-4e30-885d-d304646e2c4e.png" width="100" height="4" data-file-id="1123565" /></div>
</td>
</tr>
<tr>
<td class="mcnTextContent" style="padding: 0 18px 9px 18px;" valign="top"> </td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td class="mcnTextContent" style="padding: 0px 60px 9px; font-size: 14px; font-style: normal; font-weight: normal; text-align: center;" valign="top">
<p>Sehr geehrter Auftraggeber,</p>
<p>Ihr Inserat mit der ID {id} wurde geprüft und ist nun für Auftragnehmer zur Bewerbung freigegeben.</p>
<p>Das Inserat ist bis zum {expiration_date} veröffentlicht.</p>
<p>Hier finden Sie den Link zum Inserat: {link}</p>
<p>Vielen Dank,<br />Ihr HostessNet Team</p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<table class="mcnTextBlock" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;" border="0" width="100%" cellspacing="0" cellpadding="0">
<tbody class="mcnTextBlockOuter">
<tr>
<td class="mcnImageContent" style="text-align: center; padding: 0 0px 0 0px;" valign="top"><img class="mcnImage" style="max-width: 957px; padding-bottom: 0; display: inline !important; vertical-align: bottom;" src="https://gallery.mailchimp.com/0500806d4ea1b3fc656a87d46/images/eaa81d1e-1745-4159-ae30-a550f959cb85.png" alt="" width="600" align="center" /></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;" align="center" valign="top">
<table id="templateFooter" style="background-color: #e8eaed; border-collapse: collapse; border-top-width: 0; border-bottom-width: 0; background: #ffffff; width: 600px;" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
<tbody>
<tr>
<td class="footerContainer" style="background-color: #e8eaed; padding-bottom: 9px; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;" valign="top">
<table class="mcnBoxedTextBlock" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;" border="0" width="100%" cellspacing="0" cellpadding="0">
<tbody class="mcnBoxedTextBlockOuter">
<tr>
<td class="mcnBoxedTextBlockInner" style="mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;" valign="top"><span style="font-size: 14px;"> </span></td>
</tr>
</tbody>
</table>
<table class="mcnFollowBlock" style="background-color: #e8eaed; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;" border="0" width="100%" cellspacing="0" cellpadding="0">
<tbody class="mcnFollowBlockOuter">
<tr>
<td class="mcnTextContent" style="background-color: #e8eaed; padding: 0px 18px 9px; font-size: 14px; font-style: normal; font-weight: bold; text-align: center;" valign="top"><span style="font-size: 14px; font-weight: 400;"><span style="font-family: open sans,helvetica neue,helvetica,arial,sans-serif;">   <a style="color: black; text-decoration: none; font-weight: normal;" href="/www.hostessnet.de/agb"> AGB </a>   </span> <span style="font-family: open sans,helvetica neue,helvetica,arial,sans-serif;">    <a style="color: black; text-decoration: none; font-weight: normal;" href="/www.hostessnet.de/datenschutz"> DATENSCHUTZ </a>   </span>    <span style="font-family: open sans,helvetica neue,helvetica,arial,sans-serif;">   <a style="color: black; text-decoration: none; font-weight: normal;" href="/www.hostessnet.de/impressum"> IMPRESSUM </a>   </span></span></td>
</tr>
<tr>
<td class="mcnTextContent" style="padding: 0px 18px 9px; font-size: 14px; font-style: normal; font-weight: bold; text-align: center;" valign="top"><span style="font-size: 14px; font-weight: 400;"> </span></td>
</tr>
<tr>
<td class="mcnTextContent" style="padding: 0px 18px 9px; font-size: 14px; font-style: normal; font-weight: bold; text-align: center;" valign="top">
<div style="background-color: #e8eaed; font-family: 'Montserrat', sans-serif;"><span style="font-family: Verdana, Arial, Helvetica, sans-serif;"><span style="font-size: 14px; font-weight: 400;"><img style="border: 0px; width: 31px; height: 30px; margin: 0px;" src="https://gallery.mailchimp.com/0500806d4ea1b3fc656a87d46/images/50c5ccf3-fe03-48a3-9373-879abb930b5f.png" width="31" height="30" data-file-id="1123585" /></span></span></div>
</td>
</tr>
</tbody>
</table>
<table class="mcnTextBlock" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;" border="0" width="100%" cellspacing="0" cellpadding="0">
<tbody class="mcnTextBlockOuter">
<tr>
<td class="mcnTextBlockInner" style="mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;" valign="top">
<table class="mcnTextContentContainer" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;" border="0" width="600" cellspacing="0" cellpadding="0" align="left">
<tbody>
<tr>
<td class="mcnTextContent" style="padding: 0px 18px 9px; color: #000000; font-size: 14px; font-style: normal; text-align: center;" valign="top"> </td>
</tr>
<tr>
<td class="mcnTextContent" style="padding: 0px 18px 9px; color: #000000; font-size: 14px; font-style: normal; text-align: center;" valign="top"><span style="font-size: 14px;"> </span></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>


and after saving the and entering it again the code was gone...

Leni
Tuesday, 10 August 2021 13:25 CEST
loic
Hello,

I will test that email asap.

I come back to you.

Best regards.
 
Thursday, 12 August 2021 14:32 CEST
loic
Hello,

So here is the solution.

I will release a new version tonight with the fix for everyone.

In administrator/components/com_adsmanager/controllers/emailtemplate.php, find the function save, and in it the line 82:
$post = JFactory::getApplication()->input->post->getArray();


After that line, add some code to have that (let the line 82 in place, it is needed):
$post = JFactory::getApplication()->input->post->getArray();
		
// Needed to accept the HTML tags
// We load the body without any filter, the access to that page must be reserved to people you trust.
$bodyRaw = JFactory::getApplication()->input->get('body', '', 'RAW');
$post['body'] = $bodyRaw;


Best regards.
 

Please rate this ticket

Help us improve our support services by rating this ticket from one to five stars, according to how much you are satisfied from the handling of this ticket, one being not satisfied and five being very satisfied.