Hey,
If you have a catch-all pipe set up for @domain.com for all emails to go to a PHP script, what is the trusted method of detecting which address the email was sent to?
For example, generally the "To:" header does contain "user1@domain.com" - however, problems occur when "user1@domain.com" is in the BCC field.
Additionally, "Envelope-To:" does not always provide you the email. Is there a setting that can be configured for the email client to add a header with the email address this specific email was meant for?
The other reason its crucial to have this is because additionally a To: could have 5 recipients, however the PHP script will be dealing with 5 separate emails.
What general practice do people use?
Thanks!
James