Pages : 1
#1 Le 04/11/2017, à 00:15
- Thibaut51
Serveur mail (via smtp)
Bonjour j'ai installer un serveur sous ubuntu
( http://fun-amusement.ddns.net )
et installer le packet ssmtp. Ma configuration:
ssmtp.conf
root=thibaultguinet816@gmail.com # Your email address
UseSTARTTLS=YES
mailhub=smtp.gmail.com:587 # Address and port number to send mail to
AuthUser=thibaultguinet816@gmail.com # Your Username
AuthPass=********** # Your Password
rewriteDomain= # So the message appears to come from FAI
FromLineOverride=YES # So the message appears to come from FAI
hostname=thibaultguinet816@gmail.com # Hostname: use hostname -f in a Terminal
ET dans php.ini
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = smtp.gmail.com
; http://php.net/smtp-port
smtp_port = 587
sendmail_path = /usr/sbin/ssmtp -t <========ICI========
; 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 =
; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail().
;mail.force_extra_parameters =
; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
mail.add_x_header = On
; The path to a log file that will log all mail() calls. Log entries include
; the full path of the script, line number, To address and headers.
;mail.log =
; Log mail to syslog (Event Log on Windows).
;mail.log = syslog
J'ai aussi installer le packet postfix, mais rien a faire.
Mais la fonction
mail();
ne marche toujours pas. Si une personne aurais la solution sa me serais d'une
plus grande aide, merci
Hors ligne
#2 Le 04/11/2017, à 00:18
- Thibaut51
Re : Serveur mail (via smtp)
En attendent de pouvoir utiliser la fonction mail, j'ai crée une api http pour pouvoir envoyer un mail, via livehost
Hors ligne
Pages : 1