Jump to content


This topic is now archived and is closed to further replies.


How to send Email in PHP5 using Apache Server

Recommended Posts

Hello All,
              I am a very new a member.I want to know how to run Mail programs in PHP.Like we have the SMTP server in the IIS, we can run email programs in PHP using IIS.
I want to learn how to run mail programs in Apache server.

Share this post

Link to post
Share on other sites
Hi, listen I am quite new to all this, but I configured my [color=blue]php.ini [/color] and got the mail () function working ok...

So if you want to try this, go ahead:

[mail function]
; For Win32 only.
SMTP = smtp.onobox.com  ([color=red]set here your SMTP[/color])
smtp_port = 25    ([color=red]This is the port I use, I guess nothing should be changed here[/color])

; For Win32 only.
sendmail_from = yourmail@yourmail.com ([color=red]here you place the "from" mail[/color]...)
; For Unix only.  You may supply arguments as well (default: "sendmail -t
;sendmail_path = "\xampp\sendmail\sendmail.exe -t" ([color=red]here the path where your sendmail.exe file is installed"[/color]. )

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.