dm_mail_create Interface

public interface dm_mail_create

Generic function to create mail or server data type.

Calls

interface~~dm_mail_create~~CallsGraph interface~dm_mail_create dm_mail_create proc~dm_mail_create_mail dm_mail_create_mail interface~dm_mail_create->proc~dm_mail_create_mail proc~dm_mail_create_server dm_mail_create_server interface~dm_mail_create->proc~dm_mail_create_server proc~dm_person_has_mail dm_person_has_mail proc~dm_mail_create_mail->proc~dm_person_has_mail 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

Module Procedures

public function dm_mail_create_mail(mail, from, to, subject, message, cc, bcc) result(rc)

Creates new mail type and inserts passed values. The function return E_INVALID if given arguments are invalid or incomplete.

Arguments

Type IntentOptional Attributes Name
type(mail_type), intent(out) :: mail

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.

Return Value integer

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:

Read more…

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