auto approve email

Discussion in 'PHP' started by delcor, Jul 22, 2010.

  1. #1
    i am looking to auto approve my emails sent to my word press site. at the moment it wait for manual approval. is there a script or plug in i can use to auto approve it so that it can display in the word press post
     
    delcor, Jul 22, 2010 IP
  2. Deacalion

    Deacalion Peon

    Messages:
    438
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Approval of user comments or user accounts?
     
    Deacalion, Jul 22, 2010 IP
  3. delcor

    delcor Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i send emails to my web (word press) and it is stored in the "to be approved" section. that is my own emails. i want them to be auto approve so that they can be poste in the categary as a post
     
    delcor, Jul 22, 2010 IP
  4. Deacalion

    Deacalion Peon

    Messages:
    438
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If you are talking about making Posts in wordpress via e-mail then just set the admin e-mail address to the same one you are sending the Posts from. This will publish them as soon as they are sent.

    If you are talking about comments... then go Settings / Discussion and untick the box that says "An administrator must always approve the comment".
     
    Deacalion, Jul 22, 2010 IP
  5. delcor

    delcor Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    i have sent emails to my web with the email i have placed on it but when i sent email it does not show in the category or post at all. where will it be posted or received
     
    delcor, Jul 22, 2010 IP
  6. Deacalion

    Deacalion Peon

    Messages:
    438
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Are they getting through? can you see them with 'Pending'?... if not, your POP3 settings could be wrong. If you can see them though, I doubt the e-mails are the same - for example, when I send emails from my @gmail.com account - I have to set the admin email as @googlemail.com otherwise it fails. :)
     
    Deacalion, Jul 22, 2010 IP
  7. delcor

    delcor Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    i went and look at my settings again in the writing and the following was set. server- example.com - examle is my server name, username - , password is what i have set in my cpanel, locat the catogry wher i want it to post too. but when i send email to that email. nothing appear. not even in the pending colom. dont know what is the probem
     
    delcor, Jul 23, 2010 IP
  8. Deacalion

    Deacalion Peon

    Messages:
    438
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Test your POP3 server through telnet or an e-mail client (like Thunderbird). If it works through them and not with wordpress, you know what the problem is.
     
    Deacalion, Jul 23, 2010 IP
  9. delcor

    delcor Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    i have used outlook and did a test. i received and send emails so the problem must be with WP not receiving
     
    delcor, Jul 23, 2010 IP
  10. Deacalion

    Deacalion Peon

    Messages:
    438
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Hmm... your hosting provider could be blocking outgoing sockets. If it's on your own server, check your firewall.
     
    Deacalion, Jul 23, 2010 IP
  11. delcor

    delcor Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    will the problem with the firewall be on my server or on my computor as i can send and receive the same email if i set it on my outlook
     
    delcor, Jul 23, 2010 IP
  12. Deacalion

    Deacalion Peon

    Messages:
    438
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #12
    It will be where ever Wordpress is hosted. If it's on your own personal computer make sure PHP is added as an exception, which allows it to make outgoing connections.
    If it's a web hosting company - ask them about outgoing sockets, do they block them or not?
     
    Deacalion, Jul 23, 2010 IP
  13. delcor

    delcor Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    ok let i get hold of host company - thanks for your help
     
    delcor, Jul 23, 2010 IP
  14. delcor

    delcor Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    i have contacted them and they said there is no block on there side. what i want to know if i send the email to the web. how will the web know that there is an email for him. i konw with outlook it will look evry so many min. it will look for email. i have made an cron for the web but it seems that it still dont get emails. i have looked in cpanel and the emails is not stored there
     
    delcor, Jul 25, 2010 IP
  15. Deacalion

    Deacalion Peon

    Messages:
    438
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #15
    You can check for e-mail at intervals using a cronjob, like you have. Another way is to add this to the footer of your blog:
    
    <iframe src="http://YourSite.co.uk/wp-mail.php" name="mailiframe" width="0" height="0" frameborder="0" scrolling="no" title=""></iframe>
    
    Code (markup):
    Then every time your blog is visited, it will fire the script that checks for e-mail.
     
    Deacalion, Jul 25, 2010 IP
  16. delcor

    delcor Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #16
    thanks that is working
    now the emails sit in the category but pending. to get it auto publish what must i do
     
    delcor, Jul 25, 2010 IP
  17. Deacalion

    Deacalion Peon

    Messages:
    438
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #17
    The admin account in wordpress has an e-mail address. You can see this in wp-admin when you click 'Users'.
    This e-mail address is where the e-mails should come from, but the POP3 account can be anything.

    So if my admin's e-mail address was kadunka@dunk.co.uk then I must send posts from this e-mail address.
    This will stop it from going straight to 'pending'.

    1. I setup a POP3 account for wordpress called
    2. I enter the POP3 server and login details to wordpress
    3. The e-mail address for the admin is
    4. I send an e-mail from to
    5. The e-mail will get added as a post immediately
     
    Deacalion, Jul 25, 2010 IP