web:codding:php:php_sendmail
Table des matières
Demander à PHP d'envoyer un mail
Avec sSMTP
Modifier votre fichier php.ini
nano /etc/php/7.3/apache2/php.ini
Modifier le path de sendmail dans la section [mail function] de php.ini.
[mail function] ; For Win32 only. ; http://php.net/smtp ;SMTP = localhost ; http://php.net/smtp-port ;smtp_port = 25 ; For Win32 only. ; http://php.net/sendmail-from ;sendmail_from = me@example.com ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). ; http://php.net/sendmail-path sendmail_path = /usr/sbin/ssmtp -t
Dans votre page php il vous restera à inserrer la commande de vos souhait.
EX:
mail ("$email","Demande Concernant $titre.$format / Ticket No$ticket",$mail_mess,$mail_sender);
— sylvain 2020/03/15 17:30
web/codding/php/php_sendmail.txt · Dernière modification : de 127.0.0.1
