Link in email with "=ed" being removed from links

13 hours ago 1
ARTICLE AD BOX

I have a PHP app that is sending an HTML email to users with a web link in it. The URL looks like this:

<website domain>/users.php?action=edit&userid=4

When receiving the message the link doesn't work.

Apple Mail opens the link as: <website domain>/users.php?action%EF%BF%BDit&userid=4

Gmail and my host's webmail open it as: <website domain>/users.php?actionit&userid=4

In the raw message source, the link is fine.

I can clearly see the =ed is being converted, but I can't see why. Here's the message source

MIME-Version: 1.0 Content-Type: multipart/related; boundary="inlined73770d9826069e4305c8cce98665559"; charset= This is a multi-part message in MIME format. --inlined73770d9826069e4305c8cce98665559 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: Quoted-Printable <!doctype html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <a href="<website domain>/users.php?action=edit&userid=2">Update your profile</a> </body> </html>

The only strange thing I've noticed is that the charset on the top Content-Type is show as blank, despite being set to UTF-8 in the code

$inline_img_header = "Content-Type: multipart/related; boundary=\"$inline_boundary\"; charset=UTF-8";

Any ideas what's going on here?

Read Entire Article