XF 2.1 New members of my forum aren't getting email confirmations

Ayanle

New member
I have to manually search up their names and put them as "valid" and I don't know they registered unless they tell me and their username.

My hotmail/gmail(tried both) are apparently preventing the emails from being sent as they're in my spam folder with a message saying "mail delivery system failed" or something like that.

What can I do?
 
If set to default, the forum is expecting you've set up some kind of email server on the server the forum is hosted as far as I know. I assume you want to use your domain as the one sending out emails as well.

What kind of server is it? Shared hosting? Vps? Dedicated? Can you create emails on the server? We need a bit more info :)
 
If set to default, the forum is expecting you've set up some kind of email server on the server the forum is hosted as far as I know. I assume you want to use your domain as the one sending out emails as well.

What kind of server is it? Shared hosting? Vps? Dedicated? Can you create emails on the server? We need a bit more info :)
It's shared hosting. I don't know if I can create emails on the server but I prefer not to. What's SMTP?

Personally I want to send out email confirmation using a hotmail I created with the same name as my domain.
 
Create php file on your server and save with the following code. Change $from and $to variable accordingly. If you receive success message then your server mail configuration is working you need to check XenForo side configuratoin.

<?php

ini_set( 'display_errors', 1 );
error_reporting( E_ALL );
$from = "emailtest@YOURDOMAIN";
$to = "YOUREMAILADDRESS";
$subject = "PHP Mail Test script";
$message = "This is a test to check the PHP Mail functionality";
$headers = "From:" . $from;
mail($to,$subject,$message, $headers);
echo "Test email sent
?>
 
What's SMTP?
In simple terms:

SMTP (Simple Mail Transfer Protocol) is a TCP/IP protocol used in sending and receiving e-mail.
Even shorter, Xenforo will use the mail info (like in the image I provided above) to send the email from the email account. If you are unable to send email using PHP Mail (info provided in above reply) use SMTP instead. For hotmail, it should be the following:

  • Hotmail SMTP server name smtp.live.com
  • Hotmail SMTP user name: your Hotmail account
  • Hotmail SMTP password: your Hotmail password
  • Hotmail SMTP port: 25 or 465
  • Select SSL if you used 465, else NONE for 25.
 
Last edited:
In simple terms:


Even shorter, Xenforo will use the mail info (like in the image I provided above) to send the email from the email account. If you are unable to send email using PHP Mail (info provided in above reply) use SMTP instead. For hotmail, it should be the following:

  • Hotmail SMTP server name smtp.live.com
  • Hotmail SMTP user name: your Hotmail account
  • Hotmail SMTP password: your Hotmail password
  • Hotmail SMTP port: 25 or 465
  • Select SSL if you used 465, else NONE for 25.
What's the difference if I use SSL or none? Btw I've switched to SMTP and done all the above steps.
 
Last edited:
Why wait? Use the email test function :)

yourforumurl/admin.php?tools/test-email

Or Admin -> Tools -> Test Outbound email

If successful, you'll get an email in your inbox.
This is what I got.

"Errors were encountered while trying to send the email."

++ Starting Swift_SmtpTransport
!! Connection could not be established with host smtp.live.com [Network is unreachable #101] (code: 0)


I changed to my gmail account and edited smtp.live.com to smtp.gmail.com and the same error happened. It says network is unreachable.
 
Last edited:
Create php file on your server and save with the following code. Change $from and $to variable accordingly. If you receive success message then your server mail configuration is working you need to check XenForo side configuratoin.

<?php

ini_set( 'display_errors', 1 );
error_reporting( E_ALL );
$from = "emailtest@YOURDOMAIN";
$to = "YOUREMAILADDRESS";
$subject = "PHP Mail Test script";
$message = "This is a test to check the PHP Mail functionality";
$headers = "From:" . $from;
mail($to,$subject,$message, $headers);
echo "Test email sent
?>
Do I create a php file in the file manager?
 
Yes, create a file and run it.
The file doesn't open beyond this point.
IkJGKTY.png
 
The file doesn't open beyond this point.
IkJGKTY.png

You have created a php folder and file.php>it does not work that way. Forget about creating that file for a second and use the STMP only

You need to put this info

hostname: yourdomain.com
username: email address@yourdomain.com < if you dont have one, create one through your Cpanel>email account
password: your email passowrd
port:25
Encryption: None.

This should work
 
You have created a php folder and file.php>it does not work that way. Forget about creating that file for a second and use the STMP only

You need to put this info

hostname: yourdomain.com
username: email address@yourdomain.com < if you dont have one, create one through your Cpanel>email account
password: your email passowrd
port:25
Encryption: None.

This should work
You meant SMTP right? Not STMP?
 
Back
Top Bottom