{"id":18847276,"url":"https://github.com/nhoad/outbox","last_synced_at":"2025-04-14T08:09:42.304Z","repository":{"id":18089145,"uuid":"21154580","full_name":"nhoad/outbox","owner":"nhoad","description":"Simple SMTP client for Python. Wraps up ugliness of SMTP for sending emails, adding attachments, what have you.","archived":false,"fork":false,"pushed_at":"2015-10-22T11:54:05.000Z","size":853,"stargazers_count":6,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T08:09:36.687Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nhoad.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-24T06:30:54.000Z","updated_at":"2024-02-06T09:49:29.000Z","dependencies_parsed_at":"2022-09-26T21:41:02.348Z","dependency_job_id":null,"html_url":"https://github.com/nhoad/outbox","commit_stats":null,"previous_names":["nathan-hoad/outbox"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhoad%2Foutbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhoad%2Foutbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhoad%2Foutbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhoad%2Foutbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nhoad","download_url":"https://codeload.github.com/nhoad/outbox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248843867,"owners_count":21170492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T03:07:25.235Z","updated_at":"2025-04-14T08:09:42.270Z","avatar_url":"https://github.com/nhoad.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Outbox.py: SMTP Client for Humans\n=================================\n\nThis is simplest SMTP client you'll ever see. It's 100% synchronous...\n\nUsage\n-----\n\nGive your app an outbox easily::\n\n    from outbox import Outbox, Email, Attachment\n\n    # io.StringIO for Python 3 folks\n    from StringIO import StringIO\n\n    attachments = [\n        Attachment('kittens.jpg', fileobj=open('ducks.jpg', 'rb')),\n        Attachment('my-transient-file.bin', fileobj=StringIO('some raw data')),\n    ]\n\n    outbox = Outbox(username='username', password='password',\n            server='server', port=1234, mode='SSL')\n\n    outbox.send(Email(subject='my subject', body='some nice sentiment',\n            recipients=['nathan@getoffmalawn.com']), attachments=attachments)\n\n    # html email with attachments\n    outbox.send(Email(subject='my subject', html_body='\u003cb\u003eSOME REALLY NICE SENTIMENT\u003c/b\u003e',\n            recipients=['nathan@getoffmalawn.com']), attachments=attachments)\n\nThis method will log in to the server each time `send()` is called.\n\nAlternatively, you can use Outbox as a context manager::\n\n    with Outbox(username='username', password='password',\n            server='server', port=1234, mode='SSL') as outbox:\n\n        outbox.send(Email(subject='my subject', body='some nice sentiment',\n                recipients=['nathan@getoffmalawn.com']), attachments=attachments)\n\n        # html email with attachments\n        outbox.send(Email(subject='my subject', html_body='\u003cb\u003eSOME REALLY NICE SENTIMENT\u003c/b\u003e',\n                recipients=['nathan@getoffmalawn.com']), attachments=attachments)\n\nUsing Outbox as a context manager has the added benefit of performing a single login to send all emails.\n\nInstallation\n------------\n\nInstalling Outbox.py is simple::\n\n    $ pip install outbox\n\nChange History\n--------------\n\n0.1.8 (24th June 2014)\n    - Thanks to Hideaki Takahashi for teh following contributions!\n    - Added RFC2047 style encoding support.\n    - Much improved support for multipart messages.\n0.1.7 (24th June 2014)\n    - Thanks to Hideaki Takahashi for submitting a MANIFEST, which allows `outbox` to be installed via pip again (broken in 0.1.6)\n0.1.6 (24th June 2014)\n    - Added `AnonymousOutbox`, a class for connecting to servers that don't perform authentication.\n    - Fleshed out documentation for `outbox.Email`.\n    - Fixed a bug when using Python 3 (calling iteritems on a dict).\n    - Moved the project to Github.\n0.1.5 (3rd March 2013)\n    - Thanks to Peter Naudus for the following contributions!\n    - Added debug argument to Outbox class, to switch smtplib's debugging.\n    - Added fields argument to Email class, to allow additional email fields to be set.\n    - Connection and disconnection are now exposed.\n    - Internal cleanup of some of the connection code.\n0.1.4 (29th October 2012)\n    - Handle passing a single recipient as a string, instead of forcing the recipient to be a list.\n    - Handle utf8 email properly. Thanks, Zhang Mingyuan!\n      I doubt I've covered every use case, so the charset to use can be passed in when constructing an Email.\n    - Added a sender_address method to the Outbox class, for when the username used for authentication isn't good enough.\n0.1.3 (3rd July 2012)\n    - Made a few lines of code a bit easier to follow. No functional changes.\n    - Updated the license to actually hold copyright in my name, instead of Kenneth Reitz. Does this mean he owned copyright on the library up until now? Can I even change the license? I'm unsure.\n0.1.2 (2nd June 2012)\n    - Made Outbox a context manager, so it can be used with the `with` statement.\n      As noted in the example, this has the added benefit of performing a single login to send all emails, you should get better performance using a with statement.\n    - Removed raw and filepath arguments to Attachment. They were both begging to point to a file-like object, so that's what you have now - an argument called `fileobj`\n    - Fixed annoying encoding error when trying to send binary attachments.\n    - The Email object does not have a `type` argument anymore. Instead, there is `body` and `html_body`, so you can send an email with both html and plain-text bodies.\n\n0.1.1 (27th May 2012)\n    - Initial release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnhoad%2Foutbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnhoad%2Foutbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnhoad%2Foutbox/lists"}