I am learning php and on the first serious task plugging, google all the tips refer to the period before 2012 I have other options in the settings

in 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 =

; Parameters passed; 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: it will be followed by the mail.add_x_header = On

; Log all mail () calls. Log entries include; To address and headers. ; mail.log =; Log mail to syslog (Event Log on Windows). ; mail.log = syslog

sendmail.ini

 [sendmail] 

; you must change mail.mydomain.com to your smtp server,; or to IIS's "pickup" directory. (generally C: \ Inetpub \ mailroot \ Pickup); emails delivered via IIS's pickup directory cause sendmail to; run now; application.

smtp_server = mail.mydomain.com

; smtp port (normally 25)

smtp_port = 25

; SMTPS (SSL) support; auto = use SSL for port 465, otherwise try to use TLS; ssl = alway use SSL; tls = always use TLS; none = never try to use SSL

smtp_ssl = auto

; it will read from the registry; this will be appended to email addresses when one is provided; uncomment and modify

; default_domain = mydomain.com

; log smtp errors to error.log (defaults to same directory as sendmail.exe); uncomment to enable logging

error_logfile = error.log

; create debug log as debug.log (defaults to same directory as sendmail.exe); uncomment to enable debugging

; debug_logfile = debug.log

; if your smtp server requires authentication, modify the following two lines

auth_username = auth_password =

; if your smtp server uses pop3 before smtp authentication, modify the; following three lines. do not enable unless it is required.

pop3_server = pop3_username = pop3_password =

; be it the sender email address; this will only affect the "MAIL FROM" command, it won't modify; the "From:" header of the message content

force_sender =

; be it the sender email address; this will only affect the "RCTP TO" command, it won't modify; the "To:" header of the message content

force_recipient =

; sendmail will use your hostname in your ehlo / helo; smtp greeting. you can manually set the ehlo / helo name if required

hostname =

  • Long suffered with the standard sendmail , eventually set up mail using msmtp . Here is a good article . - Roman Grinyov
  • Thank you, I will study, it is a pity that in English ( - ahel73
  • It is never too late to learn, especially in our business without English anywhere. I can advise the Google Translate extension - it helps: if you encounter an unfamiliar word / phrase when reading, select it, then click on the extension icon that appears, then get the translation. Well, read the basics of English somewhere - then it’s up to practice :). - Roman Grinyov
  • yes yes I use it when reading the article you have advised0 - ahel73
  • Also, just in case (I’ve been looking for an answer about this for a while), the owner of /etc/.msmtp_php should be a daemon . - Roman Grinyov

0