News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Multiple problems with email sending

Started by lordmortimer, May 19, 2023, 12:24:16 PM

Previous topic - Next topic

lordmortimer

Hello everybody,

I can't send emails with my forum and it appears there are different reasons, depending on what kind of email I'm using.

Using a PHP mail, and trying with mail-tester.com [nofollow], I traced two issues: non-existing MX record (but it exists) and something about DKIM.

Using an SMTP mail, this doesn't get sent and I receive a failure of communication to the server in the forum error log.

Before starting, I ask you: what kind of mail is better to use? Regular PHP or SMTP?

I have SMF 2.1.3

Sesquipedalian

SMTP is always better. Setting it up correctly does require more effort, though.

DKIM is one of the main email authentication methods. Without that set up, there is a very high likelihood that your email messages will be flagged as spam.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

lordmortimer

Guess I'll go with solving the SMTP one, then.
The missing communication error is signaled at this url: ../index.php?action=admin;area=mailqueue;sa=test;save

I controlled many times every ID field for the SMTP server: everything is correct, so I'm sure it's not a wrong user/pass/port thing.

What else should I provide?

shawnb61

Sometimes you need to prefix the server with ssl://
A question worth asking is born in experience & driven by necessity. - Fripp

lordmortimer

Quote from: shawnb61 on May 19, 2023, 03:50:19 PMSometimes you need to prefix the server with ssl://
Thank you. This solved the server comm. problem, but it seems there's another one: the test mail is sent but it never arrives. I looked in every folder, including the junk one, and waited for about 2 hours.

Aleksi "Lex" Kilpinen

That would most likely be because the receiving server refused to accept it for some reason. Possible explanations may include webmaster email address not matching the used SMTP account or incorrect/missing header information such as DKIM and SPF.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

lordmortimer

Quote from: Aleksi "Lex" Kilpinen on May 20, 2023, 06:18:40 AMPossible explanations may include webmaster email address not matching the used SMTP account.
This one. Now it seems everything is functioning.

Thank you everybody  :-*

Advertisement: