X-Git-Url: http://git.hcoop.net/clinton/MarylandElectronicPetitionSignature.git/blobdiff_plain/a52532ef88ee37862d639305429c96d934c345d1..4108c6129a33144d77835efc3c258787dde0a1a7:/email.php diff --git a/email.php b/email.php index 49ab5bd..8dd59b1 100644 --- a/email.php +++ b/email.php @@ -3,12 +3,13 @@ require_once "Mail.php"; include_once('/var/www/secure.php'); +// USAGE meps_mail('Patrick ','I just wanted to take a second and follow up with your visit to md-petition.com and see if you needed anything, or had any questions.','Petition Follow-Up'); function meps_mail($to,$msg,$sub){ global $gmail_email_user; global $gmail_email_pass; $from = 'MD Petition Support '; //$to = 'Patrick '; - $subject = $sub.' [MD-Petiton.com]'; + $subject = $sub.' [MD-Petition.com]'; $body = "$msg



Patrick McGuire
MD Petition Support mdpetition@gmail.com
https://www.md-petition.com "; $headers = array( @@ -30,11 +31,10 @@ function meps_mail($to,$msg,$sub){ $mail = $smtp->send($to, $headers, $body); if (PEAR::isError($mail)) { - // echo('

' . $mail->getMessage() . '

'); + return $mail->getMessage(); } else { - // echo('

Message successfully sent!

'); + return 'NO ERROR'; } + } - - meps_mail('Patrick ','I just wanted to take a second and follow up with your visit to md-petition.com and see if you needed anything, or had any questions.','Petition Follow-Up');