Hi my forum is pretty new and newly registered users are not getting email confirmation.
Someone please help me to fix this :)
Thanks 🙏
Is the forum sending any emails? Are you using php or smtp mail?
IS your forum sending OTHER emails?
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
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
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
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 :(
Yeah, that's not a valid smyp connection... smtp does not typically use http addresses
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 ?
I think its solved :)