Conda is a package management tool that can install code to your machine for development with python.
Using pip with conda
To add interoperability with pip you can enable conda config for this:
conda config --set pip_interop_enabled True
Email libraries in python
MailSlurp is an email library for sending and receiving emails in Python. Create disposable fake email accounts for testing and development.
You can install the email client with pip in conjunction with conda.
pip install mailslurp-client
To configure a client and create an email address use the follow example:
import mailslurp_client configuration = mailslurp_client.Configuration() configuration.api_key['x-api-key'] = "your-api-key-here" def create_inbox_example(): with mailslurp_client.ApiClient(configuration) as api_client: # create an inbox using the inbox controller api_instance = mailslurp_client.InboxControllerApi(api_client) inbox = api_instance.create_inbox() # check the id and email_address of the inbox assert len(inbox.id) > 0 assert "mailslurp.com" in inbox.email_address
Send and receive email in Python, create test email accounts and more with the official PyPI MailSlurp package.
Conda is a package management system that is popular in the machine learning and python space.
Send emails using SMTP mailer in Python. Detailed tutorial for sending mail in Python.
Send and receive email in Pytest Python tests.
Python automation email testing Robotframework plugin
How to send emails with Python's built-in SMTP client and MailSlurp mail servers.