-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsendVerification.php
More file actions
35 lines (23 loc) · 1.12 KB
/
sendVerification.php
File metadata and controls
35 lines (23 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
require_once 'vendor/autoload.php';
$sendgrid = new SendGrid('app39633407@heroku.com', 'n4vqrqdf5321');
$message = new SendGrid\Email();
$message->addTo("$email")->
setFrom('noreply@friendezvous.com')->
setSubject('Friendezvous Signup Verification')->
setHtml('
Hi there,<br><br>
Thank you for joining Friendezvous. Now you can easily organize any meetings with your friends whenever and wherever you want.<br><br>
You have created an account with the following credentials: <br><br>
-----------------------------------------------------------<br>
Email: '.$email.' <br>
Password: '.$password.' <br>
-----------------------------------------------------------<br><br>
Simply click on this link to activate your account:<br>
http://friendezvous.herokuapp.com/verify.php?email='.$email.'&activateHash='.$activateHash.'<br><br>
We are looking forward to organize your first meeting on Friendezvous!<br><br><br>
Sincerely,<br><br><br>
Friendezvous Team
');
$response = $sendgrid->send($message);
?>