Hi everyone how can i setup php.ini to send emails from multiple Domains.
[mail function]
; For Win32 only.
SMTP = "localhost" (domain1.com; domain2.com)
smtp_port = 25
; For Win32 only.
; sendmail_from = ???
Thank you,
AngelDrago :yawn:
Printable View
Hi everyone how can i setup php.ini to send emails from multiple Domains.
[mail function]
; For Win32 only.
SMTP = "localhost" (domain1.com; domain2.com)
smtp_port = 25
; For Win32 only.
; sendmail_from = ???
Thank you,
AngelDrago :yawn:
Hi
You can not do that!
If you want more control of your mail options then look to using a class or write a simple socket based script that will allow you to connect to different mail servers based on the ARGS sent to that script!
The mail() function is pure junk, it does not follow any of the RFC standards, in PHP 5 there will be changes to it's core, but still it will be a trash function and nothing more!
look at PEAR::MAIL or have a look at this SMTP CLASS which is part of Pear Mail!
If you do go for one of the above classes and need a better example than what they include, just post back and I will write you one as a function that you can include in any script that needs a way to send RFC 822/2045 compliant email!
J!
Hi jbr and thank you for answering ... as you notice i'm new to PHP and trying how i can do this if this is not to much troubble for you i would like you to give me an example of this and that i can work for multible websites... and thank you again
AngelDrago :tup:
Hi
Sorry I did not see your reply until now!
Tomorrow morning I will have a little time to write this for you, check back in the early afternoon for a nice example of sending to different mail servers and using different domains and a example with AUTH, plus I will make it so you can send HTML or text type email, you the set of functions I will write for you....
J!
great thank you very much...
AngelDrago