Home |Contact Us | Buy Now| Add To Favorites
 

 
Sending mail with extra headers by pqr ghj
The additional_parameters parameter can be used to pass an additional parameter to the program configured to use when sending mail using the sendmail_path configuration setting. For example, this can be used to set the envelope sender address when using sendmail with the -f sendmail option. You may need to add the user that your web server runs as to your sendmail configuration to prevent a 'X-Warning' header from being added to the message when you set the envelope sender using this method.
The additional_parameters parameter can be used to pass an additional parameter to the program configured to use when sending mail using the sendmail_path configuration setting. For example, this can be used to set the envelope sender address when using sendmail with the -f sendmail option. You may need to add the user that your web server runs as to your sendmail configuration to prevent a 'X-Warning' header from being added to the message when you set the envelope sender using this method.
The additional_parameters parameter can be used to pass an additional parameter to the program configured to use when sending mail using the sendmail_path configuration setting. For example, this can be used to set the envelope sender address when using sendmail with the -f sendmail option. You may need to add the user that your web server runs as to your sendmail configuration to prevent a 'X-Warning' header from being added to the message when you set the envelope sender using this method.
2 Responses
 pqr ghj
Posted: Wed 10th Jan 2007
If this function is going to be used for e-mail validation purposes; Please bear in mind that MX records are not mandatory and that RFC974 clearly states: If no MX records exist for a given host, MTAs should interpret this as if there is one MX RR matching the host itself. (I.e. you should call gethostbyname() to see if the host has an A record.)
 pqr ghj
Posted: Wed 10th Jan 2007
If you need a numeric date in a specific format (e.g. 'yyyymmdd', 'yy:mm:dd',...) or some units of time interval before or after the current date (e.g. -1 week, +3 years,...), I encapsulated some task specific date processing into a PHP function named makedate().
Very handy; just call makedate($unit,$time,$mask) and get the specific numeric date you need.
You're welcome to freely download the makedate() source code at
login to leave response