MyBB Community Forums

Full Version: User activation emails are not being sent
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have read through so many previous threads for this and I have yet to find something that fixes the issue. So allow me to first tell you everything I have tried. Before I list off everything, yes I did check spam filters and spam folders - Everyone except one person has no received an activation email (8 people over the course of the last 4 days have yet to receive one)

  1. I contacted my webhost to see if any restrictions were in place for PHP's mail() and none are.
  2. I tried the mail test script provided on docs.mybb.com. The test was successful and i received the email.
  3. I tried sending myself a mass email and I never received it.
  4. I tried to create multiple test users on a variety of browsers, none of them ever received emails.
  5. I have checked the system mail logs and user mail logs and there were no errors
  6. Lastly, I replaced the class_mailhander.php and the mailhandler/php.php file with fresh copies and still not working.

I am at a point of complete loss. Any help with this would be much appreciated. I recently transitioned over from SMF and never had an issue with email so I doubt it is the server host.

EDIT: I guess the web address would be a good thing to have - http://www.mythicservers.com/forum/ . It is running MyBB 1.8.3 and as mentioned, it was a new install with a merge from SMF
seems like you almost did everything....  Toungue 
so, just a couple of points...

1. does your host has any condition that either the from or to address has to be from the same domain
2. in mailhandler/php.php file search for

$sent = @mail($this->to, $this->subject, $this->message, trim($this->headers));

and try changing it to

$sent = @mail($this->to, $this->subject, $this->message);
NOTE: there will be two occurrence of this code and remove the headers from both occurrence...
(12-08-2014, 12:20 PM)mmadhankumar Wrote: [ -> ]seems like you almost did everything....  Toungue 
so, just a couple of points...

1. does your host has any condition that either the from or to address has to be from the same domain
2. in mailhandler/php.php file search for




$sent = @mail($this->to, $this->subject, $this->message, trim($this->headers));

and try changing it to




$sent = @mail($this->to, $this->subject, $this->message);
NOTE: there will be two occurrence of this code and remove the headers from both occurrence...


So

1. I did and there is no conditions what so ever.
2. In the mailhandler/php.php file I replaced
// If safe mode is on, don't send the additional parameters as we're not allowed to
		if($mybb->safemode)
		{
			$sent = @mail($this->to, $this->subject, $this->message, trim($this->headers));
		}
		else
		{
			$sent = @mail($this->to, $this->subject, $this->message, trim($this->headers), $this->additional_parameters);
		}
with
// If safe mode is on, don't send the additional parameters as we're not allowed to
		if($mybb->safemode)
		{
			$sent = @mail($this->to, $this->subject, $this->message);
		}
		else
		{
			$sent = @mail($this->to, $this->subject, $this->message, $this->additional_parameters);
		}

and when I created a test user account, I got this back from the website.
/forum/inc/languages/english/user_name_approval.lang.php does not exist

Noticed there was a file names this in /forum/inc/languages/english/admin/, should I move this file? or is something else going on

EDIT: I went ahead and with your changes, plus moving that file, my test accounts are getting the emails.