Hello All,
My question revolves around the Sender object which I believe should be trappable in the "MessageSent" event. To be quite clear on this I am not talking about the sender (email address) of the message, but I am referring to the sender object representing the object that sent the message.
The Wiki says...
My testing shows that the sender (as SMTP) object is always null. This arises even when my originating SMTP object is still in global scope (please don't suggest using the global object). I am hoping that the quoted Wiki entry is true for all objects but I seem unable to trap the SMTP object.
Is this correct that Sender is not available in the MessageSent event?
As always, I thank you for your help and support.
regards
SeaCay
My question revolves around the Sender object which I believe should be trappable in the "MessageSent" event. To be quite clear on this I am not talking about the sender (email address) of the message, but I am referring to the sender object representing the object that sent the message.
The Wiki says...
Sender As Object
Returns the object that raised the event.
It is only valid while inside the event sub.
Example:
Sub Button_ClickEnd Sub
Dim b As Button
b = Sender
b.Text = "I've been clicked"
My testing shows that the sender (as SMTP) object is always null. This arises even when my originating SMTP object is still in global scope (please don't suggest using the global object). I am hoping that the quoted Wiki entry is true for all objects but I seem unable to trap the SMTP object.
Is this correct that Sender is not available in the MessageSent event?
As always, I thank you for your help and support.
regards
SeaCay