Jump to content

Email Script


adam84

Recommended Posts

Of course it can be done. You'll more than likely want to write a script that checks your ~/.mailbox directory for new mail, then (depending on what exactly you mean by process) do whatever needs to be done when it finds one.

 

You'll likely want to run the script via a cronjob every few minutes.

Link to comment
https://forums.phpfreaks.com/topic/88467-email-script/#findComment-452943
Share on other sites

Of course it can be done. You'll more than likely want to write a script that checks your ~/.mailbox directory for new mail, then (depending on what exactly you mean by process) do whatever needs to be done when it finds one.

 

You'll likely want to run the script via a cronjob every few minutes.

 

Agreed, but adding on to that...  you should also have the script check the mailbox when you log in to view your email. - Just in case an email came in a few seconds ago and the script wasn't activated yet...

Link to comment
https://forums.phpfreaks.com/topic/88467-email-script/#findComment-452972
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.