Send Add Calendar Button with Phpmailer

Asked

Viewed 37 times

0

I have this script.

<!-- AddEvent -->
<script type="text/javascript" src="https://addevent.com/libs/atc/1.6.1/atc.min.js" async defer></script>

<div title="Add to Calendar" class="addeventatc">
    Add to Calendar
    <span class="start">05/30/2017 16:00</span>
    <span class="end">05/30/2017 18:00</span>
    <span class="timezone">America/Caracas</span>
    <span class="title">Summary of the event</span>
    <span class="description">Description of the event</span>
    <span class="location">Location of the event</span>
    <span class="date_format">MM/DD/YYYY</span>
    <span class="client">apjeYlqFLzfsSVnNdmRH28418</span>
</div>

According to the tutorial of that page

I would like to send the "Add To Calendar" button using the Phpmailer

I just couldn’t add javascript to the message

Even if you set the line

$mail->IsHTML(true);

1 answer

1


When you send an email, automatically the Email Client blocks any script that is included in the body of the email.

That is there will be no way you can add the addevent widget in the body of the email.

I suggest you take a look at the addevent API itself and check if there is the possibility of you using their services, then you would just create a simple link in the body of the email, which would redirect to this page that will be tasked to give continuity to the registration of events.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.