WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIMsgSendListener

IID:D34DC178-5E78-45E8-8658-A8F52D9CCF5F
Inherits From:nsISupports

This interface is implemented by the following components:


Methods

void onGetDraftFolderURI ( char* folderURI ) void onProgress ( char* msgID , PRUint32 progress , PRUint32 progressMax ) void onSendNotPerformed ( char* msgID , nsresult status ) void onStartSending ( char* msgID , PRUint32 msgSize ) void onStatus ( char* msgID , PRUnichar* msg ) void onStopSending ( char* msgID , nsresult status , PRUnichar* msg , nsIFile returnFile )

void onGetDraftFolderURI ( char* folderURI )

Notify the observer with the folder uri before the draft is copied.

Arguments:
folderURI

void onProgress ( char* msgID , PRUint32 progress , PRUint32 progressMax )

Notify the observer that progress as occurred for the message send

Arguments:
msgID
progress
progressMax

void onSendNotPerformed ( char* msgID , nsresult status )

Notify the observer when the user aborts the send without actually doing the send eg : by closing the compose window without Send.

Arguments:
msgID
status

void onStartSending ( char* msgID , PRUint32 msgSize )

Notify the observer that the message has started to be delivered. This method is called only once, at the beginning of a message send operation.

Arguments:
msgID
msgSize
Returns:
The return value is currently ignored. In the future it may be used to cancel the URL load..

void onStatus ( char* msgID , PRUnichar* msg )

Notify the observer with a status message for the message send

Arguments:
msgID
msg

void onStopSending ( char* msgID , nsresult status , PRUnichar* msg , nsIFile returnFile )

Notify the observer that the message has been sent. This method is called once when the networking library has finished processing the message.

This method is called regardless of whether the the operation was successful. msgID The message id for the mail message status Status code for the message send. msg A text string describing the error. returnFileSpec The returned file spec for save to file operations.

Arguments:
msgID
status
msg
returnFile

References

This interface is the type of the following properties:

nsIMsgComposeParams.sendListener

This interface is passed as an argument to the following methods:

nsIMsgCompose.addMsgSendListener, nsIMsgCompose.removeMsgSendListener, nsIMsgSend.createAndSendMessage, nsIMsgSend.sendMessageFile

Reference documentation is generated from Mozilla's source.