SSimple Mail Service
All ideas

Add functionality for sensitive tag

You do not always have the luxury of using the API to sent e-mails, that's where the SMTP credentials come in. While the API allows overrides on retention, click tracking, this is currently (seemingly) impossible to control when sending mails through SMTP. There are a few solutions to this, eg. to turn off clicktracking on some URLs, usually on things like password reset links, SendGrid employs the method of adding "clicktracking=off" to the anchor-tag. Additional benefit is this gives fine grained control over it, instead of just disabling it for all links in the e-mail. A similar method can be employeed for the other headers, or even for portions of the e-mail. For example, instead of completely disabling message data, one could add "sensitive=on" to certain tags, or even flag whole portions of the e-mail using something like ..., ...., or ..., etcetera. Same goes for all other options: we could agree that if an e-mail starts with (or contains) something like: SMS would honor these settings. Obviously, SMS would then proceed to strip out this data (or even the or clicktracking="off"), so the eventual client recieving the e-mail is none the wiser. Even if an e-mail is sent using Plain Text (so not HTML), -blocks will be respected and stripped accordingly.

Activity · 5
Lennard Fonteijn
changed description "You do not always have the luxury of using the API to sent e-mails, that's where the SMTP credentials come in. While the API allows overrides on retention, click tracking, this is currently (seemingly) impossible to control when sending mails through SMTP. There are a few solutions to this, eg. to turn off clicktracking on some URLs (usually on URLs, usually on things like password reset links, SendGrid employs the method of adding "clicktracking=off" to the anchor-tag. Additional benefit is this gives fine grained control over it, instead of just disabling it for all links in the e-mail. A similar method can be employeed for the other headers, or even for portions of the e-mail. For example, instead of completely disabling message data, one could add "sensitive=on" to certain tags, or even flag whole portions of the e-mail using something like <sensitive>...</senstivie>, <sensitive>...</sensitive>, <sms sensitive="on">....</sms>, or <sms clicktracking="off">...</sms>, etcetera. Same goes for all other options: we could agree that if an e-mail starts with (or contains) something like: <sms> <option key="retentionmetadata" value="1" /> <option key="retentiondata" value="0" /> </sms> SMS would honor these settings. Obviously, SMS would then proceed to strip out this data (or even the <sensitive> or clicktracking="off"), so the eventual client recieving the e-mail is none the wiser. Even if an e-mail is sent using Plain Text (so not HTML), <sms>-blocks will be respected and stripped accordingly. "
· 1y
mark
mark1y
Hi Lennard, Thanks for the suggestion. Just to clarify: Retention settings are account-wide and unrelated to click/open tracking: https://docs.simplemailservice.eu/#/?id=retention When using our Send API you can influence the click and open tracking behavior individually per message using the seseu-track-opens and seseu-track-clicks headers. For additional information: https://docs.simplemailservice.eu/#/?id=enable-or-disable-click-tracking-for-individual-emails Within messages you can disable click tracking specifically for certain links, like password reset links, by adding the data-as-no-track attribute to a tag. For additional information: https://docs.simplemailservice.eu/#/?id=example I really like your idea's in regards to the tag and the per message retention settings.
Lennard Fonteijn
Lennard Fonteijn1y
Hello @mark, I see. This is not what the Account Settings is currently saying though! Metadata: "You can also set the metadata retention period for each message separately by setting the appropriate email headers." Data: "You can also set the data retention period for each message separately by setting the appropriate email headers." And it makes sense to be able to control these per e-mail, rather than on a domain or account level. So based on what the above thing said, I created this feedback item to expose the same functionality to the SMTP.
mark
mark1y
You are correct, I was totally confused. You can configure meta-data and message-data retention for individual emails with the seseu-metadata-retention and seseu-data-retention headers. More information: https://docs.simplemailservice.eu/#/?id=override-retention-for-individual-emails These headers can also be set using SMTP. For example PHP: $mail->addCustomHeader('seseu-track-clicks', 'false'); or Python: msg.add_header("seseu-data-retention", "0").
mark
mark1y
We've added examples for PHP and Python. PHP: https://docs.simplemailservice.eu/#/?id=php-example-with-smtp Python: https://docs.simplemailservice.eu/#/?id=python-example-with-smtp To clarify: If you do not set the custom headers for meta-data and data retention, the settings in the account settings will be used for all e-mails. In other words: You can use the custom headers to deviate from the global settings.
Lennard Fonteijn
Lennard Fonteijn1y
I honestly forgot that mails can have headers too (From, To, etc) when sent through SMTP. That basically strips down this feeback to: Potentially having a tag Support for this in plain text mails (click tracking, sensitive, etc), where SeS will honor them, but strip them out for you too.
Marino Dekker
changed title "E-mail header overrides with SMTP "
· 1y
Marino Dekker
changed title "Add functionality for sensitive tag "
· 1y

More in Feature