Hello Erel,
Again my thanks for getting back to me so quickly.
I understand what you have said but I wonder if clearing the SMTP object values is something the application developer should do? Of course having made that point I do not know how the SMTP object has been written so it could be difficult/impossible for the application developer to clear.
So here's my thinking,
I create, configure and dispatch a SMTP message.
I have a message event (MessageSent) triggered that accesses a SMTP Sender object.
But the Sender object has been cleared along the way, so it is of no use to me for post dispatch evaluation.
Surely if the sender has been cleared, the SMTP(sender) object copied to the MessageSent Event it is meaningless?
And this probably explains why it was nil at the outset of this discussion thread.
What I am trying to do
One of my apps sends many emails to various government departments. One of the email messages has a keyword in the subject that I use as a trigger to prevent further processing. I need to know that the message has been sent successfully and therefore need the MessageSent event for both the success status variable and to know to which message the success relates from the presence of a keyword in the subject. If the Sender.subject could be evaluated, I could trigger the code to prevent further activity from within the MessageSent event. In short I need the Sender.Subject and the success status flag to complete this task.
I value your thoughts.
regards and thanks
Colin