Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Robocop1 on October 02, 2024, 10:18:55 PM

Title: Newly registered users not getting emails
Post by: Robocop1 on October 02, 2024, 10:18:55 PM
Hi my forum is pretty new and newly registered users are not getting email confirmation.

Someone please help me to fix this :)

Thanks 🙏
Title: Re: Newly registered users not getting emails
Post by: Sir Osis of Liver on October 02, 2024, 10:46:28 PM
Is the forum sending any emails?  Are you using php or smtp mail?

Title: Re: Newly registered users not getting emails
Post by: Kindred on October 02, 2024, 10:53:41 PM
IS your forum sending OTHER emails?
Title: Re: Newly registered users not getting emails
Post by: Robocop1 on October 02, 2024, 11:00:43 PM
Quote from: Sir Osis of Liver on October 02, 2024, 10:46:28 PMIs the forum sending any emails?  Are you using php or smtp mail?



I tired both it's not working
Title: Re: Newly registered users not getting emails
Post by: Robocop1 on October 02, 2024, 11:01:23 PM
Quote from: Kindred on October 02, 2024, 10:53:41 PMIS your forum sending OTHER emails?

No
Title: Re: Newly registered users not getting emails
Post by: Robocop1 on October 02, 2024, 11:11:23 PM
Here are my SMTP settings that I used

Server - mail.domain.com
Port - 587

When I check my error log it says could not connect to SMTP host : 110 : connection timed out
Title: Re: Newly registered users not getting emails
Post by: Sir Osis of Liver on October 02, 2024, 11:14:18 PM
Try running this test script -


<?php
// Add your name between quotes
$from_name "Forum name";
// Add the origin email address between quotes (the same email you set in SMF's Webmaster email address)
$from_email "webmaster email address";
$headers "From: $from_name <$from_email>";
// You are free to change the body and subject of the test email in the next lines, but the default should work fine
$body "Hi, \nThis is a test mail from $from_name <$from_email>.";
$subject "Test mail from localhost";
// Add the destination email address between quotes (the recipient of the test email)
$to "destination email";
// When running the script, you will see in your browser "Success!" or "Fail...", depending on whether the test was successful or not. DON'T CHANGE THIS
if (mail($to$subject$body$headers)) {
   echo 
"Success!";
} else {
   echo 
"Fail...";
}
?>



https://wiki.simplemachines.org/smf/E-Mails_-_Why_are_members_not_getting_emails_sent_from_the_forum

Title: Re: Newly registered users not getting emails
Post by: Robocop1 on October 02, 2024, 11:53:27 PM
Quote from: Sir Osis of Liver on October 02, 2024, 11:14:18 PMTry running this test script -


<?php
// Add your name between quotes
$from_name "Forum name";
// Add the origin email address between quotes (the same email you set in SMF's Webmaster email address)
$from_email "webmaster email address";
$headers "From: $from_name <$from_email>";
// You are free to change the body and subject of the test email in the next lines, but the default should work fine
$body "Hi, \nThis is a test mail from $from_name <$from_email>.";
$subject "Test mail from localhost";
// Add the destination email address between quotes (the recipient of the test email)
$to "destination email";
// When running the script, you will see in your browser "Success!" or "Fail...", depending on whether the test was successful or not. DON'T CHANGE THIS
if (mail($to$subject$body$headers)) {
   echo 
"Success!";
} else {
   echo 
"Fail...";
}
?>



https://wiki.simplemachines.org/smf/E-Mails_-_Why_are_members_not_getting_emails_sent_from_the_forum



Hi I ran the test and it says success, but I didn't receive any email :(
Title: Re: Newly registered users not getting emails
Post by: Kindred on October 03, 2024, 12:14:23 AM
Yeah,  that's not a valid smyp connection... smtp does not typically use http addresses
Title: Re: Newly registered users not getting emails
Post by: Robocop1 on October 03, 2024, 12:18:09 AM
Quote from: Kindred on October 03, 2024, 12:14:23 AMYeah,  that's not a valid smyp connection... smtp does not typically use http addresses

Should I contact my host support? Or the issue is on my side ?
Title: Re: Newly registered users not getting emails
Post by: Robocop1 on October 03, 2024, 03:06:58 AM
I think its solved :)