Ship faster by sending elegant emails using just code
Project description
Ship faster by treating email as code 🚀
Website • Get Your API Key • Twitter
Templateless lets you generate and send transactional emails quickly and easily so you can focus on building your product.
✨ Features
- 👋 Anti drag-and-drop by design — emails are a part of your code
- ✅ Components as code — function calls turn into email HTML components
- 💻 SDK for any language — use your favorite programming language
- 🔍 Meticulously tested — let us worry about email client compatibility
- 💌 Use your favorite ESP — Amazon SES, SendGrid, Mailgun + more
- 💪 Email infrastructure — rate-limiting, retries, scheduling + more
- ⚡ Batch sending — send 1 email or 1,000 with one API call
🚀 Getting started
Install the package from PyPI, e. g. with pip:
pip install templateless
Import the Templateless
class from the templateless
package:
from templateless import Templateless
templateless = Templateless()
👩💻 Quick example
This is all it takes to send a signup confirmation email:
from templateless import Content, Email, EmailAddress, Templateless
def main():
content = (
Content()
.text("Hi, please **confirm your email**:")
.button("Confirm Email', 'https://your-company.com/signup/confirm?token=XYZ")
.build()
)
email = (
Email()
.to(EmailAddress("<YOUR_CUSTOMERS_EMAIL_ADDRESS>"))
.subject("Confirm your signup 👋")
.content(content)
.build()
)
templateless = Templateless("<YOUR_API_KEY>")
result = templateless.send(email)
print(result)
if __name__ == "__main__":
main()
Note 🚧 This SDK is not stable yet. The API might change as more features are added. Please pay attention to the CHANGELOG for breaking changes.
Examples:
- Get your free API key here: https://app.templateless.com ✨
- There are more Python examples in the examples folder
🤝 Contributing
- Contributions are more than welcome <3
- Please star this repo for more visibility ★
📫 Get in touch
-
For customer support feel free to email us at github@templateless.com
-
Have suggestions or want to give feedback? Here's how to reach us:
- For feature requests, please start a discussion
- Found a bug? Open an issue!
- We are also on Twitter: @Templateless
🍻 License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for templateless-0.1.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61ead9b80d7dda5c95bba37825b855daa899032c9639e183d748061e5eb822d8 |
|
MD5 | d37ba9567058b9e2b6d7ba5c27d54d8b |
|
BLAKE2b-256 | da015a5318cffe75509e61d8d922df49b8b7d7e6d7b32d8364e6606d35e125d5 |