PHP email template
Posted: Wed Jul 18, 2018 9:55 am
Hi Steve
This is not a phpbb question but this is the closest category I could find.
I am using a GDPR plugin that send emails. Instead of using WordPress templates they have coded the texts into php, and they are sent as plain text.
I have been able to make them look less spammy by editing the text to readable English but, as a minimum I'd like to include a banner image. But I can't find the syntax.
Here's the php
The image file is located in the folder:
(this is on a hosted site, not the NAS.
Any assistance gratefully received.
This is not a phpbb question but this is the closest category I could find.
I am using a GDPR plugin that send emails. Instead of using WordPress templates they have coded the texts into php, and they are sent as plain text.
I have been able to make them look less spammy by editing the text to readable English but, as a minimum I'd like to include a banner image. But I can't find the syntax.
Here's the php
Code: Select all
<?php
echo sprintf(
/* translators: 1: The request content, 2: confirmation link, 3: reset password link */
esc_html__(
'From: OurFamilyHistory.club
A request has been made to correct your personal information on our site.
If this request came from you please click the link below to confirm, and we will do our best to fulfil it.
--------------------------------------------------------
Request
--------------------------------------------------------
%1$s
Click here to confirm: %2$s
---------------------------------------------------------------------------------
If the request did not come from you please take immediate action to reset your password: %3$s
', 'gdpr' ),
esc_html( $args['data'] ),
esc_url_raw( $args['confirm_url'] ),
esc_url_raw( $args['forgot_password_url'] )
);
Code: Select all
/srv/users/paulbarrett/apps/ourfamilyhistory/public/wp-content/uploads/EmailHeader
Any assistance gratefully received.