mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2025-01-01 03:22:26 +03:00
Add from email/name and reply-to settings in the email.php configuration file (#1465)
This commit is contained in:
parent
1152a76df3
commit
1d4ef06fdb
2 changed files with 30 additions and 3 deletions
|
@ -14,5 +14,8 @@ $config['mailtype'] = 'html'; // or 'text'
|
|||
// $config['smtp_pass'] = '';
|
||||
// $config['smtp_crypto'] = 'ssl'; // or 'tls'
|
||||
// $config['smtp_port'] = 25;
|
||||
// $config['from_name'] = '';
|
||||
// $config['from_address'] = '';
|
||||
// $config['reply_to'] = '';
|
||||
$config['crlf'] = "\r\n";
|
||||
$config['newline'] = "\r\n";
|
||||
|
|
|
@ -106,7 +106,15 @@ class Email_messages
|
|||
true,
|
||||
);
|
||||
|
||||
$this->CI->email->from($settings['company_email'], $settings['company_email']);
|
||||
$from_name = config('from_name') ?: $settings['company_name'];
|
||||
$from_address = config('from_address') ?: $settings['company_email'];
|
||||
$reply_to = config('reply_to') ?: $settings['company_email'];
|
||||
|
||||
$this->CI->email->from($from_address, $from_name);
|
||||
|
||||
if ($reply_to) {
|
||||
$this->CI->email->reply_to($reply_to);
|
||||
}
|
||||
|
||||
$this->CI->email->to($recipient_email);
|
||||
|
||||
|
@ -175,7 +183,15 @@ class Email_messages
|
|||
true,
|
||||
);
|
||||
|
||||
$this->CI->email->from($settings['company_email'], $settings['company_email']);
|
||||
$from_name = config('from_name') ?: $settings['company_name'];
|
||||
$from_address = config('from_address') ?: $settings['company_email'];
|
||||
$reply_to = config('reply_to') ?: $settings['company_email'];
|
||||
|
||||
$this->CI->email->from($from_address, $from_name);
|
||||
|
||||
if ($reply_to) {
|
||||
$this->CI->email->reply_to($reply_to);
|
||||
}
|
||||
|
||||
$this->CI->email->to($recipient_email);
|
||||
|
||||
|
@ -207,7 +223,15 @@ class Email_messages
|
|||
true,
|
||||
);
|
||||
|
||||
$this->CI->email->from($settings['company_email'], $settings['company_email']);
|
||||
$from_name = config('from_name') ?: $settings['company_name'];
|
||||
$from_address = config('from_address') ?: $settings['company_email'];
|
||||
$reply_to = config('reply_to') ?: $settings['company_email'];
|
||||
|
||||
$this->CI->email->from($from_address, $from_name);
|
||||
|
||||
if ($reply_to) {
|
||||
$this->CI->email->reply_to($reply_to);
|
||||
}
|
||||
|
||||
$this->CI->email->to($recipient_email);
|
||||
|
||||
|
|
Loading…
Reference in a new issue