M
M
Mallerta2021-08-26 08:49:33
Email
Mallerta, 2021-08-26 08:49:33

Why does Mail.ru cut the link in the email?

When registering on the site, the user receives an automatically generated email with a link to confirm the email.

$message = 'Для подтверждения EMAIL перейдите по ссылке: <strong><a href="'.SITE_SERVER_NAME.'/account/confirm.php?confirm='.md5($params['VALUE']).'">Подтвердить Email</a> </strong><br>';

For all mail systems, the link is correct and clickable, but if the mail was from mail.ru, then the link in the letter is cut off and it becomes like this:
<a target="_blank" rel=" noopener noreferrer">Подтвердить Email</a>


actually what's the matter? About three years ago, the same question was raised and the problem turned out to be in quotation marks, but here with them, it seems, everything is in order.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Dubrovin, 2021-08-27
@z3apa3a

You don't have a protocol in href and it's generally a relative link (it doesn't start with //), so it's not valid for mail. By e-mail standards, the default scheme for emails, if not available, is file://. Form the correct full link with https://

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question