Return to index

smtp functions

string = email_add_header(email_content, header_name, header_value)

top

Add a new header to email content before the body.


string = email_base64_decode(encoded_text)

top

Decode base64 encoded text.


string = email_base64_encode(text)

top

Encode text using base64 encoding.


[]string = email_extract_addresses(text)

top

Extract email addresses from text using regex pattern matching.


[]map = email_get_attachments(email_content)

top

Extract attachment information from email content string.


string = email_get_body(email_content)

top

Extract email body from email content string (RFC compliant).


map = email_parse_headers(email_content)

top

Parse email headers from email content string (RFC compliant).


string = email_process_template(template, variables)

top

Process email template by replacing placeholders with variable values.


string = email_remove_header(email_content, header_name)

top

Remove a specific header from email content.


bool = email_validate(email)

top

Validate email address format.


bool = smtp_send(server, from, to, subject, body)

top

Send email via SMTP without authentication.


bool = smtp_send_with_attachments(server, from, to, subject, body, attachments)

top

Send email via SMTP with file attachments.


bool = smtp_send_with_auth(server, username, password, from, to, subject, body)

top

Send email via SMTP with authentication.