@@ 154-166 (lines=13) @@ | ||
151 | ||
152 | // For the ability to send emails from an AWS EC2 instance |
|
153 | // If you need this functionality, you can configure the settings accordingly in /default_global_settings.php |
|
154 | if ($final_global_template_vars["hosting_vendor"] && ($final_global_template_vars["hosting_vendor"] == "aws_ec2")) |
|
155 | { |
|
156 | $email = array(); |
|
157 | require_once $final_global_template_vars["path_to_smtp_settings"]; |
|
158 | ||
159 | // SMTP Settings |
|
160 | $mail->IsSMTP(); |
|
161 | $mail->SMTPAuth = $email['settings']['smtpauth']; |
|
162 | $mail->SMTPSecure = $email['settings']['smtpsecure']; |
|
163 | $mail->Host = $email['settings']['host']; |
|
164 | $mail->Username = $email['settings']['username']; |
|
165 | $mail->Password = $email['settings']['password']; |
|
166 | } |
|
167 | ||
168 | // Send email to user |
|
169 | $mail->SetFrom($final_global_template_vars["send_emails_from"], $final_global_template_vars["site_name"].' Accounts'); // From (verified email address) |
@@ 67-79 (lines=13) @@ | ||
64 | ||
65 | // For the ability to send emails from an AWS EC2 instance... |
|
66 | // If you need this functionality, you can configure the settings accordingly in /default_global_settings.php |
|
67 | if ($final_global_template_vars["hosting_vendor"] && ($final_global_template_vars["hosting_vendor"] == "aws_ec2")) { |
|
68 | ||
69 | $email = array(); |
|
70 | require_once $final_global_template_vars["path_to_smtp_settings"]; |
|
71 | // SMTP Settings |
|
72 | $mail->IsSMTP(); |
|
73 | $mail->SMTPAuth = $email['settings']['smtpauth']; |
|
74 | $mail->SMTPSecure = $email['settings']['smtpsecure']; |
|
75 | $mail->Host = $email['settings']['host']; |
|
76 | $mail->Username = $email['settings']['username']; |
|
77 | $mail->Password = $email['settings']['password']; |
|
78 | ||
79 | } |
|
80 | ||
81 | // From (verified email address). |
|
82 | $mail->SetFrom($final_global_template_vars["send_emails_from"], $final_global_template_vars["site_name"].' Accounts'); |
@@ 105-116 (lines=12) @@ | ||
102 | ||
103 | // For the ability to send emails from an AWS EC2 instance |
|
104 | // If you need this functionality, you can configure the settings accordingly in /default_global_settings.php |
|
105 | if ($final_global_template_vars["hosting_vendor"] && ($final_global_template_vars["hosting_vendor"] == "aws_ec2")) { |
|
106 | $email = array(); |
|
107 | require_once($final_global_template_vars["path_to_smtp_settings"]); |
|
108 | // SMTP Settings |
|
109 | $mail = new PHPMailer(); |
|
110 | $mail->IsSMTP(); |
|
111 | $mail->SMTPAuth = $email['settings']['smtpauth']; |
|
112 | $mail->SMTPSecure = $email['settings']['smtpsecure']; |
|
113 | $mail->Host = $email['settings']['host']; |
|
114 | $mail->Username = $email['settings']['username']; |
|
115 | $mail->Password = $email['settings']['password']; |
|
116 | } |
|
117 | ||
118 | // From (verified email address). |
|
119 | $mail->SetFrom($final_global_template_vars["send_emails_from"], $final_global_template_vars["site_name"].' Accounts'); |