Tuesday, January 2, 2007

Scorpio Man Does Not Return My Call

PHP: mail not arriving

Here is a gem that surely will come in handy!
How often do you send mail through php and do not know if they come from? And maybe never comes?

Well, the mail function of php allows to place parameter "-f".
What it does:
1) Set up an e-mail reply, if the mail reaches the recipient
2) is authenticated, the mail from real mail This domain

Syntax
mail ("chivioglio @ mysite. com "," Hello ", $ text, $ headers,"-fmailinterna miosito.it @ ");

The parameter"-f "must be placed at the end and joined to the internal mail.

In this way you can be sure to send the mail, and if it reaches the recipient, you are warned!

0 comments:

Post a Comment