PHP mail headers

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dwfait
Forum Contributor
Posts: 113
Joined: Sun Aug 01, 2004 10:36 pm

PHP mail headers

Post by dwfait »

I know how to send a mail, but what headers are required to:

set the reply address and
set the from address?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Reply-To: blah\r\n
Return-Path: blah\r\n
From: blah\r\n
dwfait
Forum Contributor
Posts: 113
Joined: Sun Aug 01, 2004 10:36 pm

Post by dwfait »

Thanks. Also, how would i read mail from a mail account?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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...
Post Reply