Camel.Transport¶
| Subclasses: | None | 
|---|
Methods¶
| Inherited: | Camel.Service (33), Camel.Object (4), GObject.Object (37), Gio.Initable (2) | 
|---|---|
| Structs: | GObject.ObjectClass (5) | 
| send_to(message, from_, recipients, io_priority, cancellable, callback, *user_data) | |
| send_to_finish(result) | |
| send_to_sync(message, from_, recipients, cancellable) | 
Virtual Methods¶
| Inherited: | Camel.Service (5), Camel.Object (2), GObject.Object (7), Gio.Initable (1) | 
|---|
| do_send_to_sync(message, from_, recipients, cancellable) | 
Properties¶
| Inherited: | Camel.Service (8), Camel.Object (1) | 
|---|
Signals¶
| Inherited: | GObject.Object (1) | 
|---|
Class Details¶
- 
class Camel.Transport(**kwargs)¶
- Bases: - Camel.Service- Abstract: - Yes - Structure: - Camel.TransportClass- 
send_to(message, from_, recipients, io_priority, cancellable, callback, *user_data)¶
- Parameters: - message (Camel.MimeMessage) – aCamel.MimeMessageto send
- from (Camel.Address) – aCamel.Addressto send from
- recipients (Camel.Address) – aCamel.Addresscontaining all recipients
- io_priority (int) – the I/O priority of the request
- cancellable (Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
- callback (Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied
- user_data (objectorNone) – data to pass to the callback function
 - 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 - Camel.Transport.send_to_finish() to get the result of the operation.- New in version 3.0. 
- message (
 - 
send_to_finish(result)¶
- Parameters: - result ( - Gio.AsyncResult) – a- Gio.AsyncResult- Raises: - GLib.Error- Returns: - Trueon success,- Falseon error- out_sent_message_saved: - set to - True, if the sent message was also saved- Return type: - ( - bool, out_sent_message_saved:- bool)- Finishes the operation started with - Camel.Transport.send_to().- New in version 3.0. 
 - 
send_to_sync(message, from_, recipients, cancellable)¶
- Parameters: - message (Camel.MimeMessage) – aCamel.MimeMessageto send
- from (Camel.Address) – aCamel.Addressto send from
- recipients (Camel.Address) – aCamel.Addresscontaining all recipients
- cancellable (Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
 - Raises: - Returns: - Trueon success or- Falseon error- out_sent_message_saved: - set to - True, if the sent message was also saved- Return type: - Sends the message to the given recipients, regardless of the contents of message. If the message contains a “Bcc” header, the transport is responsible for stripping it. - New in version 3.0. 
- message (
 - 
do_send_to_sync(message, from_, recipients, cancellable) virtual¶
- Parameters: - message (Camel.MimeMessage) – aCamel.MimeMessageto send
- from (Camel.Address) – aCamel.Addressto send from
- recipients (Camel.Address) – aCamel.Addresscontaining all recipients
- cancellable (Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
 - Returns: - Trueon success or- Falseon error- out_sent_message_saved: - set to - True, if the sent message was also saved- Return type: - Sends the message to the given recipients, regardless of the contents of message. If the message contains a “Bcc” header, the transport is responsible for stripping it. - New in version 3.0. 
- message (
 
-