Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Wayne Allen

    (@wayneallen-1)

    If I understand your question correctly you are trying to send an email that contains a <img> to a file already on some server.

    The Postie image templates only apply to attachments so that is not the route to go.

    Rather you should set the Preferred Text Type to “text” and Allow HTML In Mail Body to “yes”

    Then in your email put

    <img src="https://www.xxxx.com/zzz.jpg" />

    You can of course add extra html if needed.

    Thread Starter flords

    (@flords)

    Ok i understand.
    Can i put automatically in every body email <img src=”https://www.xxxx.com/zzz.jpg&#8221; /> ???

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Maybe if you explained what you are trying to accomplish I could give better advice.

    If you just want the same image in every page that is something your theme should do.

    Thread Starter flords

    (@flords)

    I have a webcam image in a link, into my website. And image is is updated automatically.
    I have a weather system that automatically sends emails.

    The system can automatically send e-mail, and the plugin works. I would like to put the link of web cam image (http: //www.xxxxx/image.jpg) in the email.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    If it is always the same link you could use the Postie postie_post_before filter to add it. See https://postieplugin.com/extending/

    Thread Starter flords

    (@flords)

    Yes it is always the same link.
    So i create a file named filterPostie.php in the wp-content directory and i place the following code into it.
    <?php
    function my_postie_post_function($post) {
    return $post;
    }

    add_filter(‘postie_post_before’, ‘my_postie_post_function’);

    ?>

    Where i put link image??

    Plugin Author Wayne Allen

    (@wayneallen-1)

    before return $post;

    $post['post_content'] = '<img src="https://my.com/img.jpg" />' . $post['post_content'];

    Thread Starter flords

    (@flords)

    Thanks you are biggest!!

    Plugin Author Wayne Allen

    (@wayneallen-1)

    You are welcome.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Image from link’ is closed to new replies.