Title: Issue when using non default image paths
Last modified: February 3, 2023

---

# Issue when using non default image paths

 *  [mongobongo](https://wordpress.org/support/users/nima1981/)
 * (@nima1981)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/bug-when-using-non-default-image-paths/)
 * Hello, I ran into an issue in the way mailpoet generates image links in the emails
   sent out which is causing broken image links in the final email delivered. When
   the image links on the site are rewritten mailpoet doesn’t take this into account
   which indicates that the image links aren’t generated dynamically as they should.
 * For example, in the emails that we send out there’s an image link to a telegram
   icon, it’s displayed correctly on the mailpoet editor and in the code we can 
   see it links to [https://dissentwatch.com/up/2023/01/telegram-logo-944.png](https://dissentwatch.com/up/2023/01/telegram-logo-944.png)–
   however, in the email that’s delivered to the subscriber’s inbox your software
   generates this link which is incorrect and produces a broken image link: [https://dissentwatch.com/wp-content/uploads/2023/01/telegram-logo-944.png](https://dissentwatch.com/wp-content/uploads/2023/01/telegram-logo-944.png)
 * This is the wrong path. I think need to this WP function to retrieve the correct
   upload directory path or allow the user to specify the upload directory path 
   in the mailpoet settings: [https://developer.wordpress.org/reference/functions/wp_upload_dir/](https://developer.wordpress.org/reference/functions/wp_upload_dir/)
 * Best regards,
   Nima
    -  This topic was modified 3 years, 4 months ago by [tobifjellner (Tor-Bjorn “Tobi” Fjellner)](https://wordpress.org/support/users/tobifjellner/).
    -  This topic was modified 3 years, 4 months ago by [mongobongo](https://wordpress.org/support/users/nima1981/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fbug-when-using-non-default-image-paths%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘Issue when using non default image paths’ is closed to new replies.

 * ![](https://ps.w.org/mailpoet/assets/icon-256x256.png?rev=3284564)
 * [MailPoet - Newsletters, Email Marketing, and Automation](https://wordpress.org/plugins/mailpoet/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailpoet/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailpoet/)
 * [Active Topics](https://wordpress.org/support/plugin/mailpoet/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailpoet/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailpoet/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [mongobongo](https://wordpress.org/support/users/nima1981/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/bug-when-using-non-default-image-paths/)
 * Status: not resolved