jeudi 19 mars 2020

Laravel : disable X-mailer header

Laravel 5.4

Gmail smtp

Code

Mail::send('emails.test', $user, function($message) use ($user) {
                    $message->to(receiver email);
                    $message->cc('test@test.com','test@test.com');
                    $message->subject(' test mail');
                });

When mail is received it contains X-mailer headers which contains my server path, server auth details. How to hide this information.

Add headers in mail function laravel 5 this post is to add will it work to remove the headers



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire