Link to home
Start Free TrialLog in
Avatar of TotallyMe
TotallyMe

asked on

Whats the best way to setup sendmail in PHP.ini (sendmail_path or smtp server and port)

I'm just setting up postfix in my PHP.ini and I'm wondering which method I should use, should I point it at the command line to send from /usr/sbin/sendmail or should I use the postfix server so it's send via port 25?

Which is the fastest method? Are there any advantages or disadvantages between both methods?


[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
 
; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path = /usr/sbin/sendmail -t -i

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of basic612
basic612
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial