dt_send_email¶
Shared DT email function to be used throughout the DT system. It provides asynchonous mail delivery that does not halt page load.
Example:
dt_send_email(
'recipients@email.com',
'subject line',
'content of the message'
);
« More »
dt_send_email_about_post¶
Shared DT email function, similar to dt_send_email, but intended for use for
emails that are related to a particular contact record.
We want to keep the subject line for all updates related to a particular
contact the same. For contact 43, the subject line should always be the
same:
Subject: Update on contact43
That way, Gmail.com will group these emails in a single conversation
view. Ideally, we would use the `Message-ID` and `References` email
headers to make this more robust and more portable in other email
clients, but that would make this code more complex, as we probably
would have to store the Message-IDs for previous sent emails.
This function also appends a link in the email body to the contact record.
« More »