Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

Smtp.SendDirect Method

Namespace: Rebex.Net
Assembly: Rebex.Smtp.dll (version 7.0.9147)

SendDirect(MailMessage)

Sends the message by submitting the message directly to the recipients' SMTP servers.

Declaration
public static SmtpRejectedRecipient[] SendDirect(MailMessage message)
Parameters
Type Name Description
MailMessage message

Message to be sent.

Returns
Type Description
SmtpRejectedRecipient[]

The list of recipients to which the mail message failed to deliver.

Remarks

Only supported on Windows platforms.

SendDirect(String, String, String, String)

Sends a mail message constructed from the specified parameters by submitting it directly to the recipients' SMTP servers.

Declaration
public static SmtpRejectedRecipient[] SendDirect(string from, string to, string subject, string body)
Parameters
Type Name Description
String from

Message sender.

String to

Comma-separated list of message recipients.

String subject

The subject of the message.

String body

The text body of the message.

Returns
Type Description
SmtpRejectedRecipient[]
Remarks

Only supported on Windows platforms.

SendDirect(MimeMessage)

Sends the message by submitting the message directly to the recipients' SMTP servers.

Declaration
public static SmtpRejectedRecipient[] SendDirect(MimeMessage message)
Parameters
Type Name Description
MimeMessage message

Message to be sent.

Returns
Type Description
SmtpRejectedRecipient[]

The list of recipients to which the mail message failed to deliver.

Remarks

Only supported on Windows platforms.

In This Article
  • SendDirect(MailMessage)
  • SendDirect(String, String, String, String)
  • SendDirect(MimeMessage)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies