Skip to content

Commit

Permalink
Resolved #3075 where some email notifications did not respect HTML fo…
Browse files Browse the repository at this point in the history
…rmatting preference
  • Loading branch information
intoeetive committed Mar 20, 2023
1 parent ebe0516 commit 3937df0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ system/user/config/database.php
system/user/language/*
!system/user/language/index.html

system/user/logs/*
!system/user/logs/index.html

system/user/templates/*
!system/user/templates/index.html
!system/user/templates/.htaccess
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ private function send($template, $to, $replyto)

ee()->email->EE_initialize();
ee()->email->wordwrap = false;
ee()->email->mailtype = ee()->config->item('mail_format');
ee()->email->from(ee()->config->item('webmaster_email'), ee()->config->item('webmaster_name'));
ee()->email->to($address['email']);
ee()->email->reply_to($replyto);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ public function register_member()

ee()->load->library('email');
ee()->email->wordwrap = true;
ee()->email->mailtype = ee()->config->item('mail_format');
ee()->email->from(ee()->config->item('webmaster_email'), ee()->config->item('webmaster_name'));
ee()->email->to($notify_address);
ee()->email->subject($email_tit);
Expand Down Expand Up @@ -579,6 +580,7 @@ public function register_member()

ee()->load->library('email');
ee()->email->wordwrap = true;
ee()->email->mailtype = ee()->config->item('mail_format');
ee()->email->from(ee()->config->item('webmaster_email'), ee()->config->item('webmaster_name'));
ee()->email->to($data['email']);
ee()->email->subject($email_tit);
Expand Down
1 change: 1 addition & 0 deletions system/ee/legacy/controllers/cp/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,7 @@ public function send_reset_token()
// Instantiate the email class
$this->load->library('email');
$this->email->wordwrap = true;
$this->email->mailtype = ee()->config->item('mail_format');
$this->email->from($this->config->item('webmaster_email'), $this->config->item('webmaster_name'));
$this->email->to($address);
$this->email->subject($message_title);
Expand Down

0 comments on commit 3937df0

Please sign in to comment.