Forums

[resolved] wp-mail hack - add random string to each incoming email (2 posts)

  1. jcowdrey
    Member
    Posted 6 months ago #

    I need to add a random string to the end of an incoming "post-by-email" so that when it's posted in my blog that random string is at the bottom of each post. Each post will have a different random string.

    I think I can make the change to wp-mail.php, and add this php code which will be a random string: <?php print date("U"); ?>

    Any idea where in wp-mail.php I would add this? I'm looking now as well.

    Thanks in advance!

  2. jcowdrey
    Member
    Posted 6 months ago #

    In case anyone wants to know, I tried my hack with wp-mail.php, but there still appears to be some sort of issue with only posting the subject from the incoming emails.

    So I modified the Postie plugin to add the date("U") code to the end of the content string. also added an "ID:" to make it more legit.

    Works fabulously!

Reply

You must log in to post.

About this Topic