Click or drag to resize

EMailSilentSendMessage Method

Invia un messaggio, con il programma di posta predefinito ed utilizzando l'account predefinito di posta, se ne esiste uno. Non visualizza alcune finestra all'utente.

Namespace:  QsInformatica.Utils
Assembly:  QsInformatica.Utils (in QsInformatica.Utils.dll) Version: 24.6.0.0 (24.6.0.0)
Syntax
public static bool SilentSendMessage(
	string Subject,
	string ToMailAddress,
	string ToMailName,
	string Body,
	string AttachFile,
	string AttachName
)

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