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 45561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T15:49:43+00:00 2026-05-10T15:49:43+00:00

I want to run a web application on php and mysql, using the CakePHP

  • 0

I want to run a web application on php and mysql, using the CakePHP framework. And to keep the threshold of using the site at a very low place, I want to not use the standard login with username/password. (And I don’t want to hassle my users with something like OpenID either. Goes to user type.)

So I’m thinking that the users shall be able to log in by sending an email to login@domain.com with no subject or content required. And they will get, in reply, an email with a link that will log them in (it will contain a hash). Also I will let the users do some actions without even visiting the site at all, just send an email with command@domain.com and the command will be carried out. I will assume that the users and their email providers takes care of their email account security and as such there is no need for it on my site.

Now, how do I go from an email is sent to an account that is not read by humans to there being fired off some script (basically a ‘dummy browser client’ calls an url( and the cakephp will take care of the rest)?


I have never used a cron job before, but I do think I understand their purpose or how they generally work. I can not have the script be called by random people visiting the site, as that solution won’t work for several reasons. I think I would like to hear more about the possibility of having the script be run as response to an email coming in, if anyone has any input at all on that. If it’s run as a cron job it would only check every X minutes and users would get a lag in their response (if i understand it correctly).

Since there will be different email addresses for different commands, like login@domain.com and I know what to do and how to do it to based on the sender email, i dont even need the content, subject or any other headers from the email.


There is a lot of worry about security of this application, I understand the issues, but without giving away my concept, I dont think it is a big issue for what I am doing. Also about the usability issue, there really isnt any. It’s just gonna be login to provide changes on a users profile if/when they need that and one other command. And this is the main email and is very easy to remember and the outset of this whole concept.

  • 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. 2026-05-10T15:49:44+00:00Added an answer on May 10, 2026 at 3:49 pm

    I have used the pop3 php class with great success (there is also a Pear POP3 module).

    Using the pop3 class looks something like this:

    require ('pop3.php');  $pop3 = new pop3_class(); $pop3->hostname = MAILHOST; $pop3->Open(); $pop3->Login('myemailaddress@mydomain.com', 'mypassword');  foreach($pop3->ListMessages('','') as $msgidx => $msgsize) {     $headers = '';     $body = '';      $pop3->RetrieveMessage($msgidx, $headers, $body, -1); } 

    I use it to monitor a POP3 mailbox which feeds into a database.

    It gets called by a cronjob which uses wget to call the url to my php script.

    */5 * * * * 'wget -q --http-user=me --http-passwd=pass 'http://mydomain.com/mail.php'' >> /dev/null 2>&1 

    Edit

    I’ve been thinking about your need to have users send certain site commands by email.

    Wouldn’t it be easier to have a single address that multiple commands can be sent to rather than having multiple addresses?

    I think the security concerns are pretty valid too. Unless the commands are non-destructive or aren’t doing anything user-specific, the system will be wide open to anyone who knows how to spoof an email address (which would be everyone 🙂 ).

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

Sidebar

Ask A Question

Stats

  • Questions 70k
  • Answers 70k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer You can also add Application.EnableEvents = False to your code… May 11, 2026 at 12:52 pm
  • added an answer Protocol Buffers might be useful to you. Protocol buffers are… May 11, 2026 at 12:52 pm
  • added an answer Here's an old discussion thread where I listed the main… May 11, 2026 at 12:52 pm

Related Questions

I want to run a few tomcat web apps behind IIS 6. I was
I want to use the MultipleLookupField control in a web page that will run
If I just want to run the new style web services on, say a
I want to run a weekly batch process in an asp.net page. How can
I have a php web application where certain data changes on a weekly basis
I am working on a web application, where I transfer data from the server
I am designing an application that is going to consist of 3-4 services that
I've been pulling my hear out over this problem for a few hours yesterday:

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.