## CamelTransport CamelTransport |

## Synopsis

                        CamelTransport;
    gboolean            camel_transport_send_to             (CamelTransport *transport,
                                                             CamelMimeMessage *message,
                                                             CamelAddress *from,
                                                             CamelAddress *recipients,
                                                             GError **error);
    enum                CamelTransportLock;
    void                camel_transport_lock                (CamelTransport *transport,
                                                             CamelTransportLock lock);
    void                camel_transport_unlock              (CamelTransport *transport,
                                                             CamelTransportLock lock);

## Object Hierarchy

      GObject
       +----CamelObject
             +----CamelService
                   +----CamelTransport

## Description

## Details

### CamelTransport

    typedef struct _CamelTransport CamelTransport;

### camel_transport_send_to ()

    gboolean            camel_transport_send_to             (CamelTransport *transport,
                                                             CamelMimeMessage *message,
                                                             CamelAddress *from,
                                                             CamelAddress *recipients,
                                                             GError **error);

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.

Return `TRUE` on success or `FALSE` on fail

`transport` : | a CamelTransport object
`message` : | a CamelMimeMessage to send
`from` : | a CamelAddress to send from
`recipients` : | a CamelAddress containing all recipients
`error` : | return location for a GError, or `NULL`
Returns : |

### enum CamelTransportLock

    typedef enum {
    	CAMEL_TRANSPORT_SEND_LOCK
    } CamelTransportLock;

Since 2.32

### camel_transport_lock ()

    void                camel_transport_lock                (CamelTransport *transport,
                                                             CamelTransportLock lock);

Locks transport's lock. Unlock it with `camel_transport_unlock()`.

`transport` : | a CamelTransport
`lock` : | lock type to lock

Since 2.32

### camel_transport_unlock ()

    void                camel_transport_unlock              (CamelTransport *transport,
                                                             CamelTransportLock lock);

Unlocks transport's lock, previously locked with `camel_transport_lock()`.

`transport` : | a CamelTransport
`lock` : | lock type to unlock

Since 2.32