Ipaylinks添加客人付款后, 系统自动发送付款成功的邮件通知给客人。

feature/trippest
lyt 8 years ago
parent 167e006b99
commit 653ff6de87

@ -448,9 +448,9 @@ class IPayLinksService extends CI_Controller
}
//添加邮件发送记录
//给外联发送通知邮件
$fromName = 'iPayLinks';
$fromEmail = '';
// 1.给外联发送通知邮件
$toName = !empty($opi_firstname) ? $opi_firstname : '';
$toEmail = !empty($opi_email) ? $opi_email : '';
$subject = $orderid_info->orderid . '_' . $orderid_info->ordertype . ' / ' . $item->IPL_orderAmount . $item->IPL_currencyCode . ' / ' . $fromName;
@ -459,7 +459,17 @@ class IPayLinksService extends CI_Controller
$M_AddTime = $item->IPL_completeTime;
$M_State = 0;
$this->IPayLinks_model->save_automail($fromName, $fromEmail, $toName, $toEmail, $subject, $body, $M_RelatedInfo, $M_State, $M_AddTime, 'iPayLinks note');
//添加邮件发送记录 end
// 2.给客人发邮件,通知账单
$toName2 = !empty($item->IPL_payerName) ? $item->IPL_payerName : '';
$toEmail2 = !empty($item->IPL_payerEmail) ? $item->IPL_payerEmail : '';
// Zac170919039_T订单号 / 996.00USD / iPayLinks
$subject2 = $orderid_info->orderid . '_' . $orderid_info->ordertype . ' / ' . $item->IPL_orderAmount . $item->IPL_currencyCode . ' / ' . $fromName;
$body2 = $this->load->view('receipt_buyer', $item, true);
$M_RelatedInfo2 = $item->IPL_sn;
$M_AddTime2 = $item->IPL_completeTime;
$M_State2 = 0;
$this->IPayLinks_model->save_automail($fromName, $fromEmail, $toName2, $toEmail2, $subject2, $body2, $M_RelatedInfo2, $M_State2, $M_AddTime2, 'iPayLinks note');
// ---- 添加邮件发送记录 end
$this->Note_model->update_send($item->IPL_dealId, 'send');
$int++;
@ -934,4 +944,5 @@ class IPayLinksService extends CI_Controller
{
redirect('https://www.chinahighlights.com');
}
}

@ -0,0 +1,91 @@
<html>
<head><meta http-equiv=Content-Type content="text/html; charset=utf-8"></head>
<body style="font-size: 12px;font-family: arial,helvetica,sans-serif;margin-top:0;margin-bottom:0;">
<div class=ppmail>
<table align=center border=0 cellpadding=0 cellspacing=0 width=100%>
<tbody>
<tr valign=top>
<td width=100%>
<table align=center border=0 cellpadding=0 cellspacing=0 style="color:#333333 !important;font-family: arial,helvetica,sans-serif;font-size:12px;" width=100%>
<tbody>
<tr valign=top>
<td>
<img src=https://www.ipaylinks.com/img/common/logo-en.png border=0 alt="PayPal logo">
</td>
<td valign=middle align=right>
<?php echo $IPL_completeTime;?>
<br>Transaction ID:<a href=#>
<?php echo $IPL_dealId;?>
</a>
</td>
</tr>
</tbody>
</table>
<div style="margin-top: 10px;color:#333 !important;font-family: arial,helvetica,sans-serif;font-size:12px;">
<span style="color:#333333 !important;font-weight:bold;font-family: arial,helvetica,sans-serif;">Hello <?php echo $IPL_payerName; ?>,</span>
<br>
<span style=font-size:14px;color:#C88039;font-weight:bold;text-decoration:none;>You made a payment of <?php echo $IPL_orderAmount;?>
<?php echo $IPL_currencyCode;?>
</span>
<br>
<table cellpadding=5 style="color:#333333 !important;font-family: arial,helvetica,sans-serif;font-size:12px;">
<tbody>
<tr>
<td valign=top>Thanks for using Ipaylinks. Your payment to China Highlights International Travel Service Co., Ltd is sucessully.<br>
It may take a few moments for this transaction to appear in our account.<br>
<span style="color: #4c8f3a;">
</span>
</td>
<td>
</td>
</tr>
</tbody>
</table>
<div style="margin-top:0px;border-bottom:1px solid #aaaaaa;">
</div>
<table border=0 cellpadding=0 cellspacing=0 style="color:#333 !important;font-family: arial,helvetica,sans-serif;font-size:12px; margin-bottom:5px;" width=98% align=left>
<tbody>
<tr>
<td style=padding-top:5px; valign=top width=50% align=left>
<span style=color:#333333;font-weight:bold;>Buyer</span>
<br>
<?php echo $IPL_payerName;?>
<br>
<?php echo $IPL_payerEmail;?>
<br>
</td>
<td style=padding-top:5px; valign=top>
</td>
</tr>
</tbody>
</table>
<table align=center border=0 cellpadding=0 cellspacing=0 style="clear:both;color:#333 !important;font-family: arial,helvetica,sans-serif;font-size:12px;margin-top:5px;" width=100%>
<tbody>
<tr>
<td style="border:1px solid #ccc;border-right:none;border-left:none;padding:5px 10px 5px 10px !important;color: #333333 !important;" width=330 align=left>Description</td>
<td style="border:1px solid #ccc;border-right:none;border-left:none;padding:5px 10px 5px 10px !important;color: #333333 !important;" width=75 align=right>&nbsp;</td>
<td style="border:1px solid #ccc;border-right:none;border-left:none;padding:5px 10px 5px 10px !important;color: #333333 !important;" width=75 align=right>&nbsp;</td>
<td style="border:1px solid #ccc;border-right:none;border-left:none;padding:5px 10px 5px 10px !important;color: #333333 !important;" width=80 align=right>Amount</td>
</tr>
<tr>
<td style=padding:10px; width=330 align=left>
<?php echo $IPL_orderId;?>
<br>
</td>
<td style=padding:10px; width=75 align=right>
</td>
<td style=padding:10px; width=75 align=right>
</td>
<td style=padding:10px; width=80 align=right>
<?php echo $IPL_orderAmount;?>
<?php echo $IPL_currencyCode;?>
</td>
</tr>
</tbody>
</table>
</tr>
</tbody>
</table>
</div>
</body>
</html>
Loading…
Cancel
Save