Title: Missing Host in Emails
Last modified: February 16, 2025

---

# Missing Host in Emails

 *  Resolved [amirabdi](https://wordpress.org/support/users/amirabdi/)
 * (@amirabdi)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/missing-host-in-emails/)
 * When email is sent to customers, the images are missing the [https://example.com](https://example.com)(
   hostname) in their URL (I found this by checking the email logs of my WP Mail
   SMTP plugin). As a result, the images cannot be loaded by the recipient because
   their address is [http:///wp-content/path/my-image.png](https://wordpress.org/support/topic/missing-host-in-emails/?output_format=md).
 * My Server’s HTTP_HOST is set correctly. The WordPress Address (URL) and Site 
   Address (URL) are also set correctly.
 * I haven’t been able to debug this and my customers are not receiving the tickets
   they are purchasing. Any help is appreciated.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmissing-host-in-emails%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Support [tristan083](https://wordpress.org/support/users/tristan083/)
 * (@tristan083)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/missing-host-in-emails/#post-18308515)
 * Hi [@amirabdi](https://wordpress.org/support/users/amirabdi/) ,
 * Thank you for reaching out.
 * I recognize how challenging this must be; but, let me try to assist you here 
   to the best of my abilities.
 * Unfortunately, I have not been able to reproduce the issue in my testing environment
   running only The Events Calendar plugins and the twenty-twenty-one theme. Thus,
   I suspect there’s a conflict that’s causing the issue here. It would be good 
   to test for conflicts. Could you follow the following steps?
    1. Deactivate all other plugins except for The Events Calendar Plugins.
    2. Switching to the[ Default theme](https://codex.wordpress.org/WordPress_Default_Themes).
 * Please read the [Testing for Conflicts Article](https://theeventscalendar.com/knowledgebase/k/testing-for-conflicts/)
   before doing anything. 
 * To be safe, we’d recommend conducting tests and updates on a [Staging Server](https://theeventscalendar.com/knowledgebase/k/creating-and-using-a-wordpress-staging-site/).
   Also, please keep a working backup of your website.
 *  Thread Starter [amirabdi](https://wordpress.org/support/users/amirabdi/)
 * (@amirabdi)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/missing-host-in-emails/#post-18308525)
 * I went through the suggested steps, none of them fixed the issue. All plugins
   deactivated. I even removed and reinstalled the Event Tickets plugins but the
   problem wasn’t solved.
 * I’ve read and applied all steps in the [Testing for Conflicts Article](https://theeventscalendar.com/knowledgebase/k/testing-for-conflicts/),
   no luck.
 *  Plugin Support [Darian](https://wordpress.org/support/users/d0153/)
 * (@d0153)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/missing-host-in-emails/#post-18310530)
 * Hi [@amirabdi](https://wordpress.org/support/users/amirabdi/)
 * Thanks for your response.
 * Just to confirm, have you tried switching to a default theme like Twenty Twenty-
   One while keeping only our plugins active? If not, could you test that and see
   if it resolves the issue?
 * If it doesn’t help, could you try installing the [WP Mail Logging](https://wordpress.org/plugins/wp-mail-logging/)
   plugin, replicate the issue, and check the Mail logs if you still see a broken
   URL.
 * Looking forward to your reply.
 *  Thread Starter [amirabdi](https://wordpress.org/support/users/amirabdi/)
 * (@amirabdi)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/missing-host-in-emails/#post-18311188)
 * yes I tried exactly that.
 * i installed the WP Mail logger and it showed the URLs as broken. That’s actually
   how I first found the root cause.
 *  Thread Starter [amirabdi](https://wordpress.org/support/users/amirabdi/)
 * (@amirabdi)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/missing-host-in-emails/#post-18311465)
 * Let me be more specific: in SMTP logger, it shows the URL as “/wp-content/path/
   img.png” (without host and without protocol).
 *  Plugin Support [tristan083](https://wordpress.org/support/users/tristan083/)
 * (@tristan083)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/missing-host-in-emails/#post-18312200)
 * Hi [@amirabdi](https://wordpress.org/support/users/amirabdi/) ,
 * Thank you for your message.
 * Just to be clear, are you placing a **Header Image** for your ticket emails in
   Tickets -> Settings -> Emails (tab) -> Email Styling (section)?
 * Otherwise, if it is not set, could you try setting it up and see if that header
   image have the same symptom?
 *  Thread Starter [amirabdi](https://wordpress.org/support/users/amirabdi/)
 * (@amirabdi)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/missing-host-in-emails/#post-18312288)
 * yes, the header image is already set. Surprisingly, the header image is the only
   image correctly rendered in the email. All other images are broken.
    -  This reply was modified 1 year, 3 months ago by [amirabdi](https://wordpress.org/support/users/amirabdi/).
 *  Plugin Support [Darian](https://wordpress.org/support/users/d0153/)
 * (@d0153)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/missing-host-in-emails/#post-18319225)
 * Hi [@amirabdi](https://wordpress.org/support/users/amirabdi/)
 * To confirm, were you able to **preview the email correctly** from your **wp-admin
   dashboard**?
 * If so, could you provide:
    A **screenshot** of how the email should look The **
   correct URLs** of the missing images
 * This will help me better understand the issue and assist you further. Looking
   forward to your response!
 *  Thread Starter [amirabdi](https://wordpress.org/support/users/amirabdi/)
 * (@amirabdi)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/missing-host-in-emails/#post-18319276)
 * Problem is resolved. It wasn’t related to your plugin, but related to wp-config.
   php configs and HOST/SERVER urls as well as the wp_content setting in that config
   file.
 *  Plugin Support [Darian](https://wordpress.org/support/users/d0153/)
 * (@d0153)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/missing-host-in-emails/#post-18319896)
 * Hi [@amirabdi](https://wordpress.org/support/users/amirabdi/)
 * Thanks for your confirmation and I’m glad that it is now working.
 * If you have a minute, a great review from you would be amazing!
 * [https://wordpress.org/support/plugin/event-tickets/reviews/](https://wordpress.org/support/plugin/event-tickets/reviews/?filter=5)

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Missing Host in Emails’ is closed to new replies.

 * ![](https://ps.w.org/event-tickets/assets/icon.svg?rev=2259340)
 * [Event Tickets and Registration](https://wordpress.org/plugins/event-tickets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/event-tickets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/event-tickets/)
 * [Active Topics](https://wordpress.org/support/plugin/event-tickets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/event-tickets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/event-tickets/reviews/)

## Tags

 * [broken url](https://wordpress.org/support/topic-tag/broken-url/)

 * 10 replies
 * 3 participants
 * Last reply from: [Darian](https://wordpress.org/support/users/d0153/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/missing-host-in-emails/#post-18319896)
 * Status: resolved