Click or drag to resize
MailSendMail Method (String, MailAddress, MailAddress, String, String, Boolean, MailPriority, MailAttachmentCollection)
Send an email via SMTP

Namespace: ToolBoox
Assembly: ToolBoox (in ToolBoox.dll) Version: 1.1.0.0 (1.1.0.0)
Syntax
public static bool SendMail(
	string smtpAddress,
	MailAddress from,
	MailAddress to,
	string title,
	string body,
	bool isHtml,
	MailPriority priority,
	MailAttachmentCollection attachments
)

Parameters

smtpAddress
Type: SystemString
Smtp address
from
Type: System.Net.MailMailAddress
From mail address
to
Type: System.Net.MailMailAddress
To mail address
title
Type: SystemString
Subject of the email
body
Type: SystemString
Body of mail's message
isHtml
Type: SystemBoolean
Format of the body
priority
Type: System.Net.MailMailPriority
Priority of the email
attachments
Type: ToolBooxMailAttachmentCollection
Collection of attachments (null for none)

Return Value

Type: Boolean
True if messagge sended successfully; false otherwise
See Also