Posts

Showing posts from January, 2021

Laravel: Got "on behalf of" mess in email header? say No more!

Image
  If you use email service like mail gun, they default set 'sender' header part (not 'from' header) as "example.com@mailsubdomain.example.com". and  we mostly using only "from" function to set who sent the email (eg: contact@example.com) .. but some email client take this seriously . if original "example.com@mailsubdomain.example.com" is not equal to "from" that email client inform user to by showing like - "<info= example.com@mailsubdomain.example.com on behalf of contact@example.com"  this email client do for prevent misleading users. mostly this is harmless but users who don't know about this can be panic when they saw email like this . so how we fix this?? in Laravel there are two major functions in emails "from" and "sender" to set who sent the email...  "sender" is more accurate that "from" for some reasons Laravel mosly documented only "from" function. but ...

Popular posts from this blog

How to use Spatie packages to enhance your Laravel development experience

Handling undefined variables in laravel

Some Briefs of Data Mining