[Prev] Thread [Next]  |  [Prev] Date [Next]

Re: [maildropl] use maildrop to get sender address Sam Varshavchik Sat Jan 01 14:00:08 2011

Marco Kammerer writes:


i want to trigger a php script with the variables of the sender and the receipient.


but i need a way how to get the sender.
what is the efficient way?

That depends on which sender you want. The envelope sender, or the contents of the From: header. If you want the From: header, use getaddr(). See maildropfilter man page. If you want the envelope sender, it depends on your mail server. Check the documentation for your mail server. If your mail server puts the envelope sender in an environment variable, use import. If your mail server puts the envelope sender in another header, use the same approach as the From: header.

Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
Courier-maildrop mailing list