EMail.SilentSendMessage Method

QsInformatica.Utils

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: 22.4.2.0 (22.4.2.0)
Syntax
public static bool SilentSendMessage(
	string Subject,
	string ToMailAddress,
	string ToMailName,
	string Body,
	string AttachFile,
	string AttachName
)
Public Shared Function SilentSendMessage ( 
	Subject As String,
	ToMailAddress As String,
	ToMailName As String,
	Body As String,
	AttachFile As String,
	AttachName As String
) As Boolean
public:
static bool SilentSendMessage(
	String^ Subject, 
	String^ ToMailAddress, 
	String^ ToMailName, 
	String^ Body, 
	String^ AttachFile, 
	String^ AttachName
)
static member SilentSendMessage : 
        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