Syntax 4: For MimeMessage object
Description
Resets the MimeMessage information.
Applies to
MimeMessage object in Objects and Controls
Syntax
|
1 |
mimemessage.Reset({ integer resettype}) |
|
Argument |
Description |
|---|---|
|
mimemessage |
A MimeMessage object identifying the email message in |
|
resettype (optional) |
Specifies the values of the reset type. Values 0 — (Default) Reset all the following types 1 — Reset Recipients 2 — Reset Ccs 3 — Reset Bccs 4 — Reset Attachments 5 — Reset LinkedResources 6 — Reset Sender |
Return value
Integer.
Returns 1 if it succeeds and -1 if it fails.
Examples
The following example resets the recipient.
|
1 2 3 |
lnv_SmtpClient.Message.AddRecipient("Tester1@gmail.com" ) lnv_SmtpClient.Message.AddRecipient("Tester2@gmail.com", "Tester2Name" ) lnv_SmtpClient.Message.Reset(1) |
The following example resets the attachment.
|
1 2 |
lnv_SmtpClient.Message.AddAttachment("test02.docx") lnv_SmtpClient.Message.Reset(4) |
The following example resets the recipient, Cc, Bcc, attachment,
linked resources and sender.
|
1 |
lnv_SmtpClient.Message.Reset(0) |
See also