public function SendMessage() { // Set debug mode //QEmailServer::$TestMode = true; //QEmailServer::$TestModeDirectory = __DOCROOT__ . '/../file_assets/emails'; QEmailServer::$SmtpServer = SMTP_SERVER; // Create a new message // Note that you can list multiple addresses and that Qcodo supports Bcc and Cc if ($this->objPrayerRequest) { $objMessage = new QEmailMessage(); $objMessage->From = 'info@alcf.net <*****@*****.**>'; $objMessage->To = $this->objPrayerRequest->Email; $objMessage->Subject = $this->txtSubject->Text; // Setup Plaintext Message $strBody = "Dear " . $this->objPrayerRequest->Name . ",\r\n\r\n"; $strBody .= sprintf("Someone has sent you a note of encouragement regarding your prayer request."); $strBody .= sprintf("\r\nYou can view their note below."); $strBody .= '\\r\\nRegards, \\r\\nALCF Communications\\r\\n\\r\\n'; $strBody .= $this->txtNote->Text; $objMessage->Body = $strBody; // Also setup HTML message (optional) $strBody = "Dear " . $this->objPrayerRequest->Name . ',<br/><br/>'; $strBody .= sprintf("Someone has sent you a note of encouragement regarding your prayer request."); $strBody .= sprintf("<br>You can view their note below."); $strBody .= '<br>Regards,<br/><b>ALCF Communications</b><br><br>'; $strBody .= '<p>' . $this->txtNote->Text . '</p>'; $objMessage->HtmlBody = $strBody; // Add random/custom email headers $objMessage->SetHeader('x-application', 'Communications Team'); QEmailServer::Send($objMessage); return 1; } else { return 0; } }
public function SendMessage() { // Set debug mode //QEmailServer::$TestMode = true; //QEmailServer::$TestModeDirectory = __DOCROOT__ . '/../file_assets/emails'; QEmailServer::$SmtpServer = SMTP_SERVER; // Create a new message // Note that you can list multiple addresses and that Qcodo supports Bcc and Cc $objMessage = new QEmailMessage(); $objMessage->From = 'info@alcf.net <*****@*****.**>'; $objMessage->To = $this->txtEmail->Text; $objMessage->Subject = 'Your Praise testimony has been successfuly submitted.'; // Setup Plaintext Message $strBody = "Dear " . $this->txtName->Text . ",\r\n\r\n"; $strBody .= sprintf("You have successfully submitted your praise testimony."); $strBody .= sprintf("\r\nYou can view your praise testimony by selecting the 'Praises and Thanks' button in the prayer room."); $strBody .= '\\r\\nRegards, \\r\\nALCF Communications'; $objMessage->Body = $strBody; // Also setup HTML message (optional) $strBody = "Dear " . $this->txtName->Text . ',<br/><br/>'; $strBody .= sprintf("You have successfully submitted your praise testimony."); $strBody .= sprintf("<br>You can view your praise testimony by selecting the 'Praises and Thanks' button in the prayer room."); $strBody .= '<br>Regards,<br/><b>ALCF Communications</b>'; $objMessage->HtmlBody = $strBody; // Add random/custom email headers $objMessage->SetHeader('x-application', 'Communications Team'); QEmailServer::Send($objMessage); }
public function SendMessage() { // Set debug mode //QEmailServer::$TestMode = true; //QEmailServer::$TestModeDirectory = __DOCROOT__ . '/../file_assets/emails'; QEmailServer::$SmtpServer = SMTP_SERVER; // Create a new message // Note that you can list multiple addresses and that Qcodo supports Bcc and Cc $objMessage = new QEmailMessage(); $objMessage->From = 'Carisa Hamilton <*****@*****.**>'; $objMessage->To = $this->objGroupRegistration->Email; $objMessage->Bcc = '*****@*****.**'; $objMessage->Subject = 'Invitation to Growth Groups'; // Setup Plaintext Message $strBody = "Hello " . $this->objGroupRegistration->FirstName . "!\r\n\r\n"; $strBody .= 'We are very excited that you are interested in facilitating a Growth Group! \\r\\nAttached is a ' . 'facilitator application we ask all potential facilitators to complete. \\r\\n' . 'Please fill it out and send it back to me via email (carisa.hamilton@alcf.net). \\r\\nYou may also fax ' . 'it to the church office at 650-625-1500 or drop it off in the All Forms Box at the worship ' . 'center. \\r\\nOnce we receive your application, Pastor John will follow up with you for a short ' . 'interview.\\r\\n'; $strBody .= 'If you have any questions or concerns please feel free to contact me.\\r\\n\\r\\n'; $strBody .= 'Blessings,\\r\\n Carisa'; $objMessage->Body = $strBody; // Also setup HTML message (optional) $strBody = "Hello " . $this->objGroupRegistration->FirstName . "!<br><br>"; $strBody .= 'We are very excited that you are interested in facilitating a Growth Group! <br>Attached is a ' . 'facilitator application we ask all potential facilitators to complete. <br>' . 'Please fill it out and send it back to me via email (carisa.hamilton@alcf.net). <br>You may also fax ' . 'it to the church office at 650-625-1501 or drop it off in the All Forms Box at the worship ' . 'center. <br>Once we receive your application, Pastor John will follow up with you for a short ' . 'interview.<br><br>'; $strBody .= 'If you have any questions or concerns please feel free to contact me.<br><br>'; $strBody .= 'Blessings,<br> Carisa'; $objMessage->HtmlBody = $strBody; // Add the attachment $objFile = new QEmailAttachment(__DOCROOT__ . '/../file_assets/FacilitatorApplication.doc'); $objMessage->AddAttachment($objFile); // Add random/custom email headers $objMessage->SetHeader('x-application', 'Growth Groups Ministry'); QEmailServer::Send($objMessage); }
public function SendNotification() { $objPerson = Person::Load($this->objPersonId); $email = ''; if ($objPerson->PrimaryEmail->Address) { $email = $objPerson->PrimaryEmail->Address; } else { $email = $objPerson->_Email->Address; } // Set debug mode //QEmailServer::$TestMode = true; //QEmailServer::$TestModeDirectory = __DOCROOT__ . '/../file_assets/emails'; QEmailServer::$SmtpServer = SMTP_SERVER; // Create a new message // Note that you can list multiple addresses and that Qcodo supports Bcc and Cc $objMessage = new QEmailMessage(); $objMessage->From = 'Christina Alo <*****@*****.**>'; $objMessage->To = 'Christina <*****@*****.**>'; $objMessage->Subject = 'Notification of Exiting Members'; // Setup Plaintext Message $strBody = "Hello Administrator (Christina)!\r\n\r\n"; $strBody .= 'r\\n'; $strBody .= 'Someone just unsubscribed from the church newsletter and closed their membership.\\r\\n\\r\\n'; $strBody .= sprintf("Their Details:\r\n%s %s\r\nemail: %s \r\n\r\n", $objPerson->FirstName, $objPerson->LastName, $email); $strBody .= 'Blessings,\\r\\n Noah.'; $objMessage->Body = $strBody; // Also setup HTML message (optional) $strBody = "Hello Administrator (Christina)!<br><br>"; $strBody .= 'Someone just unsubscribed from the church newsletter and closed their membership.<br><br>'; $strBody .= sprintf("Their Details:<br>%s %s<br>email: %s<br><br>", $objPerson->FirstName, $objPerson->LastName, $email); $strBody .= 'Blessings,<br> Noah.'; $objMessage->HtmlBody = $strBody; // Add random/custom email headers $objMessage->SetHeader('x-application', 'Church Newsletter Administration'); QEmailServer::Send($objMessage); }
QEmailServer::$SmtpServer = 'mx.acme.com'; // Create a new message // Note that you can list multiple addresses and that Qcodo supports Bcc and Cc $objMessage = new QEmailMessage(); $objMessage->From = 'ACME Reporting Service <*****@*****.**>'; $objMessage->To = 'John Doe <*****@*****.**>, Jane Doe <*****@*****.**>'; $objMessage->Bcc = '*****@*****.**'; $objMessage->Subject = 'Report for ' . QDateTime::NowToString(QDateTime::FormatDisplayDate); // Setup Plaintext Message $strBody = "Dear John and Jane Doe,\r\n\r\n"; $strBody .= "You have new reports to review. Please go to the ACME Portal at http://portal.acme.com/ to review.\r\n\r\n"; $strBody .= "Regards,\r\nACME Reporting Service"; $objMessage->Body = $strBody; // Also setup HTML message (optional) $strBody = 'Dear John and Jane Doe,<br/><br/>'; $strBody .= '<b>You have new reports to review.</b> Please go to the <a href="http://portal.acme.com/">ACME Portal</a> to review.<br/><br/>'; $strBody .= 'Regards,<br/><b>ACME Reporting Service</b>'; $objMessage->HtmlBody = $strBody; // Add random/custom email headers $objMessage->SetHeader('x-application', 'ACME Reporting Service v1.2a'); // Send the Message (Commented out for obvious reasons) // QEmailServer::Send($objMessage); // Note that you can also shortcut the Send command to one line for simple messages (similar to PHP's mail()) $strBody = "Dear John and Jane Doe,\r\n\r\n"; $strBody .= "You have new reports to review. Please go to the ACME Portal at http://portal.acme.com/ to review.\r\n\r\n"; $strBody .= "Regards,\r\nACME Reporting Service"; // QEmailServer::Send(new QEmailMessage('*****@*****.**', '*****@*****.**', 'Alerts Received!', $strBody)); ?> <?php require '../includes/footer.inc.php';
public function SendMessage() { $facilitatorList = array(); $groupInfo = array(); // Get information for each selected group foreach ($this->rbtnSelectArray as $rbtnSelect) { if ($rbtnSelect->Checked) { $objGroup = Group::Load($rbtnSelect->ActionParameter); $objGroupParticipants = GroupParticipation::LoadArrayByGroupId($objGroup->Id); $bFoundContact = false; // Check for Contact person first foreach ($objGroupParticipants as $objParticipant) { if ($objParticipant->GroupRoleId == $this->intGroupContactRoleId && $objParticipant->DateEnd == null) { $objContact = Person::Load($objParticipant->PersonId); $facilitatorList[] = $objContact; $bFoundContact = true; break; } } // If contact person not found, grab facilitator if (!$bFoundContact) { foreach ($objGroupParticipants as $objParticipant) { if ($objParticipant->GroupRoleId == $this->intFacilitatorRoleId && $objParticipant->DateEnd == null) { $objFacilitator = Person::Load($objParticipant->PersonId); $facilitatorList[] = $objFacilitator; break; } } } $ggGroup = GrowthGroup::Load($rbtnSelect->ActionParameter); $groupInfo[] = array(trim(str_replace(range(0, 9), '', $objGroup->Name)), $ggGroup->MeetingInfo); } } // Set debug mode //QEmailServer::$TestMode = true; //QEmailServer::$TestModeDirectory = __DOCROOT__ . '/../file_assets/emails'; QEmailServer::$SmtpServer = SMTP_SERVER; // Create a new message // Note that you can list multiple addresses and that Qcodo supports Bcc and Cc $objMessage = new QEmailMessage(); $objMessage->From = 'Carisa Hamilton <*****@*****.**>'; $objMessage->To = $this->objRegistrant->Email; $objMessage->Bcc = '*****@*****.**'; $objMessage->Subject = 'Invitation to Growth Groups'; // Setup Plaintext Message $strBody = "Dear " . $this->objRegistrant->FirstName . ",\r\n\r\n"; $strBody .= "Thank you for your interest in Growth Groups! Below is the information for one or more Growth Groups in your area. Please contact the facilitators below for more information about visiting. I've copied them on this e-mail so that they will know of your interest.\r\n\r\n"; $strBody .= sprintf("%s %s\r\n%s\r\n%s\r\n\r\n", $this->objRegistrant->FirstName, $this->objRegistrant->LastName, $this->objRegistrant->Phone, $this->objRegistrant->Email); if (count($groupInfo) >= 1) { if ($facilitatorList[0]->PrimaryEmailId == null) { $emailArray = Email::LoadArrayByPersonId($facilitatorList[0]->Id); $email = $emailArray[0]->Address; // just grab the first one we find } else { $email = Email::Load($facilitatorList[0]->PrimaryEmailId)->Address; } $strBody .= sprintf("%s, %s \r\\Contact: %s %s\r\n%s\r\n\r\n", $groupInfo[0][0], $groupInfo[0][1], $facilitatorList[0]->FirstName, $facilitatorList[0]->LastName, $email); $objMessage->Cc = $email; } if (count($groupInfo) >= 2) { if ($facilitatorList[1]->PrimaryEmailId == null) { $emailArray = Email::LoadArrayByPersonId($facilitatorList[1]->Id); $email = $emailArray[0]->Address; // just grab the first one we find } else { $email = Email::Load($facilitatorList[1]->PrimaryEmailId)->Address; } $strBody .= sprintf("%s, %s \r\\Contact: %s %s\r\n%s\r\n\r\n", $groupInfo[1][0], $groupInfo[1][1], $facilitatorList[1]->FirstName, $facilitatorList[1]->LastName, $email); $objMessage->Cc .= ', ' . $email; } if (count($groupInfo) >= 3) { if ($facilitatorList[1]->PrimaryEmailId == null) { $emailArray = Email::LoadArrayByPersonId($facilitatorList[2]->Id); $email = $emailArray[0]->Address; // just grab the first one we find } else { $email = Email::Load($facilitatorList[2]->PrimaryEmailId)->Address; } $strBody .= sprintf("%s, %s \r\\Contact: %s %s\r\n%s\r\n", $groupInfo[2][0], $groupInfo[2][1], $facilitatorList[2]->FirstName, $facilitatorList[2]->LastName, $email); $objMessage->Cc .= ', ' . $email; } $strBody .= '\\r\\n* Please don\'t hesitate to visit a group for 2 to 3 times before prayerfully deciding if the ' . 'group is a good fit for you.\\r\\n\\r\\n'; $strBody .= 'Regards, \\r\\nCarisa Hamilton'; $objMessage->Body = $strBody; // Also setup HTML message (optional) $strBody = "Dear " . $this->objRegistrant->FirstName . ',<br/><br/>'; $strBody .= 'Thank you for your interest in Growth Groups! Below is the information for one or more Growth Groups ' . 'in your area. <br>Please contact the facilitators below for more information about visiting. ' . 'I have copied them on this e-mail so that they will know of your interest.<br><br>'; $strBody .= sprintf("%s %s<br>%s<br>%s<br><br>", $this->objRegistrant->FirstName, $this->objRegistrant->LastName, $this->objRegistrant->Phone, $this->objRegistrant->Email); if (count($groupInfo) >= 1) { if ($facilitatorList[0]->PrimaryEmailId == null) { $emailArray = Email::LoadArrayByPersonId($facilitatorList[0]->Id); $email = $emailArray[0]->Address; // just grab the first one we find } else { $email = Email::Load($facilitatorList[0]->PrimaryEmailId)->Address; } $strBody .= sprintf("<b>Option 1</b><br>%s, %s<br>Contact: %s %s<br>%s<br><br>", $groupInfo[0][0], $groupInfo[0][1], $facilitatorList[0]->FirstName, $facilitatorList[0]->LastName, $email); $objMessage->Cc .= ', ' . $email; } if (count($groupInfo) >= 2) { if ($facilitatorList[1]->PrimaryEmailId == null) { $emailArray = Email::LoadArrayByPersonId($facilitatorList[1]->Id); $email = $emailArray[0]->Address; // just grab the first one we find } else { $email = Email::Load($facilitatorList[1]->PrimaryEmailId)->Address; } $strBody .= sprintf("<b>Option 2</b><br>%s, %s <br><b>Contact:</b> %s %s<br>%s<br><br>", $groupInfo[1][0], $groupInfo[1][1], $facilitatorList[1]->FirstName, $facilitatorList[1]->LastName, $email); $objMessage->Cc .= ', ' . $email; } if (count($groupInfo) >= 3) { if ($facilitatorList[1]->PrimaryEmailId == null) { $emailArray = Email::LoadArrayByPersonId($facilitatorList[2]->Id); $email = $emailArray[0]->Address; // just grab the first one we find } else { $email = Email::Load($facilitatorList[2]->PrimaryEmailId)->Address; } $strBody .= sprintf("<b>Option 3</b><br>%s, %s <br><b>Contact:</b> %s %s<br>%s<br>", $groupInfo[2][0], $groupInfo[2][1], $facilitatorList[2]->FirstName, $facilitatorList[2]->LastName, $email); $objMessage->Cc .= ', ' . $email; } $strBody .= '<br>* Please don\'t hesitate to visit a group for 2 to 3 times before prayerfully deciding if the ' . 'group is a good fit for you.<br><br>'; $strBody .= 'Regards,<br/><b>Carisa Hamilton</b>'; $objMessage->HtmlBody = $strBody; // Add random/custom email headers $objMessage->SetHeader('x-application', 'Growth Groups Ministry'); QEmailServer::Send($objMessage); }
function sendSuccessEmail($intPersonId, $intDonationId, $strCardholderName, $strAccountNumber, $intCreditCardTypeId, $strPaymentItems, $intAmount) { // Set debug mode //QEmailServer::$TestMode = true; //QEmailServer::$TestModeDirectory = __DOCROOT__ . '/../file_assets/emails'; QEmailServer::$SmtpServer = SMTP_SERVER; $objPerson = Person::Load($intPersonId); $strEmail = $objPerson->GetEmailToUseForCommLists(); $itemarray = explode(',', $strPaymentItems); // Create a new message // Note that you can list multiple addresses and that Qcodo supports Bcc and Cc $objMessage = new QEmailMessage(); $objMessage->From = 'ALCF Support <*****@*****.**>'; $objMessage->To = $strEmail; $objMessage->Bcc = 'ALCF Support <*****@*****.**>'; $objMessage->Subject = 'Notification of Recurring Payment Success'; // Setup Plaintext Message $strBody = '======= DO NOT REPLY =======\\r\\n'; $strBody .= sprintf("Dear %s %s,\r\n\r\n", $objPerson->FirstName, $objPerson->LastName); $strBody .= 'r\\n'; $strBody .= sprintf("Thank you for your (Recurring)online donation to Abundant Life Christian Fellowship. Your confirmation number is %d. You may want to print this page for your records.\r\n\r\n", $intDonationId); $strBody .= sprintf("An online payment of \$%01.2f has been charged on your credit card %s x%s. The following is a summary of your donation:\r\n", $intAmount, CreditCardType::ToString($intCreditCardTypeId), substr($strAccountNumber, strlen($strAccountNumber) - 4)); for ($i = 0; $i < count($itemarray); $i++) { $strBody .= sprintf("%s\r\n", $itemarray[$i]); } $strBody .= "You can view your stewardship receipt online at anytime at https://my.alcf.net, however please note that it may take up to five (5) business days for this most recent transaction to show up on your receipt.\r\n"; $strBody .= "If you have any questions, please don't hesitate to call Oom Vang at 650-561-8026 or email Oom.Vang@alcf.net.\r\n"; $strBody .= "Thank you for your continued support of the ministry at Abundant Life Christian Fellowship!\r\n\r\n"; $strBody .= "============================<br>"; $strBody .= "P.S. This email was sent from an unmanaged email account. Please do not reply, as any replies to this message will bounce back."; $objMessage->Body = $strBody; // Also setup HTML message (optional) $strBody = '======= DO NOT REPLY ======='; $strBody .= sprintf("Dear %s %s,<br><br>", $objPerson->FirstName, $objPerson->LastName); $strBody .= sprintf("Thank you for your (Recurring) online donation to Abundant Life Christian Fellowship. Your confirmation number is %d. You may want to print this page for your records.<br><br>", $intDonationId); $strBody .= sprintf("An online payment of \$%01.2f has been charged on your credit card x%s. The following is a summary of your donation:<br>", $intAmount, CreditCardType::ToString($intCreditCardTypeId), substr($strAccountNumber, strlen($strAccountNumber) - 4)); for ($i = 0; $i < count($itemarray); $i++) { $strBody .= sprintf("%s<br>", $itemarray[$i]); } $strBody .= "You can view your stewardship receipt online at anytime at https://my.alcf.net, however please note that it may take up to five (5) business days for this most recent transaction to show up on your receipt.<br>"; $strBody .= "If you have any questions, please don't hesitate to call Oom Vang at 650-561-8026 or email Oom.Vang@alcf.net.<br>"; $strBody .= "Thank you for your continued support of the ministry at Abundant Life Christian Fellowship!<br><br>"; $strBody .= "============================<br>"; $strBody .= "P.S. This email was sent from an unmanaged email account. Please do not reply, as any replies to this message will bounce back."; $objMessage->HtmlBody = $strBody; // Add random/custom email headers $objMessage->SetHeader('x-application', 'Recurring Online Donation'); QEmailServer::Send($objMessage); }
public function SendMessage() { // Set debug mode //QEmailServer::$TestMode = true; //QEmailServer::$TestModeDirectory = __DOCROOT__ . '/../file_assets/emails'; QEmailServer::$SmtpServer = SMTP_SERVER; // Create a new message // Note that you can list multiple addresses and that Qcodo supports Bcc and Cc $objMessage = new QEmailMessage(); $objMessage->From = 'info@alcf.net <*****@*****.**>'; $objMessage->To = 'geraldine.hill@alcf.net <*****@*****.** >'; // send to prayer team $objMessage->Subject = 'A Confidential Prayer Request was submitted.'; // Setup Plaintext Message $strBody = "Dear Prayer Team,\r\n\r\n"; $strBody .= sprintf("The following confidential prayer request was submitted:\r\n"); $strBody .= sprintf($this->txtContent->Text . '\\r\\n'); $strBody .= '\\r\\nRegards, \\r\\nALCF Communications'; $objMessage->Body = $strBody; // Also setup HTML message (optional) $strBody = "Dear Prayer Team,<br/><br/>"; $strBody .= sprintf("The following confidential prayer request was submitted:<br>"); $strBody .= sprintf($this->txtContent->Text . "<br>"); $strBody .= '<br>Regards,<br/><b>ALCF Communications</b>'; $objMessage->HtmlBody = $strBody; // Add random/custom email headers $objMessage->SetHeader('x-application', 'Communications Team'); QEmailServer::Send($objMessage); }
public function SendMessage($strSubscribedList) { // Set debug mode //QEmailServer::$TestMode = true; //QEmailServer::$TestModeDirectory = __DOCROOT__ . '/../file_assets/emails'; QEmailServer::$SmtpServer = SMTP_SERVER; // Create a new message // Note that you can list multiple addresses and that Qcodo supports Bcc and Cc $objMessage = new QEmailMessage(); $objMessage->From = 'info@alcf.net <*****@*****.**>'; $objMessage->To = $this->txtEmail->Text; $objMessage->Subject = 'Subscription Confirmation'; // Setup Plaintext Message $strBody = "Dear " . $this->txtFirstName->Text . ",\r\n\r\n"; $strBody .= sprintf("You have been successfully subscribed to the %s email list.", $strSubscribedList); $strBody .= sprintf("\r\nIf you did not subscribe to the list, please contact info@alcf.net"); $strBody .= '\\r\\nRegards, \\r\\nALCF Communications'; $objMessage->Body = $strBody; // Also setup HTML message (optional) $strBody = "Dear " . $this->txtFirstName->Text . ',<br/><br/>'; $strBody .= sprintf("You have been successfully subscribed to the %s email list.", $strSubscribedList); $strBody .= sprintf("<br>If you did not subscribe to the list, please contact info@alcf.net"); $strBody .= '<br>Regards,<br/><b>ALCF Communications</b>'; $objMessage->HtmlBody = $strBody; // Add random/custom email headers $objMessage->SetHeader('x-application', 'Communications Team'); QEmailServer::Send($objMessage); }
public function SendMessage() { // Set debug mode //QEmailServer::$TestMode = true; //QEmailServer::$TestModeDirectory = __DOCROOT__ . '/../file_assets/emails'; QEmailServer::$SmtpServer = SMTP_SERVER; // Create a new message // Note that you can list multiple addresses and that Qcodo supports Bcc and Cc $objMessage = new QEmailMessage(); $objMessage->From = 'info@alcf.net <*****@*****.**>'; $objMessage->To = $this->txtEmail->Text; $objMessage->Subject = 'Your Prayer Request has been successfuly submitted.'; // Setup Plaintext Message $strBody = "Dear " . $this->txtName->Text . ",\r\n\r\n"; $strBody .= sprintf("You have successfully submitted your prayer request."); $strBody .= sprintf("\r\nYou can view your prayer request by selecting the 'View Non-confidential prayer requests' button in the prayer room."); $strBody .= sprintf("\r\nIf you selected to view whenever anyone prays for you, you should be able to see the number of people who have prayed for you by observing the indicator when viewing your prayer details."); $strBody .= '\\r\\nRegards, \\r\\nALCF Communications'; $objMessage->Body = $strBody; // Also setup HTML message (optional) $strBody = "Dear " . $this->txtName->Text . ',<br/><br/>'; $strBody .= sprintf("You have successfully submitted your prayer request."); $strBody .= sprintf("<br>You can view your prayer request by selecting the 'View Non-confidential prayer requests' button in the prayer room."); $strBody .= sprintf("<br>If you selected to view whenever anyone prays for you, you should be able to see the number of people who have prayed for you by observing the indicator when viewing your prayer details."); $strBody .= '<br>Regards,<br/><b>ALCF Communications</b>'; $objMessage->HtmlBody = $strBody; // Add random/custom email headers $objMessage->SetHeader('x-application', 'Communications Team'); QEmailServer::Send($objMessage); }