Transport
Object Hierarchy:
Description:
[
CCode ( type_id =
"camel_transport_get_type ()" ) ]
public abstract class Transport :
Service,
Initable
Base class for mail sending backends.
Transport is the base class for backends that support sending mail messages. It is a
Service subclass and adds a single core virtual method:
send_to.
The recipient address list passed to send_to is the envelope recipient list,
which need not match the To/Cc headers in the message itself — this is how Bcc recipients are handled. Similarly, the from address is
the envelope sender.
Implementations are free to modify certain headers (e.g. remove headers they do not wish to transmit, adjust Content-Transfer-Encoding)
before sending, but must restore them afterwards. The actual message content is not changed.
Available implementations include SMTP (camel-smtp-provider) and sendmail (camel-sendmail-provider).
Content:
Creation methods:
Methods:
- public bool get_request_dsn ()
Returns whether should request Delivery Status Notification in the
"send_to" operation.
- 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.
- public virtual bool send_to_sync (MimeMessage message, Address from, Address recipients, out bool out_sent_message_saved, Cancellable? cancellable = null) throws Error
Sends the message to the given recipients, regardless of the contents
of message.
- public void set_request_dsn (bool request_dsn)
Sets whether should request Delivery Status Notification during the
"send_to" operation.
Inherited Members:
All known members inherited from class Camel.Service
All known members inherited from class GLib.Object
All known members inherited from interface GLib.Initable