Support » Fixing WordPress » wp-mail – removing certain strings?

  • Resolved melyviz


    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!

Viewing 1 replies (of 1 total)
  • Moderator Mark Jaquith


    WordPress Lead Dev

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘wp-mail – removing certain strings?’ is closed to new replies.