Click or drag to resize
MailSendMail Method (String, MailAddress, MailAddressCollection, String, String, Boolean, MailPriority, MailAttachmentCollection, String, String)
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,
	MailAddressCollection tos,
	string title,
	string body,
	bool isHtml,
	MailPriority priority,
	MailAttachmentCollection attachments,
	string authEmail,
	string authPassword
)

Parameters

smtpAddress
Type: SystemString
Smtp address
from
Type: System.Net.MailMailAddress
From mail address
tos
Type: System.Net.MailMailAddressCollection

[Missing <param name="tos"/> documentation for "M:ToolBoox.Mail.SendMail(System.String,System.Net.Mail.MailAddress,System.Net.Mail.MailAddressCollection,System.String,System.String,System.Boolean,System.Net.Mail.MailPriority,ToolBoox.Mail.AttachmentCollection,System.String,System.String)"]

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)
authEmail
Type: SystemString

[Missing <param name="authEmail"/> documentation for "M:ToolBoox.Mail.SendMail(System.String,System.Net.Mail.MailAddress,System.Net.Mail.MailAddressCollection,System.String,System.String,System.Boolean,System.Net.Mail.MailPriority,ToolBoox.Mail.AttachmentCollection,System.String,System.String)"]

authPassword
Type: SystemString

[Missing <param name="authPassword"/> documentation for "M:ToolBoox.Mail.SendMail(System.String,System.Net.Mail.MailAddress,System.Net.Mail.MailAddressCollection,System.String,System.String,System.Boolean,System.Net.Mail.MailPriority,ToolBoox.Mail.AttachmentCollection,System.String,System.String)"]

Return Value

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