D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
ksclnmuac
/
www
/
cas
/
application
/
libraries
/
services
/
Filename :
MailServices.php
back
Copy
<?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; } }