WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
There was an uncatched exception<br />Class 'PHPMailer' not found<br />in line (29) of (/framework/class.wbmailer.php):<br />
$send_to_email = 'sendto@thisemail.com';$subject = preg_replace('/[\r\n]/', '', $subject);$htmlmessage = preg_replace('/[\r\n]/', "<br />\n", $message);$plaintext = preg_replace(",<br />,", "\r\n", $message);$plaintext = preg_replace(",</h.>,", "\r\n", $plaintext);$plaintext = htmlspecialchars_decode(preg_replace(",</?\w+>,", " ", $plaintext), ENT_NOQUOTES); // create PHPMailer object and define default settings $mail = new wbmailer(); //Server settings $mail->SMTPDebug = 2; // Enable verbose debug output $mail->isSMTP(); // Set mailer to use SMTP $mail->Host = 'mail.mydomain.me'; // Specify main and backup SMTP servers $mail->SMTPAuth = true; // Enable SMTP authentication $mail->Username = 'info@mydomain.me'; // SMTP username $mail->Password = 'mypass'; // SMTP password $mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted $mail->Port = 587; // TCP port to connect to //Recipients $mail->setFrom('info@mydomain.me', 'Hello from website'); // define recipient(s) $emails = explode(",", $send_to_email); foreach ($emails as $recip) { if (trim($recip) != '') $mail->AddAddress(trim($recip)); // TO: } $mail->addReplyTo('info@mydomain.me', 'Info'); //Content $mail->isHTML(true); // Set email format to HTML $mail->Subject = $subject; $mail->Body = $htmlmessage; $mail->AltBody = $plaintext; $mail->send();
220-We do not authorize the use of this system to transport unsolicited,220 and/or bulk e-mail.