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.
Type | Intent | Optional | 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. |