Any update on this?
I opened a general support ticket just in case this issue is a WordPress core issue. In troubleshooting we’ve determined that the SiteURL is being placed in the email by the WP HTML Email plugin. If this plugin is disabled and a test message is sent the site URL is no longer in the message preview.
Here is an issue summary:
We have a webform (ninja forms) on our internal site that we use to send notifications to customers. Whenever an email is sent from my WordPress site to a user or users, there is an invisible anchor tag being sent with any mail that includes the site URL. This shows the site URL in the outlook preview (as well as other mail clients that preview the message). The anchor tag appears to be hidden in the body of the email. If I view source on a test email (sent to myself) I can see it –
<a href="https://siteurl" style="color: #ffffff; font-family: Georgia,Times New Roman,serif; font-size: 40px; font-style: italic; font-weight: normal; text-decoration: none;"></a>
I have tried using default http mail as well as using several plugins to send mails via SMTP (WP Mail SMTP, Easy WP SMTP, etc) and they all still include the hidden anchor tag in the email body. I’ve submitted support topics to several of the plugin authors, as well as to the ninja forms team, all have responded saying this is not something their plugin is doing. Based on my testing I’m reasonably sure the WP HTML EMAIL plugin is the culprit. If I disable this plugin and sent a test message, the anchor link is gone.
Do you have any suggestions on how I can remove this tag from emails being sent from my WordsPress instance? It is a requirement for my users to be able to use the email form. The email recipients will not have access to browse to the site listed in the anchor link and it MUST be removed before I can release the site to my team. Thanks!