Laravel 11 Wie konfigurieren Sie die E -Mail -Codierung?Php

PHP-Programmierer chatten hier
Anonymous
 Laravel 11 Wie konfigurieren Sie die E -Mail -Codierung?

Post by Anonymous »

Ich sende E -Mails von Laravel 11 App über SMTP (sendGrid) und sehe sie in Google Mail an. < /p>
Meine HTML -E -Mail verfügt
< /code>
Wenn ich jedoch in Google Mail auf "Original anzeigen" klicke und sowohl Text- als auch HTML-Versionen der E-Mail überprüfe, sehe ich andere Codierungen: < /p>
Entweder "ISO-8859-1" < /p>
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
...plain text email...
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
...html email...
< /code>
oder "US-ascii": < /p>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
...plain text email...
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
...html email...
< /code>
Ich möchte, dass alles natürlich alles ist. Alle von LLMs angegebenen Ratschläge sind Halluzinationen oder Code aus früheren Laravel -Versionen.$payload = [
'url' => route('login.verify', ['token' => $token]),
];
Mail::to($user->email)->send(new EmailOTP($payload));
< /code>

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post