2.) Is there an event when each recipient is being sent?
For example:
Local message with 2 TO address, 1 CC address and 1 BCC address (they can be a combination of local and remote domains).
TO:
Sam@xyz_domain.com;
Joe@domain_abc.com;
CC:
Ralph@xyz_domain.com;
BCC:
archive@qrt_domain.com;
We have a test script using oMessage in Sub OnDeliverMessage, conditionally for 1 specific recipient will add a unique html img element. However it seems OnDeliverMessage is well before sending individually to each receipient at a time because the the link is the same for everyone.
Is it possible using oMessage in something like OnDeliverMessage, or OnDeliveryStart or some other event to detect when each recipient is sent the message so we can append a unique html image src url containing the receipients email address as a path?
For example, when sending to:
Sam@xyz_domain.com append <img src="http://ourserver.com/Sam@xyz_domain.com/logo.png
Joe@domain_abc.com append <img src="http://ourserver.com/Joe@domain_abc.com/logo.png
Ralph@xyz_domain.com append <img src="http://ourserver.com/Ralph@xyz_domain.com/logo.png
Nothing to BCC address.
Notes:
For production will encode the email address to be sure it does not break URL rules.
Our web server will rewrite the URL from a URL/path to URL/query string example:
Code: Select all
http://ourserver.com/Sam@xyz_domain.com/logo.png
TO
http://ourserver.com/ourscript.php?v1=logo.png&v2=Sam@xyz_domain.com