Getting it running
1. Register, choosing an email prefix at email2php.com that will receive the emails that shall be processed.
2. Set up a php script at your server that shall receive these emails (example see below).
3. Specify the url to this script within your email2php.com account.
Now, whenever an email is received to your chosen email address, it will be forwarded to
your php script. Find a sample script below to try it out.
Subscribing
To subscribe, please pay -
after completed registration - the amount according to your
account choice
via one of the payment options below. The activation period will
then be instantly extended accordingly. (We will know about which account the
payment is belonging to via the sending email address in the money transfer or
simply via the natural name that is associated with the payment.)
| Basic account (15 EUR) | Pro account (20 EUR) |
|
|
|
|
|
|
Code sample
The following test script simply saves the mail text to the disc:
<?php
// Retrieve mail text
$mailtext = $_REQUEST['mailtext'];
// Save with time stamp in file
$f = fopen("mailtext_".time().".txt", "w");
fwrite($f, $mailtext);
fclose($f);
// Additional fields that may be of use
$_REQUEST['err_code']; // error code in case of error; 0=OK
$_REQUEST['err_descr']; // clear text error description
$_REQUEST['username']; // username/
$_REQUEST['alias']; // alias used for forwarding
$_REQUEST['auth_code']; // to prevent unauthorized execution
// of your script; this is set to the
// value listed in your account info
?>