Generic function to create mail or server data type.
Creates new mail type and inserts passed values. The function return
E_INVALID
if given arguments are invalid or incomplete.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(mail_type), | intent(out) | :: |
Mail type. |
|||
type(person_type), | intent(in) | :: | from |
Mail sender. |
||
type(person_type), | intent(in) | :: | to(:) |
Mail recipients. |
||
character(len=*), | intent(in) | :: | subject |
Mail subject. |
||
character(len=*), | intent(in) | :: | message |
Mail message. |
||
type(person_type), | intent(in), | optional | :: | cc(:) |
Mail CC recipients. |
|
type(person_type), | intent(in), | optional | :: | bcc(:) |
Mail BCC recipients. |
Returns SMTP server type. Argument tls
may be one of the following:
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. |