smtp functions
string = email_add_header(email_content, header_name, header_value)
Add a new header to email content before the body.
string = email_base64_decode(encoded_text)
Decode base64 encoded text.
string = email_base64_encode(text)
Encode text using base64 encoding.
[]string = email_extract_addresses(text)
Extract email addresses from text using regex pattern matching.
[]map = email_get_attachments(email_content)
Extract attachment information from email content string.
string = email_get_body(email_content)
Extract email body from email content string (RFC compliant).
map = email_parse_headers(email_content)
Parse email headers from email content string (RFC compliant).
string = email_process_template(template, variables)
Process email template by replacing placeholders with variable values.
string = email_remove_header(email_content, header_name)
Remove a specific header from email content.
bool = email_validate(email)
Validate email address format.
bool = smtp_send(server, from, to, subject, body)
Send email via SMTP without authentication.
bool = smtp_send_with_attachments(server, from, to, subject, body, attachments)
Send email via SMTP with file attachments.
bool = smtp_send_with_auth(server, username, password, from, to, subject, body)
Send email via SMTP with authentication.