Html 如何在Opencart V 2.x中从右到左对齐订单确认电子邮件
我需要知道如何设置下订单后发送的订单确认电子邮件,并确认订单和注册确认电子邮件,以右向左对齐,因为我使用阿拉伯语。 我正在使用Opencart 2.2.0版 这是我的代码:Html 如何在Opencart V 2.x中从右到左对齐订单确认电子邮件,html,opencart2.x,Html,Opencart2.x,我需要知道如何设置下订单后发送的订单确认电子邮件,并确认订单和注册确认电子邮件,以右向左对齐,因为我使用阿拉伯语。 我正在使用Opencart 2.2.0版 这是我的代码: $mail = new Mail(); $mail->protocol = $this->config->get('config_mail_protocol'); $mail->parameter = $this->config->get('config_mail_parameter');
$mail = new Mail();
$mail->protocol = $this->config->get('config_mail_protocol');
$mail->parameter = $this->config->get('config_mail_parameter');
$mail->smtp_hostname = $this->config->get('config_mail_smtp_hostname');
$mail->smtp_username = $this->config->get('config_mail_smtp_username');
$mail->smtp_password = html_entity_decode($this->config->get('config_mail_smtp_password'), ENT_QUOTES, 'UTF-8');
$mail->smtp_port = $this->config->get('config_mail_smtp_port');
$mail->smtp_timeout = $this->config->get('config_mail_smtp_timeout');
$mail->setTo($order_info['email']);
$mail->setFrom($this->config->get('config_email'));
$mail->setSender(html_entity_decode($order_info['store_name'], ENT_QUOTES, 'UTF-8'));
$mail->setSubject(html_entity_decode($subject, ENT_QUOTES, 'UTF-8'));
$mail->setHtml($this->load->view('mail/order', $data));
$mail->setText($text);
$mail->send();
// Admin Alert Mail
if ($this->config->get('config_order_mail')) {
$subject = sprintf($language->get('text_new_subject'), html_entity_decode($this->config->get('config_name'), ENT_QUOTES, 'UTF-8'), $order_id);
// HTML Mail
$data['text_greeting'] = $language->get('text_new_received');
if ($comment) {
if ($order_info['comment']) {
$data['comment'] = nl2br($comment) . '<br/><br/>' . $order_info['comment'];
} else {
$data['comment'] = nl2br($comment);
}
} else {
if ($order_info['comment']) {
$data['comment'] = $order_info['comment'];
} else {
$data['comment'] = '';
}
}
$data['text_download'] = '';
$data['text_footer'] = '';
$data['text_link'] = '';
$data['link'] = '';
$data['download'] = '';
$mail=newmail();
$mail->protocol=$this->config->get('config\u mail\u protocol');
$mail->parameter=$this->config->get('config\u mail\u parameter');
$mail->smtp\u hostname=$this->config->get('config\u mail\u smtp\u hostname');
$mail->smtp\u username=$this->config->get('config\u mail\u smtp\u username');
$mail->smtp\u password=html\u entity\u decode($this->config->get('config\u mail\u smtp\u password'),ENT\u引号,'UTF-8');
$mail->smtp\u port=$this->config->get('config\u mail\u smtp\u port');
$mail->smtp\u timeout=$this->config->get('config\u mail\u smtp\u timeout');
$mail->setTo($order_info['email']);
$mail->setFrom($this->config->get('config_email');
$mail->setSender(html_实体_解码($order_info['store_name'],ENT_引号,'UTF-8');
$mail->setSubject(html_entity_decode($subject,ENT_引号,'UTF-8'));
$mail->setHtml($this->load->view('mail/order',$data));
$mail->setText($text);
$mail->send();
//管理员提醒邮件
如果($this->config->get('config\u order\u mail')){
$subject=sprintf($language->get('text\u new\u subject')、html\u entity\u decode($this->config->get('config\u name')、ENT\u引号、'UTF-8')、$order\u id);
//HTML邮件
$data['text\u greeting']=$language->get('text\u new\u received');
如果($comment){
如果($order_info['comment'])){
$data['comment']=nl2br($comment)。“
”。$order_info['comment'];
}否则{
$data['comment']=nl2br($comment);
}
}否则{
如果($order_info['comment'])){
$data['comment']=$order_info['comment'];
}否则{
$data['comment']='';
}
}
$data['text_download']='';
$data['text_footer']='';
$data['text_link']='';
$data['link']='';
$data['download']='';
谢谢