/home/desid573/public_html/angel/payment/pdd/app/Controller/Component
NameSizeModeActions
empty00644editdlrm
EwayComponent.php18170644editdlrm
MailcontentComponent.php218750644editdlrm
MailerComponent.php27900644editdlrm
TwilioComponent.php11080644editdlrm
Edit: /home/desid573/public_html/angel/payment/pdd/app/Controller/Component/MailcontentComponent.php (21875B)
Order = ClassRegistry::init('Order'); $data = $this->Order->find('first', array('conditions' => array('Order.id' => $order_id))); $message = ""; $message.="

Dear " . $data['Order']['name'] . ",

"; $message.="
"; $message.="

Following are the details received for the order uploaded by you.

"; $message.="

Order No: " . $data['Order']['orderid'] . ",

"; $message.="

Subject: " . $data['Order']['subject'] . ",

"; $message.="

Details: " . $data['Order']['desc'] . ",

"; $message.="

Deadline: " . $data['Order']['due_date'] . ",

"; $message.="

No of pages: " . $data['Order']['page'] . "

"; $message.="
"; $message.="

We will contact you soon.

"; $to = $data['Order']['email']; $subject = "Details for your Maths assignment - " . Configure::read('SITE_TITLE'); $from = Configure::read('FROM_EMAIL_ADDRESS'); $emailtemplate = "newtemplete"; $this->Mailer->sendMail($to, $subject, $from, $message, $attachments = null, $emailCofig = 'default', $emailtemplate); } public function orderquote($order_id) { $this->Order = ClassRegistry::init('Order'); $data = $this->Order->find('first', array('conditions' => array('Order.id' => $order_id))); $link = Router::url('/', true) . "payments?o_id=" . $data['Order']['orderid']; $message = ""; $message.="

Dear " . $data['Order']['name'] . ",

"; $message.="
"; $message.="

We have gone through your assignment details and confirm the order will be done as per the requirements mentioned by you.

"; $message.="

To make the payment, kindly log into your account & click the payment button on the order page OR pay directly using the below mentioned link.

"; $message.="

Order No: " . $data['Order']['orderid'] . ",

"; $message.="

Subject: " . $data['Order']['subject'] . ",

"; $message.="

Total Charges: USD " . $data['Order']['order_quote'] . ",

"; $message.="

Pay to start: USD " . $data['Order']['order_quote'] . ",

"; $message.="

Payment Link: " . $link . "

"; $message.="

Message : Our experts are ready to work on your assignment right away!

"; $message.="
"; $message.="

Regards,

"; $message.="

" . Configure::read('SITE_TEAM') . "

"; $to = $data['Order']['email']; $subject = "Best Price - USD " . $data['Order']['order_quote'] . " for your assignment - " . Configure::read('SITE_TITLE'); $from = Configure::read('FROM_EMAIL_ADDRESS'); $emailtemplate = "newtemplete"; $this->Mailer->sendMail($to, $subject, $from, $message, $attachments = null, $emailCofig = 'default', $emailtemplate); } public function recievepayment($order_id) { $this->Order = ClassRegistry::init('Order'); $data = $this->Order->find('first', array('conditions' => array('Order.id' => $order_id))); $message = ""; $message.="

Dear " . $data['Order']['name'] . ",

"; $message.="
"; $message.="

We earnestly acknowledge your payment of $ " . $data['Order']['order_quote'] . ", which we received from you through PayPal..

"; $message.="

We are looking forward and get back to you soon.

"; $message.="
"; $message.="

Regards,

"; $message.="

" . Configure::read('SITE_TEAM') . "

"; $to = $data['Order']['email']; $subject = "Payment Success - USD " . $data['Order']['order_quote'] . " for your assignment - " . Configure::read('SITE_TITLE'); $from = Configure::read('FROM_EMAIL_ADDRESS'); $emailtemplate = "newtemplete"; $this->Mailer->sendMail($to, $subject, $from, $message, $attachments = null, $emailCofig = 'default', $emailtemplate); } public function contactus($data) { $message = ""; $message.="

Hello " . $data['Contact']['name'] . ",

"; $message.="
"; $message.="

Phone: " . $data['Contact']['phone'] . "

"; $message.="

Message: " . $data['Contact']['note'] . "

"; $message.="
"; $message.="

We will contact you soon.

"; $to = Configure::read('FROM_EMAIL_ADDRESS'); $subject = "Contact Form for Maths assignment - " . Configure::read('SITE_TITLE'); $from = $data['Contact']['email']; $emailtemplate = "newtemplete"; $this->Mailer->sendMail($to, $subject, $from, $message, $attachments = null, $emailCofig = 'default', $emailtemplate); } public function admin_add_institute_mail($data) { //Mail To institute : Start $mailer_to = $data['User']['email']; $mailer_from = Configure::read('FROM_EMAIL_ADDRESS'); $SiteTeam = Configure::read('SITE_TEAM'); $SiteTitle = Configure::read('SITE_TITLE'); $mailer_subject = "$SiteTitle : Registration"; $body = "

Hello " . $data['Institute']['institute_name'] . ",

"; $body .= "

Welcome to $SiteTitle.

"; $body .= "

You have successfully register in our website.

"; $body .= "

Your account has been in under process. We will contact you in 24 hours.

"; $body .= "

Thank you
" . $SiteTeam . "

"; $this->Mailer->sendMail($mailer_to, $mailer_subject, $mailer_from, $body); //Mail To institute : End } public function admin_add_personal_mail($data) { //Mail To institute : Start $mailer_to = $data['User']['email']; $mailer_from = Configure::read('FROM_EMAIL_ADDRESS'); $SiteTeam = Configure::read('SITE_TEAM'); $SiteTitle = Configure::read('SITE_TITLE'); $mailer_subject = "$SiteTitle : Registration"; $body = "

Hello " . $data['Personal']['firstname'] . " " . $data['Personal']['lastname'] . ",

"; $body .= "

Welcome to $SiteTitle.

"; $body .= "

You have successfully register in our website.

"; $body .= "

Your account has been in under process. We will contact you in 24 hours.

"; $body .= "

Thank you
" . $SiteTeam . "

"; $this->Mailer->sendMail($mailer_to, $mailer_subject, $mailer_from, $body); //Mail To Admin : End } public function signup_institute_mail($data) { if ($data['User']['account_type'] == 'p') { //Mail To Admin : Start $mailer_to = Configure::read('ADMIN_EMAIL_ADDRESS'); $mailer_from = Configure::read('FROM_EMAIL_ADDRESS'); $SiteTeam = Configure::read('SITE_TEAM'); $SiteTitle = Configure::read('SITE_TITLE'); $mailer_subject = "$SiteTitle : New User registration"; $body = "

Hello Admin,

"; $body .= "

New Personal user registered on your website.

"; $body .= "

Name : " . $data['Institute']['firstname'] . " " . $data['Institute']['lastname'] . "

"; $body .= "

Email : " . $data['User']['email'] . "

"; $body .= "

Thank you
" . $SiteTeam . "

"; $this->Mailer->sendMail($mailer_to, $mailer_subject, $mailer_from, $body); //Mail To Admin : End //Mail To institute : Start $mailer_to = $data['User']['email']; $mailer_from = Configure::read('FROM_EMAIL_ADDRESS'); $SiteTeam = Configure::read('SITE_TEAM'); $SiteTitle = Configure::read('SITE_TITLE'); $mailer_subject = "$SiteTitle : Registration"; $body = "

Hello " . $data['Institute']['firstname'] . " " . $data['Institute']['lastname'] . ",

"; $body .= "

Welcome to $SiteTitle.

"; $body .= "

You have successfully register in our website.

"; $body .= "

Your account has been in under process. We will contact you in 24 hours.

"; $body .= "

Thank you
" . $SiteTeam . "

"; $this->Mailer->sendMail($mailer_to, $mailer_subject, $mailer_from, $body); //Mail To Admin : End } else { //Mail To Admin : Start $mailer_to = Configure::read('ADMIN_EMAIL_ADDRESS'); $mailer_from = Configure::read('FROM_EMAIL_ADDRESS'); $SiteTeam = Configure::read('SITE_TEAM'); $SiteTitle = Configure::read('SITE_TITLE'); $mailer_subject = "$SiteTitle : New institute registration"; $body = "

Hello Admin,

"; $body .= "

New institute registered on your website.

"; $body .= "

Name : " . $data['Institute']['institute_name'] . "

"; $body .= "

Email : " . $data['User']['email'] . "

"; $body .= "

Thank you
" . $SiteTeam . "

"; $this->Mailer->sendMail($mailer_to, $mailer_subject, $mailer_from, $body); //Mail To Admin : End //Mail To institute : Start $mailer_to = $data['User']['email']; $mailer_from = Configure::read('FROM_EMAIL_ADDRESS'); $SiteTeam = Configure::read('SITE_TEAM'); $SiteTitle = Configure::read('SITE_TITLE'); $mailer_subject = "$SiteTitle : Registration"; $body = "

Hello " . $data['Institute']['institute_name'] . ",

"; $body .= "

Welcome to $SiteTitle.

"; $body .= "

You have successfully register in our website.

"; $body .= "

Your account has been in under process. We will contact you in 24 hours.

"; $body .= "

Thank you
" . $SiteTeam . "

"; $this->Mailer->sendMail($mailer_to, $mailer_subject, $mailer_from, $body); //Mail To institute : End } } public function institute_emailverify($institute_id) { $this->Institute = ClassRegistry::init('Institute'); $data = $this->Institute->read(null, $institute_id); //Mail To institute : Start $mailer_to = $data['User']['email']; $mailer_from = Configure::read('FROM_EMAIL_ADDRESS'); $SiteTeam = Configure::read('SITE_TEAM'); $SiteTitle = Configure::read('SITE_TITLE'); $mailer_subject = "$SiteTitle : Account verification"; $body = "

Hello " . $data['Institute']['institute_name'] . ",

"; $body .= "

Your account request has been approved.

"; $body .= "

You will shortly receive an activation email to your email address. After that you can access your account.

"; $body .= "

Thank you
" . $SiteTeam . "

"; $this->Mailer->sendMail($mailer_to, $mailer_subject, $mailer_from, $body); //Mail To institute : End } public function institute_activedeactive($institute_id) { $this->Institute = ClassRegistry::init('Institute'); $this->Institute->recursive = 0; $data = $this->Institute->read(null, $institute_id); $mailer_to = $data['User']['email']; $admin_email_address = Configure::read('ADMIN_EMAIL_ADDRESS'); $mailer_from = Configure::read('FROM_EMAIL_ADDRESS'); $SiteTeam = Configure::read('SITE_TEAM'); $SiteTitle = Configure::read('SITE_TITLE'); $SubDomainUrl = Configure::read('SUB_DOMAIN_URL'); if ($data['Institute']['active'] == 1) { $mailer_subject = "$SiteTitle : Account activation"; $subdomainurl = "http://" . $data['Institute']['domain_name'] . $SubDomainUrl; $body = "

Hello " . $data['Institute']['institute_name'] . ",

"; $body .= "

Your account has been activated now.

"; $body .= "

You can access your account at $subdomainurl.

"; $body .= "

If you have any issue then please contact us $admin_email_address.

"; $body .= "

Thank you
" . $SiteTeam . "

"; } else { $mailer_subject = "$SiteTitle : Account Deactivation"; $body = "

Hello " . $data['Institute']['institute_name'] . ",

"; $body .= "

Your account has been deactivate.

"; $body .= "

If you have any issue then please contact us $admin_email_address.

"; $body .= "

Thank you
" . $SiteTeam . "

"; } //Mail To institute : Start $this->Mailer->sendMail($mailer_to, $mailer_subject, $mailer_from, $body); //Mail To institute : End } public function personal_emailverify($personal_id) { $this->Personal = ClassRegistry::init('Personal'); $this->Personal->recursive = 2; $data = $this->Personal->read(null, $personal_id); //Mail To institute : Start $mailer_to = $data['User']['email']; $mailer_from = Configure::read('FROM_EMAIL_ADDRESS'); $SiteTeam = Configure::read('SITE_TEAM'); $SiteTitle = Configure::read('SITE_TITLE'); $mailer_subject = "$SiteTitle : Account verification"; $body = "

Hello " . $data['Personal']['firstname'] . " " . $data['Personal']['lastname'] . ",

"; $body .= "

Your account request has been approved.

"; $body .= "

You will shortly receive an activation email to your email address. After that you can access your account.

"; $body .= "

Thank you
" . $SiteTeam . "

"; $this->Mailer->sendMail($mailer_to, $mailer_subject, $mailer_from, $body); //Mail To institute : End } public function personal_activedeactive($personal_id) { $this->Personal = ClassRegistry::init('Personal'); $this->Personal->recursive = 0; $data = $this->Personal->read(null, $personal_id); $mailer_to = $data['User']['email']; $admin_email_address = Configure::read('ADMIN_EMAIL_ADDRESS'); $mailer_from = Configure::read('FROM_EMAIL_ADDRESS'); $SiteTeam = Configure::read('SITE_TEAM'); $SiteTitle = Configure::read('SITE_TITLE'); $SubDomainUrl = Configure::read('SITE_URL'); if ($data['Personal']['active'] == 1) { $mailer_subject = "$SiteTitle : Account activation"; $body = "

Hello " . $data['Personal']['firstname'] . " " . $data['Personal']['lastname'] . ",

"; $body .= "

Your account has been activated now.

"; $body .= "

You can access your account at $SubDomainUrl.

"; $body .= "

If you have any issue then please contact us $admin_email_address.

"; $body .= "

Thank you
" . $SiteTeam . "

"; } else { $mailer_subject = "$SiteTitle : Account Deactivation"; $body = "

Hello " . $data['Personal']['firstname'] . " " . $data['Personal']['lastname'] . ",

"; $body .= "

Your account has been deactivate.

"; $body .= "

If you have any issue then please contact us $admin_email_address.

"; $body .= "

Thank you
" . $SiteTeam . "

"; } //Mail To institute : Start $this->Mailer->sendMail($mailer_to, $mailer_subject, $mailer_from, $body); //Mail To institute : End } public function add_customer_mail($data) { $institute_id = $data['Customer']['institute_id']; $this->Institute = ClassRegistry::init('Institute'); $this->Institute->recursive = -1; $institute_data = $this->Institute->read(null, $institute_id); $mailer_to = $data['User']['email']; $mailer_from = Configure::read('FROM_EMAIL_ADDRESS'); $SiteTeam = Configure::read('SITE_TEAM'); $SiteTitle = Configure::read('SITE_TITLE'); $SubDomainUrl = Configure::read('SUB_DOMAIN_URL'); $mailer_subject = "$SiteTitle : Customer registration"; $subdomainurl = "http://" . $institute_data['Institute']['domain_name'] . $SubDomainUrl; $body = "

Hello " . $data['Customer']['firstname'] . " " . $data['Customer']['lastname'] . ",

"; $body .= "

Welcome and thank you for registering at $subdomainurl.

"; $body .= "

Your account has now been created and you can log in by using below email address and password

"; $body.="

Email : " . $data['User']['email'] . "

"; $body.="

Password : " . $data['User']['password'] . "

"; $body .= "

By visiting our website or at the following URL:

"; $body .= "

$subdomainurl

"; $body .= "

If you have ANY question about the operation, please contact to store owner.

"; $body .= "

Thank you
" . $SiteTeam . "

"; //Mail To institute : Start $this->Mailer->sendMail($mailer_to, $mailer_subject, $mailer_from, $body); //Mail To institute : End } public function add_personaluser_mail($data) { $mailer_to = $data['User']['email']; $mailer_from = Configure::read('FROM_EMAIL_ADDRESS'); $SiteTeam = Configure::read('SITE_TEAM'); $SiteTitle = Configure::read('SITE_TITLE'); $SubDomainUrl = Configure::read('SITE_URL'); $mailer_subject = "$SiteTitle : User registration"; $body = "

Hello " . $data['Personaluser']['firstname'] . " " . $data['Personaluser']['lastname'] . ",

"; $body .= "

Welcome and thank you for registering at $SubDomainUrl.

"; $body .= "

Your account has now been created and you can log in by using below email address and password

"; $body.="

Email : " . $data['User']['email'] . "

"; $body.="

Password : " . $data['User']['password'] . "

"; $body .= "

By visiting our website or at the following URL:

"; $body .= "

$SubDomainUrl

"; $body .= "

If you have ANY question about the operation, please contact to store owner.

"; $body .= "

Thank you
" . $SiteTeam . "

"; //Mail To institute : Start $this->Mailer->sendMail($mailer_to, $mailer_subject, $mailer_from, $body); //Mail To institute : End } public function reedem_mail($id, $cid, $type = 'customer') { if ($type == 'customer') { $this->Customer = ClassRegistry::init('Customer'); $customer = $this->Customer->read(null, $id); } else { $this->Personaluser = ClassRegistry::init('Personaluser'); $customer = $this->Personaluser->read(null, $id); } $this->Category = ClassRegistry::init('Category'); $category = $this->Category->read(null, $cid); $mailer_to = $customer['User']['email']; $mailer_from = Configure::read('FROM_EMAIL_ADDRESS'); $SiteTeam = Configure::read('SITE_TEAM'); $SiteTitle = Configure::read('SITE_TITLE'); $mailer_subject = "$SiteTitle : Redeemed"; $body = "

Dear Customer,

"; $body .= "

Your account is debited with " . $category['Category']['point_required'] . " points on " . date('d M Y') . ",

"; $body .= "

Redeemed Category : " . $category['Category']['category_name'] . "

"; $body .= "

To know your available balance please login with your credentials.

"; $body .= "

If you have ANY question about the operation, please contact to store owner.

"; $body .= "

Thank you
" . $SiteTeam . "

"; //Mail To institute : Start $this->Mailer->sendMail($mailer_to, $mailer_subject, $mailer_from, $body); //Mail To institute : End } public function rewards_mail($id, $cid, $type = 'customer') { if ($type == 'customer') { $this->Customer = ClassRegistry::init('Customer'); $customer = $this->Customer->read(null, $id); } else { $this->Personaluser = ClassRegistry::init('Personaluser'); $customer = $this->Personaluser->read(null, $id); } $this->Pointcategory = ClassRegistry::init('Pointcategory'); $category = $this->Pointcategory->read(null, $cid); $mailer_to = $customer['User']['email']; $mailer_from = Configure::read('FROM_EMAIL_ADDRESS'); $SiteTeam = Configure::read('SITE_TEAM'); $SiteTitle = Configure::read('SITE_TITLE'); $mailer_subject = "$SiteTitle : Rewarded"; $body = "

Dear Customer,

"; $body .= "

Your account is credited with " . $category['Pointcategory']['points'] . " points on " . date('d M Y') . ",

"; $body .= "

Rewarded Category : " . $category['Pointcategory']['name'] . "

"; $body .= "

To know your available balance please login with your credentials.

"; $body .= "

If you have ANY question about the operation, please contact to store owner.

"; $body .= "

Thank you
" . $SiteTeam . "

"; //Mail To institute : Start $this->Mailer->sendMail($mailer_to, $mailer_subject, $mailer_from, $body); //Mail To institute : End } }