Type of proxy
Value to return from onSend delegate in order to abort a request
Value to return from onSend/onReceive delegates in order to pause a request
Setter for the recipient email addresses.
Performs the request as configured.
Set the user name, password and optionally domain for authentication purposes.
Set the user name and password for proxy authentication.
Stop and invalidate this instance.
Set timeout for connecting.
Set timeout for activity on connection.
DNS lookup timeout.
True if the instance is stopped. A stopped instance is not usable.
Set the local outgoing port to use.
Set the local outgoing port range to use. This can be used together with the localPort property.
Setter for the sender's email address.
Sets the message body text.
The network interface to use in form of the IP of the interface.
The event handler that gets called to inform of upload/download progress.
The event handler that receives incoming data. Be sure to copy the incoming ubyte[] since it is not guaranteed to be valid after the callback returns.
The event handler that gets called when data is needed for sending. The length of the void[] specifies the maximum number of bytes that can be sent.
Set maximum time an operation is allowed to take. This includes dns resolution, connecting, data transfer, etc.
Proxy See: _proxy
Proxy port See: _proxy_port
Proxy type See: _proxy_type
Set the tcp no-delay socket option on or off. See: nodelay
The URL to specify the location of the resource.
Set verbose. This will print request information to stderr.
Value to return from onSend/onReceive delegates in order to pause a request
Value to return from onSend delegate in order to abort a request
The curl handle used by this connection.
True if the instance is stopped. A stopped instance is not usable.
Stop and invalidate this instance.
Set verbose. This will print request information to stderr.
Set timeout for activity on connection.
Set maximum time an operation is allowed to take. This includes dns resolution, connecting, data transfer, etc.
Set timeout for connecting.
Proxy See: _proxy
Proxy port See: _proxy_port
Type of proxy
Proxy type See: _proxy_type
DNS lookup timeout.
The network interface to use in form of the IP of the interface.
Set the local outgoing port to use.
Set the no proxy flag for the specified host names.
Set the local outgoing port range to use. This can be used together with the localPort property.
Set the tcp no-delay socket option on or off. See: nodelay
Sets whether SSL peer certificates should be verified. See: verifypeer
Sets whether the host within an SSL certificate should be verified. See: verifypeer
Set the user name, password and optionally domain for authentication purposes.
Set the user name and password for proxy authentication.
The event handler that gets called when data is needed for sending. The length of the void[] specifies the maximum number of bytes that can be sent.
The event handler that receives incoming data. Be sure to copy the incoming ubyte[] since it is not guaranteed to be valid after the callback returns.
The event handler that gets called to inform of upload/download progress.
import std.net.curl; // Send an email with SMTPS auto smtp = SMTP("smtps://smtp.gmail.com"); smtp.setAuthentication("from.addr@gmail.com", "password"); smtp.mailTo = ["<to.addr@gmail.com>"]; smtp.mailFrom = "<from.addr@gmail.com>"; smtp.message = "Example Message"; smtp.perform();
Basic SMTP protocol support.