dm_mail_create_server Function

public function dm_mail_create_server(server, host, username, password, port, tls, timeout, connect_timeout, verify_ssl) result(rc)

Returns SMTP server type. Argument tls may be one of the following:

  • MAIL_PLAIN – No transport-layer security.
  • MAIL_SSL – Explicit SSL.
  • MAIL_TLS – Implicit TLS (StartTLS).

Parameter MAIL_PLAIN is used by default. The function returns E_INVALID on error.

Arguments

Type IntentOptional Attributes Name
type(mail_server_type), intent(out) :: server

Mail server type.

character(len=*), intent(in) :: host

SMTP server host.

character(len=*), intent(in) :: username

SMTP user name.

character(len=*), intent(in) :: password

SMTP password.

integer, intent(in), optional :: port

SMTP server port (or 0).

integer, intent(in), optional :: tls

SMTP transport-layer security.

integer, intent(in), optional :: timeout

cURL timeout in seconds.

integer, intent(in), optional :: connect_timeout

cURL connection timeout in seconds.

logical, intent(in), optional :: verify_ssl

Verify SSL cert.

Return Value integer


Calls

proc~~dm_mail_create_server~~CallsGraph proc~dm_mail_create_server dm_mail_create_server proc~dm_mail_url dm_mail_url proc~dm_mail_create_server->proc~dm_mail_url curl_url curl_url proc~dm_mail_url->curl_url curl_url_cleanup curl_url_cleanup proc~dm_mail_url->curl_url_cleanup curl_url_get curl_url_get proc~dm_mail_url->curl_url_get curl_url_set curl_url_set proc~dm_mail_url->curl_url_set interface~dm_itoa dm_itoa proc~dm_mail_url->interface~dm_itoa

Called by

proc~~dm_mail_create_server~~CalledByGraph proc~dm_mail_create_server dm_mail_create_server interface~dm_mail_create dm_mail_create interface~dm_mail_create->proc~dm_mail_create_server