Mailer doesn't set "From" address in emails

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
severtki
Forum Members
Forum Members
Posts: 27
Joined: Tue Aug 11, 2009 1:33 pm

Mailer doesn't set "From" address in emails

Post by severtki »

On v2.1.3, looking at Global Settings / Mail Settings, I have the following settings:
mailer: mail
from address: root@localhost.localdomain
from Name: admin

When I click "Test" to send a test email, the email arrives without a "From" address set, which looks to my spam filter as junk. Should the mail be setting a proper "From" address to lessen the possibility of identification as spam? Or is there something I'm doing wrong?

I've set the CGBlog module to send notifications upon a new blog submission, but I'm not getting those messages due to this missing "From" field.

Thanks for any ideas!
Kirk
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3492
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: Mailer doesn't set "From" address in emails

Post by velden »

Seems not a CMSMS problem. Just tested:

Code: Select all

To: [removed]@gmail.com
Subject: CMSMS Mail Test message
Date: Mon, 9 May 2016 10:01:22 +0200
From: CMS Administrator <root@localhost.localdomain>
Message-ID: <31061a72cf1218cac64b742daa5f85c0@temp.[removed].nl>
X-Mailer: PHPMailer 5.2.14 (https://github.com/PHPMailer/PHPMailer)
MIME-Version: 1.0
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit
Note that in general it seems like a bad idea to use 'root@localhost.localdomain' as the from address. Please try using a email address that really exists on that server/domain.
severtki
Forum Members
Forum Members
Posts: 27
Joined: Tue Aug 11, 2009 1:33 pm

SOLVED: Mailer doesn't set "From" address in emails

Post by severtki »

Ah -- that did work. I somehow thought the "From address" had to be "root@localhost.localdomain" in order for the mailer to work.

Thanks, Velden!

Kirk
Locked

Return to “CMSMS Core”