• Resolved metiqolman

    (@metiqolman)


    Hi all,
    So I’ve read thru the documentation on ‘Posting via Email’.

    Setup my dedicated account at my hosting service.

    Made sure usernames, passwords and server information is all correct.

    Edited the footer.php file and included the string to automatically post to the blog from the email account.

    Tested the email account out by creating a temporary account on my machine that will also receive the post emails.

    When I send an email to my secret post email account it does not show up anywhere in my blog. I know the email account is working because if I check at my local machine I’m able to get the emails that should be going to the blog.

    Anyone else experiencing this?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter metiqolman

    (@metiqolman)

    I’ve also tested my blog page by adding a new post from the dashboard. That’s working as well.

    Also the email posts are not waiting for authorization either. They’re just simply not getting to my wordpress site.

    Thread Starter metiqolman

    (@metiqolman)

    I’ve read that one user had to download a wp-mail.php file… I think that’s the file name… anyway they had to download it, change it and upload it. But it their case the posts were simply not getting to the blog page. The posts were all ‘Pending’. In my case I’m just not seeing the posts showing up anywhere. Not on the blog page nor in the dashboard under “posts”

    Thread Starter metiqolman

    (@metiqolman)

    Does ANYONE have any suggestions? This has really stumped me.

    Thread Starter metiqolman

    (@metiqolman)

    OK… I finally go my posts working from an email. Thanks to a couple other posts I found I was able to solve my problem.

    My email posts were getting to my WordPress folder just not publishing.

    Here’s how I checked to see if my mail was actually getting to my WordPress mail folder.
    I pointed my browser at my domain name then put

    /wp-mail.php

    after the domain name.
    So https://www.mydomain.org/wp-mail.php
    That returned a page showing ALL of the posts I had made via email.
    So this meant the email posts were getting to the WordPress mail folder just not publishing.

    I downloaded a new wp-mail.php file from here. and modified it as Crazyoval had recommended.
    There were two spots that state ‘post_status = pending’
    Change ‘pending’ to ‘publish’
    Saved the file then uploaded it via FTP to my wp folder

    However… There’s a caveat to this whole method I believe.
    Looking at the code in the wp-mail.php file it states that

    //Author not found in DB, set status to pending. Author already set to admin. $poststatus = ‘pending’;

    I need to check this out but it would appear that this line is a safe guard to keep anyone who discovers your secret email address from getting published to your blog. I believe that what I’ll need to do is setup an authorized user either in my PHPMYADMIN or somewhere in WordPress that has the permission to post to my blog.

    I’m considering this thread closed but will post back here if I find that to be true.

    Thread Starter metiqolman

    (@metiqolman)

    Thought I had put this issue to bed but not so.

    Well I created a user in my WordPress DB.
    Tried posting to the blog page again and no joy.

    Here’s the details:
    My emails are making it to the wp-mail.php file but are not posting to the blog… UNLESS…. I manually load the wp-mail.php page by pointing my browser to https://www.mydomain.org/wp-mail.php This loads a page showing all my unpublished email posts.
    If I then hit the back button on my browser & then the refresh button on my blog page any recent posts which had not made it to the blog page all of a sudden will show up.

    Any ideas from anyone?

    Thread Starter metiqolman

    (@metiqolman)

    WHOO HOOO! Just figured it out. When using this codex in my footer.php file I had to remove the highlighted section of the code.

    <iframe src=”https://yourblogdomain/wordpressinstalldir/wp-mail.php” name=”mailiframe” width=”0″ height=”0″ frameborder=”0″ scrolling=”no” title=””></iframe>

    So my code now looks like this:

    <iframe src=”https://www.mydomain.org/wp-mail.php&#8221; name=”mailiframe” width=”0″ height=”0″ frameborder=”0″ scrolling=”no” title=””></iframe>

    I’ve sent a few posts now and they’re working great. I think someone needs to write an article or post about this little hiccup in this Iframe code.

    that’s actually just referring to you install directory. A lot of people have WP in a subdirectory, so that would be appropriate. That portion of the url would be renamed to match your directory, or in your case (seems you’ve installed WP in the root?) it would be deleted.

    Glad ya got it workin!

    Thread Starter metiqolman

    (@metiqolman)

    I see what you are saying now. I’m glad as well!

    Hey everyone, I too am having some problems with posting via email. When I load up mydomain/wp-mail.php i get the following.

    Author = [email protected]
    
    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 524251 bytes) in /home8/--------/public_html/wp-mail.php on line 49

    I’m assuming this is happening because there is a picture attached to the email. Can this not be done? is there anyway to post pictures via email?

    you can’t do it natively with wp email function…

    I just started using this service:
    https://posterous.com/

    it automatically takes emails with anything attached and sends em to my:
    facebook, twitter, wordpress, flickr, etc…….

    very cool service

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Posting Via Email’ is closed to new replies.