visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
315 experts, 1193 registered users, 1659 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


05/10/2011 1h30 : Steve Jobs is dead, the father of Apple ][ is gone, we are all orphaned.

Databases :: MySql :: send mail with php


By: VB guy Canada  Date: 15/11/2004 08:39:53  English  Points: 70 Status: Answered
Quality : Excellent
hi..
i have 2 servers, (web server and mail server), i want to send mails with the "mail" function in php, i need to use sendmail from "mail server" not from "web server".

How i can do that?


thnkx
By: FiatLink Date: 15/11/2004 08:40:32 English  Type : Answer
Modify the php.ini settings file for the smtp to point to the the other server

The section looks like this...

[mail function]
; For Win32 only.
SMTP = localhost ; for Win32 only

; For Win32 only.
sendmail_from = me@localhost.com ; for Win32 only

; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =


If you using Windows then the php.ini file is in the Windows directory. I'm not sure where it is at for UNIX.
By: VGR Date: 15/11/2004 08:41:08 English  Type : Comment
yes
By: Bernard Date: 15/11/2004 08:41:37 English  Type : Comment
insert the smtp host in

[mail function]
; For Win32 only.
SMTP = localhost ; for Win32 only

it works fine!
By: Bernard Date: 03/12/2004 09:34:16 English  Type : Comment
any news from this ?

Do register to be able to answer

EContact
browser fav
page generated in 304.188010 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page