Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8470783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T16:37:00+00:00 2026-06-10T16:37:00+00:00

I am creating a email-to-push service for an iOS app I am developing. I

  • 0

I am creating a email-to-push service for an iOS app I am developing. I already have the push part of this service using a PHP server that sends APNS messages. Now I need a way to check an email address for new messages and send the contents of each new message via this PHP script.

I am using an Ubuntu server.

Any suggestions of either software or more PHP code that I can use to accomplish this?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T16:37:02+00:00Added an answer on June 10, 2026 at 4:37 pm

    If you use postfix as your MTA, you can easily arrange for a PHP script to be called for e-mail delivery. Inside this PHP script you can do whatever you need: Write the mail to a DB, arrange to push it to the device, whatever.

    Add this to postfix master.cf

    phpmail    unix  -       n       n       -       10      pipe
      flags= user=www-data argv=/usr/bin/php /path/to/script.php ${recipient}
    

    and this to your main.cf (if you want to deliver ALL local mail through php)

    mailbox_transport = phpmail:
    

    This will result in your script being run with the recipient as first argument.

    Naturally this will work only, if the email addresses are set up to deliver (at least a copy) to your postfix server.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating a web app that requires registration/authentication, and I'm considering using an email
i am creating an email client that sends e-mail address from server ip instead
i am creating an email client that sends e-mail address from server ip instead
I have seen some examples of php scripts that read email headers and parse
I'm creating a service that requires users being able to email anyone@mysite.com where mysite
So I have an html email that I am creating for my company for
I'm creating an email message using CDO object (and VB6, but that doesn't really
I have started creating a Perl package that contains a default email template. The
I have been working on creating a PHP email form recently and cannot manage
I am creating the email format from my code-behind. In that I am using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.