mail() and sendmail_path

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Jevad
New php-forum User
New php-forum User
Posts: 2
Joined: Mon Apr 15, 2013 5:35 am

mail() and sendmail_path

Postby Jevad » Sat May 04, 2013 6:22 am

I have problem with my localhost mail server.

I like to use php function mail() but I like to chose a other mail server to use in my network.

php.ini
sendmail_path = /usr/sbin/sendmail -t -i

works really bad for me. I like to use my deticated mail server insted.
Only sems like windows servers can use
ini_set('SMTP',"mail.server.com"); #For Win32 only.
ini_set('smtp_port',"25"); # For Win32 only.
ini_set('sendmail_from',"info@server.com"); #For Win32 only.
and
sendmail_path is not allowed to be set by ini_set().

Return to “PHP coding => General”

Who is online

Users browsing this forum: No registered users and 1 guest