NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page php + email help

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 12-28-2006, 01:37 PM THREAD STARTER               #1 (permalink)
tm
Senior Member
 
tm's Avatar
Join Date: Nov 2005
Location: on a oil rig just off Ireland
Posts: 1,408
tm is a glorious beacon of lighttm is a glorious beacon of lighttm is a glorious beacon of lighttm is a glorious beacon of lighttm is a glorious beacon of light
 



php + email help


I'm piping emails to a php script, and I want to forward them to another email (depending on variables yadda yadda)

Anyway, I can't get it to forward the exact contents of the email - and attachments are really important in what I'm doing.

Any help from anybody please?

FYI, this is how I'm finding the email

PHP Code:
// read from stdin
$fd fopen("php://stdin""r");
????: NamePros.com http://www.namepros.com/programming/274197-php-email-help.html
$email "";
while (!
feof($fd)) {
    
$email .= fread($fd1024);
}
fclose($fd); 
(email's defined as $email, including headers etc).

thanks to anybody who can help..

Colin

P.S. Just doing a simple mail() function (ie mail($user, $subject, $email); doesn't work)


Fixed it I think (had to say what the headers were ie content-type)
__________________
You design in photoshop, I code into valid XHTML/CSS.
Professional PSD, PNG or HTML to tableless XHTML/CSS designs.
For more info, send me a PM.
Last edited by tm; 12-28-2006 at 01:46 PM.
tm is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 10:16 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger