• Test message works if it is text only. But if I add an image path to mail message, it doesn’t send email.

    This is what am I trying to send:

    <p>text1</p>
    <p><a href="https://path/to/image.png"><img class="alignnone" src="https://path/to/image.png" alt="" width="1179" height="578" /></a></p>
    <p>text2</p>

    It doesn’t work. But when I remove the second p (image path), it works.

    I try deactivate and reactivate the plugin.

    I use Easy WP SMTP plugin, instead wp_mail function.

    Email users version 4.7.5 and It’s happen after last update.

    https://www.ads-software.com/plugins/email-users/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Mike Walsh

    (@mpwalsh8)

    Have you tried it without the Easy WP SMTP plugin active?

    I just ran a simple test – I sent a test message to myself and added an image from my media library. The resulting HTML looks like this:

    This is a test.
    
    <a href="https://michaelwalsh.org/wp-content/uploads/2013/04/email_users_html_wrapper.png"><img class="aligncenter size-full wp-image-2175" src="https://michaelwalsh.org/wp-content/uploads/2013/04/email_users_html_wrapper.png" alt="email_users_html_wrapper" width="750" height="1334" /></a>

    It was received correctly in Gmail, on my iPhone, and on an Outlook.com account.

    The HTML above isn’t much different than what you posted.

    Thread Starter tameryilmaz

    (@tameryilmaz)

    Hi Mike, thanks for quick response.

    I have tried that SMTP plugin deactive and nothing changed.

    But I try add image from media library and it is work.

    Copy-paste html from wp post editor is not working. I’m not sure if it is a bug but in this case, we have to add image from the media library. copy-paste html seems not working.

    Any idea?

    Thread Starter tameryilmaz

    (@tameryilmaz)

    I use your html code for testing and it’s not working too. here screenshot from the panel:
    https://i.imgur.com/WSjCGgP.png

    Plugin Author Mike Walsh

    (@mpwalsh8)

    I am not sure what to tell you. I just hand coded this HTML in a message and it works just fine.

    <p>This is a test.</p>
    <p><img src="https://usatftw.files.wordpress.com/2015/07/afp_542749366_74622928.jpg"></p>

    Is there a reason you are copying and pasting from the post editor instead of simply using the post notification functionality?

    As another test, I opened one of my recent posts in the post editor, selected all of the content and copied it with Control-C. I then used Email Users > Send to User(s) and pasted the copied content into the message and selected a test user to send it to. It too arrived in my Inbox with all of the images displayed correctly (although in Gmail I have to click the “display images” link for them to appear).

    I am not sure what to tell you. As near as I can tell, Email Users is operating correctly. Have you tried temporarily disabling all other plugins except Email Users and see if you still have a problem?

    Thread Starter tameryilmaz

    (@tameryilmaz)

    I have tried disable all other plugins, still nothing changed.

    The post notification functionality not working properly. We have discussed this before ??

    https://www.ads-software.com/support/topic/no-line-breaks-in-email

    That’s why I copying and pasting from the post editor, and before the update, it was working properly.

    Now, copying and pasting not working too :/

    As I said, only adding image from the media library seems working, otherwise mail not delivered

    Plugin Author Mike Walsh

    (@mpwalsh8)

    I am not sure what to try next. It is very hard to fix something that I cannot replicate. In reading the other thread, I couldn’t replicate that problem either.

    None of the changes I have made recently have any real effect on how mail is constructed and handed off to wp_mail(). I have added the capability to modify the headers and/or additional content to the email but both are options that require adding filters to your site so won’t have any effect unless you add code to your theme’s functions.php.

    When you copy and paste, are using making sure you paste as “plain text”? I cannot think of anything else that would cause an email to fail to send.

    Thread Starter tameryilmaz

    (@tameryilmaz)

    Bad news.

    Now, add media no longer works. I have no idea what’s happening. I don’t change anything. I just disabled all other plugins and then enabled again.

    I’m sure paste as plain text. You can check the screenshot from one of my previous posts

    Plugin Author Mike Walsh

    (@mpwalsh8)

    Sounds to me like your ISP has some sort of mail limit or blocking. Code that is unchanged rarely just stops working without some other influence.

    Do you receive user registration and/or comment notifications emails from your web site?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Email not delivered if has image in its body.’ is closed to new replies.