-
Notifications
You must be signed in to change notification settings - Fork 0
/
estudo.php
24 lines (21 loc) · 975 Bytes
/
estudo.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
include 'codigo.php';
$mail = new PHPMailer;
$mail->isSMTP(); // Set mailer to use SMTP
$mail->Host = 'socialsivex.com'; // Specify main and backup SMTP servers
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = '[email protected]'; // your email id
$mail->Password = 'Gabriel124'; // your password
$mail->SMTPSecure = 'ssl';
$mail->Port = 465; //587 is used for Outgoing Mail (SMTP) Server.
$mail->setFrom('[email protected]', 'Sivex Social Network');
$mail->addAddress('[email protected]'); // Add a recipient
$mail->isHTML(true); // Set email format to HTML
$bodyContent = '<h1>Registo com Sucesso</h1>';
$bodyContent .= '<p>O seu registo foi completo. Ative agora a sua <a href="http://socialsivex.com/ativar.php">Conta</a>';
$mail->Subject = 'Sivex - Registo Concluido';
$mail->Body = $bodyContent;
if(!$mail->send()) {
} else {
}
?>