Error failed with An email must have a "From" or a "Sender"

[2023-05-02 09:07:11] production.INFO: Using mailer => log
[2023-05-02 09:07:11] production.INFO: error failed with An email must have a “From” or a “Sender” header.

I used the correct settings but still won’t work. Removed the MAIL_Password
MAIL_MAILER=smtp
MAIL_HOST=smtp.office365.com
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=
MAIL_ENCRYPTION=TLS
[email protected]
MAIL_FROM_NAME=“Info Servitweb”

but why is the error saying using mailer ==> Log while I set smtp in the env. file

Hi,

Which version of the app are you using?

v5.5.63-C105

can not use higher because get error about a missing PHP item

It may help to load /update?secret= if you’ve changed the .env file to update the cache

Which PHP item is missing?

Indeed after update?secret= it works again.

  • Required PHP extension not found : gmp when I want to upgrade to 5.5.106

Glad to hear it!

Is the GMP extension enabled? You can use a phpinfo file to check.

Will ask my hostcompany to add this extension

OK, so I am having this same issue in my Self Hosted v5.11.37.

Errors in the log show:
*Email Failure Thu Feb 13, 2025 Email Send *
“An email must have a “From” or a “Sender” header.”

From the email settings screen, when I send a test i get a timeout error

Looking at the .env file, I see NONE of the setting that I have configured on my Email Settings page.

Tried to edit the .env file to mimic the settings used by SERVITWEB and send a test and received a “Something went wrong” error.

Data input for the settings are:
Mail Provider: SMTP
From EMail: [email protected]
From Name: Conroe Mobile Notary
Reply-to Name:
Reply-to Email:
Host: conroemobilenotary.com [per my hosts configuration]
Port: 465
Encryption: SSL/TLS
Username: [proper login UID]
Password: [password, verified multiple times]
Local Domain:
BCC Email;
Send time: 0300
Verify Peer: on

I have an alternate host that is available to me … but get the same timeout error when attempting to use it.

Have used all of the encryption methods unsuccessfully.

Have set Verify Peer to off and still no success.

This used to work flawlessly with the settings I have and now it is not working. As I am not in the system regularly, I couldn’t tell when it stopped working.

Any suggestions would be greatly appreciated!

Jason Bell

Do you see any details about the error in storage/logs?

I don’t see a “Storage” log … but in my Settings | Advanced Settings | System Logs I see

image
and nothing here is clickable to see deeper.

storage/logs is a folder in root folder of the project, it will contain an error log file

There are two other options which may be worth trying:

So, using the desktop app to set the config … I get:

Here are the setting I used to get this response … and I even deleted and re-entered the username and password to make sure they were correct.

In the storage | logs there is only one .log file - laravel.log - looking at it is a bunch of gibberish to me … but I don’t see anything relating to email … everything looks related to “vendor”

The mail config directly in the .env file … should it look like this? And just add to the end?


My encryption setting in the dropdown is SSL/TLS which is what my server requires.

If you have the credentials in the .env file trying setting the mail driver to default in the app interface.

Oy Veh !! This is driving me nuts! :slight_smile: :roll_eyes:

So I set to Default … added the config as I showed above … and I get
image
when I try to do anything!

Remove the config … and all goes back to what it was.

Ok … so apparently the system is not liking the two “MAIL_FROM” in the .env file as when either or both are in it … the system give me an internal error, without, it appears to function, but still not sending because it doesn’t see the from or sender header.

Even set to NON-SSL configuration and am also receiving the timeout there also.

If you’re seeing an error in the app there should be more details in storage/logs

Ok, as I mentioned, I am not a programmer … here is what is in the storage | logs directory:

This is the contents of the gitignore

And
laravel_log.txt (16.0 KB)
And here is the log file.

To me … the log file is not saying anything.

What I do know, is that it worked and now it doesn’t and I need it to work, or I will scrap it and find another way to handle my billing. Sorry, I am just frustrated, (and spent last night paying homage to the porcelain god!).Hopefully someone here can help me figure this out because I like the software!

Jason

Has to have been something in the install, as it was also not letting me perform the update. Automatic update processed this morning and everything is now working.

Thanks for the update, glad to hear it’s now working!