"Xcomponent:
"component:
extern "C" NS_EXPORT nsresult NSRegisterSelf(nsISupports* aServMgr, const char* path){	nsresult rv = NS_OK;	nsresult finalResult = NS_OK;	nsCOMPtr<nsIServiceManager> servMgr(do_QueryInterface(aServMgr, &rv));	if (NS_FAILED(rv)) return rv;	NS_WITH_SERVICE1(nsIComponentManager, compMgr, aServMgr, kComponentManagerCID, &rv);	if (NS_FAILED(rv)) return rv;	// register the message compose factory	rv = compMgr->RegisterComponent(kCSmtpServiceCID,										"SMTP Service", nsnull,										path, PR_TRUE, PR_TRUE);	if (NS_FAILED(rv)) finalResult = rv;		rv = compMgr->RegisterComponent(kCSmtpUrlCID,										"Smtp url",										nsnull,										path, PR_TRUE, PR_TRUE);	if (NS_FAILED(rv)) finalResult = rv;	rv = compMgr->RegisterComponent(kCMsgComposeServiceCID,										"Message Compose Service",										"component://netscape/messengercompose",										path, PR_TRUE, PR_TRUE);	if (NS_FAILED(rv)) finalResult = rv;	rv = compMgr->RegisterComponent(kCMsgComposeCID,										"Message Compose",										"component://netscape/messengercompose/compose",										path, PR_TRUE, PR_TRUE);	if (NS_FAILED(rv)) finalResult = rv;	rv = compMgr->RegisterComponent(kCMsgCompFieldsCID,										"Message Compose Fields",										"component://netscape/messengercompose/composefields",										path, PR_TRUE, PR_TRUE);	if (NS_FAILED(rv)) finalResult = rv;	rv = compMgr->RegisterComponent(kCMsgSendCID,										"Message Compose Send",										"component://netscape/messengercompose/send",										path, PR_TRUE, PR_TRUE);	if (NS_FAILED(rv)) finalResult = rv;    rv = compMgr->RegisterComponent(kCMsgSendLaterCID,										"Message Compose Send Later",										"Xcomponent://netscape/messengercompose/sendlater",										path, PR_TRUE, PR_TRUE);	if (NS_FAILED(rv)) finalResult = rv;    rv = compMgr->RegisterComponent(kCSmtpServiceCID,										"Message Compose SMTP Service",										"Xcomponent://netscape/messengercompose/smtp",										path, PR_TRUE, PR_TRUE);	if (NS_FAILED(rv)) finalResult = rv;	rv = compMgr->RegisterComponent(kCSmtpServiceCID,                                      "SMTP Protocol Handler",                                    NS_NETWORK_PROTOCOL_PROGID_PREFIX "mailto",                                    path, PR_TRUE, PR_TRUE);	if (NS_FAILED(rv)) finalResult = rv;      rv = compMgr->RegisterComponent(kCMsgQuoteCID,										"Message Quoting",										"Xcomponent://netscape/messengercompose/quoting",										path, PR_TRUE, PR_TRUE);	if (NS_FAILED(rv)) finalResult = rv;  // For Drafts...  rv = compMgr->RegisterComponent(kMsgDraftCID,										"Message Drafts",										"Xcomponent://netscape/messengercompose/drafts",										path, PR_TRUE, PR_TRUE);	if (NS_FAILED(rv)) finalResult = rv;  return finalResult;}