Send Add Calendar Button with PHPMailer

0

I have this script.

<!-- AddEvent -->
<script type="text/javascript" src="https://addevent.com/libs/atc/1.6.1/atc.min.js"asyncdefer></script><divtitle="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 This tutorial page

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

I just could not add javascript to the message

Even setting the line

$mail->IsHTML(true);
    
asked by anonymous 16.05.2017 / 16:37

1 answer

1

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

In other words, you will not have to add the addevent widget in the body of the email.

I suggest you take a look at addevent's own API and check if there is a possibility that you could use 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 in charge of continuing to log events.

    
16.05.2017 / 16:46