Sending Mail Print

  • phplaravel, domain, email, guide, howto, solution, zillionkinghost, hosting
  • 0

Application email.

WHAT THE FRAMEWORK PROVIDES

Mail classes, templates, and configurable transport.

WHAT TO CONFIGURE

The transport and its credentials, in the environment.

WHAT TO USE ON YOUR HOSTING

An authenticated account on your own domain, or a dedicated sending service.

WHAT TO NEVER DO

Send with a visitor's address as the sender.

WHY

Your server is not authorised to send as their domain, and it fails authentication.

WHAT TO DO INSTEAD

Send from your own domain, and set reply-to.

WHAT ELSE MATTERS

That the sending route is covered by your mail authentication records.

WHAT TO QUEUE

Mail sending.

WHY

Sending during a request makes the visitor wait for a network operation, and a failure breaks the request.

WHAT TO TEST

Delivery to major providers, not only to your own domain.

WHAT TO LOG

That a message was sent, and any failure.

WHAT TO PROVIDE

An unsubscribe route for anything promotional.

WHAT TO CONFIGURE IN DEVELOPMENT

A transport that does not send, so tests do not mail real people.


Was this answer helpful?
Back

Are you happy with your experience? Leave us a review on Trustpilot.


Trustpilot