Forums

Can Get Post By Email To Work (20 posts)

  1. crazyoval
    Member
    Posted 3 years ago #

    HI guys, I have tried everything I can think of to make post via email to work. I have followed the instructions at http://codex.wordpress.org/Blog_by_Email for both the automatic as well as manual process.

    Does anyone have any experience of this feature and any common mistakes?

    Can someone clarify the php entry in the footer. I have entered the code thus:

    <?php include (TEMPLATEPATH . '/right_sidebar.php'); ?>
    <iframe src="http://yourblogdomain/wordpressinstalldir/wp-mail.php" name="mailiframe" width="0" height="0" frameborder="0" scrolling="no" title=""></iframe>
    <?php wp_footer(); ?>

    and have html below that but it dont work.

    Ive checked and my emails are on my server but not being grabbed.

    Any help please?

    Thanks

  2. bakuvia
    Member
    Posted 3 years ago #

    Hi crazyoval

    Can't help you but I'm having the exact same problem. Did everything you did but still no joy. I also tried putting the <iframe> completely outside of the <html> tags but still no joy.

    I can see the message when using yourdomain.com/wp-mail.php as URL but the footer + <iframe> setting doesn't work and a refresh doesn't post to the blog.

    I tried using the exact same mail settings on my other WP blog (version 1.5) and it worked perfectly - grabbing and posting the email, so it does appear to be a bug in 2.7. I wish somebody would come up with a fix 'cos it's driving me mad! I don't want to have to revert to an earlier version but looks like I might have to.

  3. bakuvia
    Member
    Posted 3 years ago #

    I did find this link when searching for a solution but I don't really understand it.

    http://trac.wordpress.org/ticket/8051

  4. crazyoval
    Member
    Posted 3 years ago #

    Thanks for your reply. looks like a bug fix. It shows the difference in code in the wp_mail.php file from the previous version, so it looks like someone has fixed it. If you look at: http://trac.wordpress.org/browser/trunk/wp-mail.php?rev=9504 you can see the full code for that file. I am going to try this to see if it works (whilst saving the original one just in case!!)

  5. crazyoval
    Member
    Posted 3 years ago #

    At the bottom of the page I gave above is a download of the php (choose the php version rather than the txt version) then upload into your wordpress home directory but rename the original wp-mail.php first so you can revert to it just in case.

    Its not working for me yet.

    In the login settings area, for the login name did you just enter the name or the full email address? i.e. account_name or account_name@yourdomain.com ?

    Im not sure what exactly to enter there.

    Thanks

  6. crazyoval
    Member
    Posted 3 years ago #

    I have found my posts are sitting in the post area with a status of pending. So it is working to that point, but I now need to work out how to automatically make a post publish rather than stay at the pending status.

  7. SuzanneL
    Member
    Posted 3 years ago #

    Thank you for the link to the ticket, and I have also tried replacing my wp-mail.php with the new one, and see no change. The test posts are still sitting on the e-mail server, and not being retrieved and posted.

    As for your e-mail settings, I'd use whatever my pop host required. Some require just username, some require full e-mail address. Especially if that pop server serves multiple domain names.

    So since this wp-mail.php trouble ticket is marked "fixed" but post-by-email still isn't working, perhaps we need to look for a more recent ticket (or find a way to create one). I have never gotten the "error messages" they mentioned. It simply doesn't work.

    Suzanne.

  8. crazyoval
    Member
    Posted 3 years ago #

    OK, with trial and error I worked out for my situation I need account@domain.com in the login name area.

    Once you have put the code in the footer, a refresh of your site should pull the emails down, but keep the code outside any <body><html></body></html> code.

    Refreshing your admin page doesnt seem to pull the mails probably because the code described in one of the above instructions is only in the footer of your skin, not the footer of your admin layout, so you need to refresh your customer facing page.

    Also, I found: http://wordpress.org/support/topic/152039?replies=28 which talks about the issue of mails appearing in the admin post list, but not automatically being posted.

    This is because wp-mail.php is set to put all mails that are pending that are not from the admin account email. You can change this if you want to mail from somewhere else, as is described in this post by changing something in wp-mail.php.

    I am now seeing mails appear automatically.

    I have to say, and from also reading other's opinions, this is an area of WP that needs sorting out. Its a flipping mess.

  9. crazyoval
    Member
    Posted 3 years ago #

    Next Issue is that mails are coming in blank. Why is WP designed to be so hard to make this work? its bizzare.

  10. crazyoval
    Member
    Posted 3 years ago #

    Im off to look into wp-mail.php again for a line of code that says, "make WP not work = true"

  11. crazyoval
    Member
    Posted 3 years ago #

    OK, quite simple this one (for me) : just turn html off when sending to the post by email address.

    good luck guys!!

  12. crazyoval
    Member
    Posted 3 years ago #

    Reflections.

    This is a messy part of WP that should be slick and fixed.
    It took me the best part of four hours to sort whereas it should have been a 5 minute job.
    Its a great feature that can encourage even more bloggin but just hinders many who would blog more if they could get it to work.
    Every time WP needs to upgrade (please don't change the uder interface again next time!!) you will need to make the changes again (probably) to wp-mail.php to keep this feature working.
    Even after all this, the feature is basic, i.e. no html, no images, just plain text.

  13. bakuvia
    Member
    Posted 3 years ago #

    Thanks Crazyoval

    Worked for me. I agree with you - a total faff-around! Why they can't fix this, I don't know.

    What I did (step-by-step):

    In Settings > Writing - entered necessary details

    mail.example.com
    user@example.com
    password
    set default category

    Downloaded php file from here: new php

    Used Notepad and edit > find to locate phrase: 'set status to pending' and in line underneath changed post status 'pending' to 'publish'

    Saved file and uploaded to wp folder, replacing old file.

    Added <iframe> code to footer after html tag

    Set email in email to plain text and sent mail to system.

    This worked a treat.

  14. crazyoval
    Member
    Posted 3 years ago #

    Hi bakuvia,

    yes, "worked a treat" after a lot of "faff[ing]-around"

    Hope the guys can add this to their next release (no layout change again PLEASE) because for sure, remote and mobile blogging has got to be one of the biggest growth areas (iphones, gphones etc etc)

    Anyway, I hope this thread helps out a bunch of people :O)

  15. crazyoval
    Member
    Posted 3 years ago #

    I'm now doing the same for another blog and guess what? Ive done everything above and the flipping thing wont work. This is a nightmare!!

  16. crazyoval
    Member
    Posted 3 years ago #

    mmm.. got it working.. but have to admit, the devil is in the detail :-)

  17. crazyoval
    Member
    Posted 3 years ago #

    No message contents: I found this is solved by ensuring that you do not mail in html format. You can send html but it is sent in standard text format. You can add
    to the end of paragraphs and also use text link code such as:
    <p>Electronic Music Library: Royalty-free chilled electronic music.</p>

    But I have not found how to add an image link as yet. I recall this could not be done in the past but itw worth checking again to see if this can be achieved now.

    Good luck!

  18. rondelw
    Member
    Posted 3 years ago #

    This was a great tutorial...thank you...it's amazing...it works perfectly on one site and then would not work for the life of me on the other site... my login is just the username, not username@domain....

    hope that helps...

    and if you run the wp-mail.php page and get info that it's been received and 1 deleted, then check your posts and make sure they're just not being loaded in a pending status...best of luck to everyone...now let's figure out how to get pictures in it... =)

  19. jive75
    Member
    Posted 3 years ago #

    I am having the same problem with 2.7.1. It doesn't appear to be doing anything. I don't even know if I have a code error .. it just not doing anything. I just want it to work. I have postmaster and even that's is not working with it.

  20. mightym@x
    Member
    Posted 3 years ago #

    I'd be real careful about setting everything to publish. Instead set up a user as author that will post for you. I had problems with this but found out it was because I was trying to text my post in to the email account I set up for posting from. I found a helpful explanation here http://sinacism.com/2009/04/18/texting-to-post-now-works/

Topic Closed

This topic has been closed to new replies.

About this Topic