I am using Laravel Mail for sending emails via SendInBlue. It was all working just fine but today I started to face an issue which was not present before.
Issue happens with a link generated in the blade email template.
This is example of code which generates the link:
'link' => env('FRONT_APP').'verification?userid=25&code=12345'
The link is then being sent to Blade email template, and used as follows:
<a href="{{ $link }}">PRESS TO CONTINUE</a>
However, after the email is delivered, the URL is actually:
/verification?_se=YW5kcml1cy5rYlyeXMubHRAZ21haWuY39t&userid=25&%3Bcode=12345
It seems that problem is with special character encoding of ampersand. However changing it to &
changes the URL to the following:
/verification?_se=YW5kcml1cy5rYlyeXMubHRAZ21haWuY39t&userid=25&%3Bamp%3Bcode=12345
I'm also not sure where this bit _se=YW5kcml1cy5rYlyeXMubHRAZ21haWuY39t
comes from.
All of this wasn't happening before I started using SendInBlue.
I am using my Gmail account for sending emails to test.
Any ideas how I could fix this?