Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once(APPPATH.'libraries/PHPMailerAutoload.php');
- class Mailer{
- function send_mailnya($from_email, $from_name, $to_email, $to_name, $subject_email, $message_email){
- $mail = new PHPMailer;
- $mail->isSMTP();
- $mail->Host = $this->config->item('cmail_host');
- $mail->SMTPAuth = $this->config->item('cmail_auth');
- $mail->Username = $this->config->item('cmail_username');
- $mail->Password = $this->config->item('cmail_password');
- $mail->Port = $this->config->item('cmail_port');
- $mail->setFrom($from_email, $from_name);
- $mail->addAddress($to_email, $to_name);
- $mail->addReplyTo($from_email, $from_name);
- $mail->isHTML(true);
- $mail->Subject = $subject_email;
- $mail->Body = $message_email;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement