This mini app on cloudControl shows the usage of the CloudMailIn addon.
The CloudMailIn addon provides incoming email for your app.
The mini app's goal is - in this case - to store the incoming
messages to a database.
For your special needs overwrite th handleMail function in "incomingMail.php".
To run the app you need a cloudControl MySQLs addon and naturally a cloudControl CloudMailIn addon.
To run this app you have to
$ cctrlapp
APP_NAME/DEP_NAME addon)
$ cctrlapp
APP_NAME/DEP_NAME addon)
CREATE TABLE `mail` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE
CURRENT_TIMESTAMP,
`from` varchar(255) DEFAULT '',
`to` varchar(255) DEFAULT '',
`subject` varchar(255) DEFAULT '',
`plain` varchar(2048) DEFAULT '',
`html` varchar(4096) DEFAULT '',
`x_remote_ip` varchar(128) DEFAULT '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1