EMail.SendMessage Method

QsInformatica.Utils

EMailSendMessage Method

Mostra all'utente la finestra di dialogo per inviare un messaggio, con il programma di posta predefinito ed utilizzando l'account predefinito di posta, se ne esiste uno.

Namespace:  QsInformatica.Utils
Assembly:  QsInformatica.Utils (in QsInformatica.Utils.dll) Version: 22.4.2.0 (22.4.2.0)
Syntax
public static bool SendMessage(
	string Subject,
	string ToMailAddress,
	string ToMailName,
	string Body,
	string AttachFile,
	string AttachName
)
Public Shared Function SendMessage ( 
	Subject As String,
	ToMailAddress As String,
	ToMailName As String,
	Body As String,
	AttachFile As String,
	AttachName As String
) As Boolean
public:
static bool SendMessage(
	String^ Subject, 
	String^ ToMailAddress, 
	String^ ToMailName, 
	String^ Body, 
	String^ AttachFile, 
	String^ AttachName
)
static member SendMessage : 
        Subject : string * 
        ToMailAddress : string * 
        ToMailName : string * 
        Body : string * 
        AttachFile : string * 
        AttachName : string -> bool 

Parameters

Subject
Type: SystemString
Oggetto del messaggio (può essere null).
ToMailAddress
Type: SystemString
Indirizzo e-mail del destinatario (può essere null).
ToMailName
Type: SystemString
Nome visualizzato del destinatario (può essere null). Viene ignorato se ToMailAddress non è presente.
Body
Type: SystemString
Corpo del messaggio (può essere null).
AttachFile
Type: SystemString
Percorso e nome del file da allegare al messaggio (può essere null).
AttachName
Type: SystemString
Nome del file che verrà utilizzato per l'allegato (può essere null). Viene ignorato se AttachFile non è presente.

Return Value

Type: Boolean
Restituisce True se l'operazione avviene con successo.
Remarks
Per mostrare all'utente una finestra di dialogo completamente vuota, chiamare il metodo nel seguente modo: EMail.SendMessage("", "", "", "", "", "")
See Also