Danilo Bargen
427fb4e35c
Replace textnonce with rand
...
The textnonce dependency pulls in quite a few transitive dependencies.
However, we only use the dependency in a single location, to generate
MIME boundaries. For this, we can use `rand` directly (which is already
a transitive dependency anyways, since it's required by uuid).
This reduces the dependency count for a standard build from 117 to 105.
2020-07-03 16:07:02 +02:00
Alexis Mousset
8c8aa770bf
feat(transport): Start async implementation (sendmail, file and stub transports)
2020-05-10 16:12:51 +02:00
Alexis Mousset
0d063873fc
feat(transport-smtp): Use a streaming parser for response
2020-05-09 15:12:29 +02:00
Alexis Mousset
ce08d9e8aa
feat(builder): Add a content-type method
...
for SinglePart
2020-05-09 11:27:25 +02:00
Alexis Mousset
c43e205212
feat(transport-smtp): Refactor connection pooling
2020-05-08 17:16:27 +02:00
Alexis Mousset
33b0a9e27d
feat(transport-sendmail): Make the command parameter an OsStr
2020-05-08 11:46:25 +02:00
Alexis Mousset
4f0ea6366c
fix(all): Document optional features
2020-05-07 19:51:14 +02:00
Alexis Mousset
6499bfe3d4
fix(builder): Fail if required headers are missing ( fixes #95 )
2020-05-06 20:36:36 +02:00
Alexis Mousset
6afdb0cf3a
feat(transport): Make Transport result type an actual Result ( fixes #405 )
2020-05-05 22:33:35 +02:00
Alexis Mousset
ed9f38d2c8
feat(builder): Allow overriding envelope
2020-05-03 22:03:45 +02:00
Alexis Mousset
8425f1d7c4
chore(all): Move docs from website into API doc
2020-05-03 11:21:47 +02:00
Alexis Mousset
349b349518
fix(transport): Make logs optional and disabled by default ( fixes #390 )
2020-05-02 22:48:47 +02:00
Alexis Mousset
e609c6bb72
fix(transport): Remove last info logs ( fixes #398 )
2020-05-02 22:29:10 +02:00
Alexis Mousset
0b98ccad45
Merge pull request #416 from amousset/retry-dns
...
Retry connection in SMTP transport
2020-05-02 22:10:10 +02:00
Alexis Mousset
c352efcb86
feat(transport-smtp): Retry over DNS connection issues ( fixes #391 )
2020-05-02 22:03:25 +02:00
Paolo Barbolini
4c2f40dcb6
Fix broken smtp/extension.rs
2020-05-02 21:05:06 +02:00
Alexis Mousset
18a89d4407
feat(transport-smtp): Allow building without tls support
2020-05-02 20:58:40 +02:00
Alexis Mousset
b3414bd1ff
fix(transport): Fix connection pool
2020-05-02 19:45:58 +02:00
Alexis Mousset
0604030b91
Remove SmtpClient and make transport immutable
...
in Transport methods. Also make proper use of
connection pools.
2020-05-01 22:25:12 +02:00
Alexis Mousset
dfbe6e9ba2
Rename InnerClient to SmtpConnection
2020-04-30 19:59:31 +02:00
Alexis Mousset
a661de16c9
fix(all): Rustfmt
2020-04-29 10:18:14 +02:00
Alexis Mousset
0ac3438d32
feat(transport-file): Store email as string when possible ( fixes #385 )
2020-04-28 23:45:37 +02:00
Alexis Mousset
7f22a98f2f
feat(builder): Improve Message representation
...
* Remove bytes dependency and rely directly on bytes vec
* Allow encoding non-utf-8 strings
* Use Vec<u8> instead of Display for email formatting
2020-04-28 23:45:03 +02:00
Alexis Mousset
4e500ded50
feat(transport): Allow sending raw emails ( fixes #409 )
2020-04-28 23:44:23 +02:00
Ollie Ford
482d74f7bc
fix(transport-smtp): Set root certs when using rustls
2020-04-19 15:21:37 +02:00
Alexis Mousset
2fdafcd573
chore(all): Code cleanup
2020-04-19 11:59:04 +02:00
Alexis Mousset
53aa5b4df6
Replace email builder by a new implementation ( #393 )
...
* Update dependencies (#386 )
* Update dependencies and set MSRV to 1.40
* update hyperx
* Use display instead of description for errors
* Make hostname an optional feature
* Envelope from headers
* Update hyperx to 1.0
* rename builder to message
* Cleanup and make Transport send Messages
* Update rustls from 0.16 to 0.17
* Move transports into a common folder
* Merge imports from same crate
* Add message creation example to the site
* Hide "extern crate" in doc examples
* Add References and In-Reply-To methods
* Add message-id header
* Add blog posts and improve doc examples
2020-04-18 21:10:03 +00:00
Marek Janda
16ac97e9d0
Support for embeds with Content-ID
2020-02-04 22:01:23 +01:00
Alexis Mousset
245c600c82
Update dependencies ( #386 )
...
Update dependencies and set MSRV to 1.40
2019-12-23 11:02:43 +00:00
Alexis Mousset
3995ea2983
fix(builder): rfc2047-encode non-ascii text
2019-12-19 11:15:24 +01:00
Alexis Mousset
d1b54dc990
Revert "fix(builder): rfc2047-encode non-ascii text"
2019-12-18 23:06:29 +00:00
Alexis Mousset
22eced1dbf
Merge pull request #383 from amousset/encode-utf8
...
fix(builder): rfc2047-encode non-ascii text
2019-12-18 22:46:44 +00:00
Alexis Mousset
f0fd4556b5
fix(builder): rfc2047-encode non-ascii text
2019-12-18 23:42:24 +01:00
Paolo Barbolini
c4d4413242
fix(all): rename remaining 'serde-impls' features gates to 'serde'
...
This renames the remaining 'serde-impls' features I forgot to change
in aac3e00 to 'serde'
2019-12-18 17:51:48 +01:00
Alexis Mousset
ce37464050
feat(all): Merge Email and SendableEmail into lettre::Email
2019-12-18 16:51:04 +01:00
Alexis Mousset
a4a3f33180
change master version to 0.10
2019-12-18 13:47:09 +01:00
Alexis Mousset
c4d91177dc
fix(all): Fix conditional use for Debug
2019-12-17 21:05:34 +01:00
Alexis Mousset
947af0acdd
fix(all): Fix doc tests in website ( #375 )
2019-12-09 21:51:08 +00:00
Alexis Mousset
a90b548b4f
fix(transport): Fix warnings ans test both TLS options
2019-12-08 23:16:44 +01:00
Alexis Mousset
29e4829f69
feat(transport-smtp): Add rustls support
2019-12-08 22:13:38 +01:00
Paolo Barbolini
aac3e00f8d
style(all): rename 'serde-impls' feature to 'serde'
...
This makes lettre behave like the rest of the libraries, where the
`serde` feature enables serde support
2019-12-04 21:39:05 +01:00
mibac138
0f3f27fdb6
feat(all): Merge lettre_email into lettre with a builder feature
2019-11-30 20:22:44 +01:00
Alexis Mousset
ae640da631
refactor(all): split email and transport into different crates
2017-05-21 00:59:39 +02:00
Alexis Mousset
332e05278c
Merge branch 'master' into no-more-rustc-serialize
2017-05-19 22:54:09 +02:00
Alexis Mousset
66c214c2b7
style(all): Fix tests on some platforms
2017-05-19 22:47:22 +02:00
Craig Hills
3178db04e2
refactor(transport-smtp): migrate away from rustc-serialize
...
This drops the deprecated rustc-serialize dependency in favor of the
base64 and hex crates.
2017-04-26 21:43:26 -04:00
Alexis Mousset
8069b9e9ae
feat(transport-smtp): Disallow unencrypted connection by default
...
By default, do not silently use unencrypted transport.
2017-03-26 22:34:49 +02:00
Alexis Mousset
20f6c5db3f
feat(transport-smtp): Add support for LOGIN auth mechanism
2017-03-26 21:54:28 +02:00
Alexis Mousset
e068c2d41f
feat(email): Use Enveloppe directly
2017-02-12 23:39:27 +01:00
Zack Mullaly
2ed25fdbb4
feat(transport): Upgrade to OpenSSL ^0.9
2017-01-01 13:02:10 +01:00