Skip to content

E-mail is not sent due to policy restrictions #631

@Fraenkiman

Description

@Fraenkiman

Email is not sent due to policy restrictions

The PHP-mail() function does not automatically generate a Date: header if it is not passed. If you want to send mail via an external SMTP relay, this will fail. With GMX, for example, you will now receive this message:

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of
its recipients. This is a permanent error.

The following address failed:

SMTP error from remote server for TEXT command, host: mx01.emig.gmx.net (212.227.17.5) reason: 554-Transaction failed
554-Reject due to policy restrictions.
554 For explanation visit https://postmaster.gmx.net/en/case?c=r0701&i=ip&

It is therefore necessary to set a date/time in the mail header in accordance with RFC 5322.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions