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.

nsIMsgSend

IID:435AD670-33E0-4759-96C5-772B6B62276B
Inherits From:nsISupports

This interface is implemented by the following components:


Constants

nsMsgDeliverMode nsMsgDeliverNow = 0
nsMsgDeliverMode nsMsgQueueForLater = 1
nsMsgDeliverMode nsMsgSave = 2
nsMsgDeliverMode nsMsgSaveAs = 3
nsMsgDeliverMode nsMsgSaveAsDraft = 4
nsMsgDeliverMode nsMsgSaveAsTemplate = 5
nsMsgDeliverMode nsMsgSendUnsent = 6

Properties

readonly PRUint32 attachmentCount

nsIMsgComposeSecure cryptoclosure

readonly nsMsgDeliverMode deliveryMode

nsMsgKey messageKey

PRUint32 pendingAttachmentCount

nsIRequest runningRequest

readonly nsIMsgSendReport sendReport

nsresult status


Methods

void abort ( ) void BeginCryptoEncapsulation ( ) [noscript] void createAndSendMessage ( nsIEditor editor , nsIMsgIdentity userIdentity , char* accountKey , nsIMsgCompFields fields , PRBool digest_p , PRBool dont_deliver_p , nsMsgDeliverMode mode , nsIMsgDBHdr msgToReplace , char* attachment1_type , char* attachment1_body , PRUint32 attachment1_body_length , nsMsgAttachmentData* attachments , nsMsgAttachedFile* preloaded_attachments , voidPtr* relatedPart , nsIDOMWindowInternal parentWindow , nsIMsgProgress progress , nsIMsgSendListener listener , char* password , AUTF8String originalMsgURI , MSG_ComposeType type ) [noscript] void deliverAsMailExit ( nsIURI url , nsresult exitCode ) [noscript] void deliverAsNewsExit ( nsIURI url , nsresult exitCode ) nsresult fail ( nsresult failure_code , PRUnichar* error_msg ) [noscript] void gatherMimeAttachments ( ) [noscript] nsMsgAttachmentHandler* getAttachmentHandlers ( ) [noscript] nsIPrompt getDefaultPrompt ( ) void getMessageId ( out ACString messageID ) nsIOutputStream getOutputStream ( ) [noscript] PRBool getProcessAttachmentsSynchronously ( ) [noscript] nsIMsgProgress getProgress ( ) [noscript] void notifyListenerOnProgress ( char* msgID , PRUint32 progress , PRUint32 progressMax ) [noscript] void notifyListenerOnProgressCopy ( PRUint32 progress , PRUint32 progressMax ) [noscript] void notifyListenerOnStartCopy ( ) [noscript] void notifyListenerOnStartSending ( char* msgID , PRUint32 msgSize ) [noscript] void notifyListenerOnStatus ( char* msgID , PRUnichar* msg ) [noscript] void notifyListenerOnStopCopy ( nsresult status ) [noscript] void notifyListenerOnStopSending ( char* msgID , nsresult status , PRUnichar* msg , nsIFile returnFile ) [noscript] void sendDeliveryCallback ( nsIURI url , PRBool inIsNewsDelivery , nsresult exitCode ) void sendMessageFile ( nsIMsgIdentity userIdentity , char* accountKey , nsIMsgCompFields fields , nsIFile sendIFile , PRBool deleteSendFileOnCompletion , PRBool digest_p , nsMsgDeliverMode mode , nsIMsgDBHdr msgToReplace , nsIMsgSendListener listener , nsIMsgStatusFeedback statusFeedback , char* password ) void setGUINotificationState ( PRBool enableFlag )

void abort ( )


void BeginCryptoEncapsulation ( )


void createAndSendMessage ( nsIEditor editor , nsIMsgIdentity userIdentity , char* accountKey , nsIMsgCompFields fields , PRBool digest_p , PRBool dont_deliver_p , nsMsgDeliverMode mode , nsIMsgDBHdr msgToReplace , char* attachment1_type , char* attachment1_body , PRUint32 attachment1_body_length , nsMsgAttachmentData* attachments , nsMsgAttachedFile* preloaded_attachments , voidPtr* relatedPart , nsIDOMWindowInternal parentWindow , nsIMsgProgress progress , nsIMsgSendListener listener , char* password , AUTF8String originalMsgURI , MSG_ComposeType type )

Arguments:
editor
userIdentity
accountKey
fields
digest_p
dont_deliver_p
mode
msgToReplace
attachment1_type
attachment1_body
attachment1_body_length
attachments
preloaded_attachments
relatedPart
parentWindow
progress
listener
password
originalMsgURI
type

void deliverAsMailExit ( nsIURI url , nsresult exitCode )

Arguments:
url
exitCode

void deliverAsNewsExit ( nsIURI url , nsresult exitCode )

Arguments:
url
exitCode

nsresult fail ( nsresult failure_code , PRUnichar* error_msg )

Arguments:
failure_code
error_msg

void gatherMimeAttachments ( )


nsMsgAttachmentHandler* getAttachmentHandlers ( )


nsIPrompt getDefaultPrompt ( )


void getMessageId ( out ACString messageID )

Arguments:
messageID

nsIOutputStream getOutputStream ( )


PRBool getProcessAttachmentsSynchronously ( )


nsIMsgProgress getProgress ( )


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

Arguments:
msgID
progress
progressMax

void notifyListenerOnProgressCopy ( PRUint32 progress , PRUint32 progressMax )

Arguments:
progress
progressMax

void notifyListenerOnStartCopy ( )


void notifyListenerOnStartSending ( char* msgID , PRUint32 msgSize )

Arguments:
msgID
msgSize

void notifyListenerOnStatus ( char* msgID , PRUnichar* msg )

Arguments:
msgID
msg

void notifyListenerOnStopCopy ( nsresult status )

Arguments:
status

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

Arguments:
msgID
status
msg
returnFile

void sendDeliveryCallback ( nsIURI url , PRBool inIsNewsDelivery , nsresult exitCode )

Arguments:
url
inIsNewsDelivery
exitCode

void sendMessageFile ( nsIMsgIdentity userIdentity , char* accountKey , nsIMsgCompFields fields , nsIFile sendIFile , PRBool deleteSendFileOnCompletion , PRBool digest_p , nsMsgDeliverMode mode , nsIMsgDBHdr msgToReplace , nsIMsgSendListener listener , nsIMsgStatusFeedback statusFeedback , char* password )

Arguments:
userIdentity
accountKey
fields
sendIFile
deleteSendFileOnCompletion
digest_p
mode
msgToReplace
listener
statusFeedback
password

void setGUINotificationState ( PRBool enableFlag )

Arguments:
enableFlag

References

This interface is the type of the following properties:

nsIMsgCompose.messageSend

Reference documentation is generated from Mozilla's source.