Setup email system with phpmailer

Post Reply
Message
Author
User avatar
rebirther
Admin
Posts: 2872
Joined: 19.12.2005, 00:59
Location: Germany

Setup email system with phpmailer

#1 Post by rebirther » 11.05.2014, 09:00

1. download phpmailer, copy content to /html/inc, rename the folder to phpmailer

2. project.inc -->add at the end

function make_php_mailer() {
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->SMTPAuth = true;
$mail->SMTPSecure = "tls";
$mail->Host = "smtp.gmail.de"; //change with your settings
$mail->Port = 587;
$mail->Username = "your EMAIL";
$mail->Password = "your PW";
$mail->SetFrom('your EMAIL', 'your name/projectname');
$mail->AddReplyTo('your EMAIL', 'your name/projectname');
return $mail;
}

3. project.inc >>add

$USE_PHPMAILER = true;
$PHPMAILER_HOST = "smtp.gmail.com"; //change with your settings
$PHPMAILER_MAILER = "smtp";
Last edited by rebirther on 30.11.2014, 09:36, edited 2 times in total.

User avatar
rebirther
Admin
Posts: 2872
Joined: 19.12.2005, 00:59
Location: Germany

#2 Post by rebirther » 29.11.2014, 18:00

updated

Post Reply