PHP + sendmail - from

This is a discussion on PHP + sendmail - from within the SendMail forums in Other Technologies category; He I want to send e:Mail from PHP script How to configure server to send proper 'from' parameter (but for two domails mydomain1.com and mydomail2.com) I want to send mail from script: mail($to, $subject, $txt, $headers); My mail is rejested by server who says that is wrong domain for: www-data @ debian If I change hostname for domain1.com - is K but I nead two domains - How to setum PHP or sendmail? - how to send infomation from script that I send from domain1.com or domain1.com? -- I use debian sendmail and PHP ---...

Go Back   Application Development Forum > Other Technologies > SendMail

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-29-2008, 04:21 PM
Piotr
Guest
 
Default PHP + sendmail - from

He
I want to send e:Mail from PHP script
How to configure server to send proper 'from' parameter
(but for two domails mydomain1.com and mydomail2.com)


I want to send mail from script:
mail($to, $subject, $txt, $headers);

My mail is rejested by server who says that is wrong domain for:
www-data@debian
If I change hostname for domain1.com - is K but I nead two domains

- How to setum PHP or sendmail?
- how to send infomation from script that I send from domain1.com or
domain1.com?

-- I use debian sendmail and PHP ---



Reply With Quote
  #2  
Old 08-29-2008, 07:20 PM
Res
Guest
 
Default Re: PHP + sendmail - from

On Fri, 29 Aug 2008, Piotr wrote:

> He
> I want to send e:Mail from PHP script
> How to configure server to send proper 'from' parameter
> (but for two domails mydomain1.com and mydomail2.com)
>


This is the sendmail MTA group, not the php howto for mail()
There are a myriad of forums out there for php for which you can ask on.

--
Cheers
Res

"The hopes we had, were much to high, way out of reach, but we have to
try, no need to hide, no need to run, cause all the answers come one by
one. The game will never be over, because we're keeping the dream alive"
-Freiheit
Reply With Quote
  #3  
Old 08-30-2008, 05:45 AM
Frank-Christian Kruegel
Guest
 
Default Re: PHP + sendmail - from

On Fri, 29 Aug 2008 22:21:28 +0200, "Piotr" <xdfg@gg.pl> wrote:

>He
>I want to send e:Mail from PHP script
>How to configure server to send proper 'from' parameter
>(but for two domails mydomain1.com and mydomail2.com)
>
>
>I want to send mail from script:
>mail($to, $subject, $txt, $headers);


Use:
mail($to, $subject, $txt, $headers,"-f".$envfrom);

Mit freundlichen Grüßen

Frank-Christian Krügel
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 11:18 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.