WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] wp-mail - removing certain strings? (2 posts)

  1. melyviz
    Member
    Posted 9 years ago #

    I set up wp-mail the codex way and I want to moblog with it.
    The function works fine, except that my service provider inserts some junk in the end of my mails. These are some "informative" sentences, saying that this message was sent from a cellphone through my provider.
    How can I remove this? I suppose there is some simple php-way to do so, but I don't know php so I need your help.
    Thanks a lot!

  2. Mark Jaquith
    WordPress Lead Dev
    Posted 9 years ago #

    You could create a filter with the 'phone_content' hook

    <?php function strip_dumb_email_stuff ($text) {
    $text = str_replace('This is the stupid text', '', $text);
    return $text;
    }

    add_filter('phone_content', 'strip_dumb_email_stuff');
    ?>

    Something like that... in a plugin.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.