Commit 960e2a92 authored by Nickilo's avatar Nickilo

Correction pour une meilleure compatibilité avec les serveur smtp

Ajout d'un mode de debug activable dans le php.ini

Ajout d'un code de test

Modification du fichier README et install.sh afin de refléter ces changements
parent 8f296e5f
<?php
$login="your smtp login";
$password="your smtp password";
$destination="destination mail address";
$source="your email address";
$reply="reply email address"; // can be empty
$subject="suject";
$content="content";
$smtp="smtp ip or url"; // can be ignored depended on the php.ini configuration
mail_php($login,$password,$destination,$source,$reply,$subject,$content,$smtp);
?>
\ No newline at end of file
PHPMyEmail 0.2 (MAIL_PHP)
PHPMyEmail 0.3 (MAIL_PHP)
PHPMyEmail is a free secure and network capable (via SMTP protocol) alternative to mail() PHP function.
......@@ -69,6 +69,8 @@ mail_php.mysql_base="mail_php"
mail_php.footer="0"
; Contenu du footer si active
mail_php.footerContent="Demo footer"
; Activation du debug (1) ou mode de production (0)
mail_php.enable_debug="0"
=========================
QUOTAS
......@@ -105,6 +107,14 @@ $subject : Subject of the email to be sent.
$content : Content to be sent. If mail_php.enable_headers=1, must contain the From: , the To: and the end of the mail headers
$smtp_server (optional) : if mail_php.smtp_server="none", $smtp_server is used
=========================
TEST
=========================
A php test file named PhpMyEmail-test.php is included into the package
Please edit the file to fill up the needed varaibles.
Then use the follwing command to test :
php PhpMyEmail-test.php
If you did not receive the email, try to enable debug in php.ini
......@@ -94,6 +94,7 @@ if [[ $reponse && $reponse = "y" ]];then
echo "mail_php.mysql_base=\"mail_php\"" >> $configFile
echo "mail_php.footer=0" >> $configFile
echo "mail_php.footerContent=\"Demo footer\"" >> $configFile
echo "mail_php.enable_debug=0" >> $configFile
echo "" >> $configFile
echo "Now you can edit the mail_php options in your php.ini to fit your needs";
echo "";
......@@ -113,6 +114,7 @@ else
echo "mail_php.mysql_base=\"mail_php\"";
echo "mail_php.footer=0"
echo "mail_php.footerContent=\"Demo footer\""
echo "mail_php.enable_debug=0";
echo "";
fi
......@@ -123,4 +125,3 @@ echo "";
if [[ $reponse && $reponse = "y" ]];then
apachectl restart;
fi
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment