Page 1 of 1

PHP mail headers

Posted: Thu Aug 12, 2004 11:02 am
by dwfait
I know how to send a mail, but what headers are required to:

set the reply address and
set the from address?

Posted: Thu Aug 12, 2004 11:03 am
by feyd
Reply-To: blah\r\n
Return-Path: blah\r\n
From: blah\r\n

Posted: Thu Aug 12, 2004 11:44 am
by dwfait
Thanks. Also, how would i read mail from a mail account?

Posted: Thu Aug 12, 2004 11:46 am
by feyd
depends on the type of mail account.. web, you pretty much need [php_man]curl[/php_man], there's [php_man]imap[/php_man] extension, which has IMAP, POP and NNTP services...