MyBB Community Forums

Full Version: No mails sent through MyBB to users.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I see people have had similar issues and been pushed to bugs, i don't know if this has been fixed or not but i cannot by the life of me get mails sent to users, i have spoken to my hosting-support they said its on MyBB's side, i even got a script from them to test and that is giving a TLS error i have no idea whats going on and who's fault it is, i just want people to activate their accounts via mail.
does your host provide php mail ? see faq: mail
"Mail was sent by PHP" it says

I was given a php-script to run from my host support

<?php
require_once "Mail.php";

$to = "[email protected]";
$subject = "Test message";
$body = "This is a message".var_export($_SERVER, true);

$host = "mail.talkactive.net";
$port = 587;
$username = '[email protected]';
$password = 'mailaccount-password';

$headers = array ('From' => $username, 'To' => $to, 'Subject' => $subject, 'Date' => date('r', time()));
$smtp = Mail::factory('smtp',
array (
'host' => $host,
'port'=>$port,
'auth' => true,
'username' => $username,
'password' => $password,
'localhost' => 'mail.web10.net'));

$mail = $smtp->send($to, $headers, $body);

if (PEAR::isError($mail)) {
echo("" . $mail->getMessage() . "".PHP_EOL);
} else {
echo("Message successfully sent!".PHP_EOL);
}
?>

Which in return gives me; "authentication failure [SMTP: STARTTLS failed (code: 220, response: 2.0.0 Ready to start TLS)]"

Feels like all of this has occured cause TLS is broken somewhere... :/
have you actually received the php mail (from faq: mail) ?
No i did not recieve anything

But is SMTP Mail and PHP Mail the same thing ?

This has been fixed, new thread about another problem Toungue
https://community.mybb.com/thread-205179.html
Seems like it was a config error so rejecting