PhpMyEmail is a PHP library that aims to substitute the PHP mail() function by providing a more efficient, user-friendly email system.
- Mysql quota based on sender e-mail
- Network capable via smtp protocol
- Smtp SASL (login) capable
The installation process for PhpMyEmail is easy to follow. First, download the latest release and untar the downloaded file. Next, run the following commands in order:
- cc -fpic -DCOMPILE_DL=1 -I/usr/include -I/usr/include/php/Zend -I/usr/include/php/TSRM -I/usr/include/php/main -I/usr/include/php -c -o smtp.o smtp.c
- cc -shared -L/usr/local/lib -rdynamic -o phpmyemail.so smtp.o
Once this is complete, copy phpmyemail.so to the php modules directory (for example, /usr/lib/php/extensions/) and add "extension=phpmyemail.so" to the dynamic extension section in php.ini.
To use PhpMyEmail in a PHP script, call the mail_php function and include the necessary parameters:
- $smtp_login: a valid smtp login
- $smtp_passwd: a valid smtp password
- $dst: the destination e-mail
- $src: the source e-mail
- $reply: the reply e-mail
- $subject: the subject of the email
- $content: the content of the email
Overall, PhpMyEmail is a useful PHP library that offers more flexibility than the traditional PHP mail() function. The installation process is straightforward, and once installed, it is easy to use in PHP scripts.
Version 0.1: N/A