send_to


Description:

[ Version ( since = "3.0" ) ]
public async bool send_to (MimeMessage message, Address from, Address recipients, int io_priority, Cancellable? cancellable = null, out bool out_sent_message_saved) throws Error

Sends the message asynchronously to the given recipients, regardless of the contents of message.

If the message contains a "Bcc" header, the transport is responsible for stripping it.

When the operation is finished, callback will be called. You can then call send_to.end to get the result of the operation.

Parameters:

this

a Transport

message

a MimeMessage to send

from

a Address to send from

recipients

a Address containing all recipients

io_priority

the I/O priority of the request

cancellable

optional Cancellable object, or null

callback

a TaskReadyCallback to call when the request is satisfied

user_data

data to pass to the callback function