From 632e25abe3769d7e7a38d65fa46ec5122d156d77 Mon Sep 17 00:00:00 2001 From: jekkos-t520 Date: Sat, 17 Oct 2020 01:17:18 +0200 Subject: [PATCH] Email config (#2968) --- application/config/email.php | 10 +++++++++ application/libraries/MY_Email.php | 35 ++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 application/config/email.php create mode 100755 application/libraries/MY_Email.php diff --git a/application/config/email.php b/application/config/email.php new file mode 100644 index 000000000..f242e888f --- /dev/null +++ b/application/config/email.php @@ -0,0 +1,10 @@ +reply_to($reply_mail, $reply_name); + $this->from($this->default_sender_address, $this->default_sender_name, $this->default_bounce_address); + $this->set_mailtype('html'); + $this->subject($subject); + $this->message($body); + if ($to == NULL) { + $to = $this->default_email_address; + $this->cc($this->default_cc_address); + } + if ($attachment) { + $this->attach($attachment); + } + $this->to($to); + return $this->send(); + } + +} + +?>