forked from vhooloo/REG_Patient
/
riskevaluation1.php
47 lines (30 loc) · 1.3 KB
/
riskevaluation1.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
echo "Here I am";
require_once('include/SugarPHPMailer.php');
$emailObj = new Email();
$defaults = $emailObj->getSystemDefaultEmail();
$mail = new SugarPHPMailer();
$mail->setMailerForSystem();
//$mail->From = $defaults['email'];
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "mail.vinksoftware.com"; // SMTP server
$mail->SMTPDebug = 2; // enables SMTP debug information (for testing)
// 1 = errors and messages
// 2 = messages only
$mail->SMTPAuth = true; // enable SMTP authentication
//$mail->SMTPSecure = 'tls';
$mail->Port = 26; // set the SMTP port for the GMAIL server
$mail->Username = "vinay.hooloomann@vinksoftware.com"; // SMTP account username
$mail->Password = "Micore12"; // SMTP account password
$mail->SetFrom('vinay.hooloomann@vinksoftware.com', 'Vinay Hooloomann');
//$mail->AddReplyTo('vhooloo@gmail.com', 'Vinay Hooloomann');
$mail->Subject = "PHPMailer Test Subject via smtp, basic with authentication";
$address = "vhooloo@yahoo.com";
$mail->AddAddress($address, "Vinay Hooloomann");
$mail->Body = 'Test';
//$mail->prepForOutbound();
//$mail->AddAddress($email);
$mail->Send();
echo "sent";
?>