• Resolved dzarelli

    (@dzarelli)


    Hey Hannes, Great work on this plugin. It’s very helpful. Thank you!

    I’m using it along with Ninja Forms on a page designed to send outage notifications to end users using an html template for the email that populated from form fields. Everything is working great, except for the fact that whenever an email is sent from this form it shows the site URL listed under the email sender name in outlook. Since the notification page is internal and the end users cannot resolve the site, I would like to remove this from the email message, but I don’t see where this is defined. Do you know if it’s possible to remove the site URL from the email responses?

    Thanks again for all your work on this plugin.

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • This could be a server configuration. Try sending emails via SMTP using this plugin.

    Thread Starter dzarelli

    (@dzarelli)

    Getting the same thing using SMTP email.

    The issue is that Outlook previews the first line of the email message in the inbox on the main view. Even though I’ve removed all header and footer content from th email template, it’s still included in the email message somewhere. We see the same behavior when sending a test message from the HTML Email plugin “send a test mail” option, so it’s not coming through on the form itself, but rather from the plugin. It looks like it’s inserting the WordPress Address (URL) value from the general setting of the site. The problem with this is that we do not want our end users to see this. Is there anything we can do to remove this? It’s the only hurdle we have left. Thanks.

    Thread Starter dzarelli

    (@dzarelli)

    I wouldn’t need to use SMTP mail if I could just get the site URL out of the email preview on the client side. The header and footer have bother been removed, but the site URL is showing up in the email body somewhere. Any assistance is appreciated. Thanks!

    Thread Starter dzarelli

    (@dzarelli)

    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!

    Thread Starter dzarelli

    (@dzarelli)

    Additional code from the test email showing the URL string

    </head>
    <body style="background-color: #ffffff; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; margin: 0; padding: 0;">
    
    <!-- 100% background wrapper (grey background) -->
    <table border="0" width="100%" height="100%" cellpadding="0" cellspacing="0" class="###plugin-class###" style="border-spacing: 0; mso-table-lspace: 0pt; mso-table-rspace: 0pt;"><tr>
    <td align="center" valign="top" style="border-collapse: collapse;">
    
    			<br><table id="holder" class="container" border="0" cellspacing="0" cellpadding="0" style="border-spacing: 0; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; max-width: 600px!important;" align="center"><tr>
    <td align="center" style="border-collapse: collapse;">
    						<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-spacing: 0; mso-table-lspace: 0pt; mso-table-rspace: 0pt;"><tr>
    <td style="border-collapse: collapse;">
    								
    									<!--[if (gte mso 9)|(IE)]>
    										<table id="outlookholder" class="container" width="600" border="0" cellspacing="0" cellpadding="0" align="center"><tr><td>
    									<![endif]-->
    										<!--header-table-->
    										<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-spacing: 0; mso-table-lspace: 0pt; mso-table-rspace: 0pt;"><tr>
    <td class="container-padding header" align="right" style="border-collapse: collapse; padding-left: 24px; padding-right: 24px; background: #ffffff; color: #ffffff; font-family: Georgia,Times New Roman,serif; font-size: 40px; font-style: italic; font-weight: normal; line-height: 1.2; padding: 0px 0px 0px 0px; text-align: right!important; text-decoration: none;">
    													<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;"><br></a>
    												</td>

    Thanks!

    • This reply was modified 6 years, 9 months ago by dzarelli.
    Thread Starter dzarelli

    (@dzarelli)

    To clarify; the siteURL only shows in Outlook if the Outlook client has the “message preview” option enabled (1 line or more). It is not visible in the email itself. The issue can be reproduced simply by sending a test mail (from the “send a test mail” option from within WP HTML Mail settings) to someone who has MS Outlook email client with message preview set to “1 line” or more. I’ve looked through a number of the PHP files in /var/www/html/wp-content/plugins/wp-html-mail/includes/ and tried making some small manual changes to some values in the class-haet-mail.php file, as that seems to have some references that appear to be related, but I’ve been unable to locate the specific code I need to edit. Nothing I’ve tested has helped. Any assistance is appreciated. Thanks!

    Please try todays update.

    Thread Starter dzarelli

    (@dzarelli)

    That did the trick. Perfect! Thank you so much for the great support. Really appreciate the effort.

    Thread Starter dzarelli

    (@dzarelli)

    This is resolved.

    I‘m glad to hear it works, wasn’t so easy to find out because other mail clients only show text in preview.
    Maybe you could leave a positive review?

    Thread Starter dzarelli

    (@dzarelli)

    Done. Thanks again!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Site URL shows up in email response’ is closed to new replies.