Paolo Barbolini
a681c6b49d
Remove From implementations on Error for file and sendmail transport ( #566 )
2021-03-13 17:41:44 +00:00
Alexis Mousset
22efe341fe
feat(builder): Seal SMTP error type ( #564 )
...
* feat(builder): Seal SMTP error type
* More precise error types
2021-03-13 17:15:21 +00:00
Paolo Barbolini
97fba6a47e
docs: improve docs for lettre::transport ( #565 )
2021-03-13 16:03:05 +00:00
Paolo Barbolini
f7066ac858
Fix various parts of the docs ( #563 )
2021-03-12 20:02:31 +01:00
Alexis Mousset
9379f2e328
Prepare 0.10.0-beta.2
v0.10.0-beta.2
2021-03-10 21:56:00 +00:00
Paolo Barbolini
05133a7102
Test using all supported async executors
2021-03-08 13:23:27 +01:00
Paolo Barbolini
d7d05bf48a
Update deprecated imports
2021-03-08 10:59:28 +01:00
Paolo Barbolini
34ac265d60
Remove deprecated executor methods
2021-03-08 10:59:28 +01:00
Hari Konomi
bbf56de83d
feat(transport-smtp): Call conn.quit() when pooled conns are released ( #559 )
...
* Implement CustomizeConnection::on_release() for SmtpConnection
2021-03-05 19:02:01 +01:00
Alexis Mousset
b594945695
Prepare 0.10.0-beta.1 ( #555 )
v0.10.0-beta.1
2021-02-27 16:54:32 +00:00
Paolo Barbolini
5c83120986
Executor refactor ( #545 )
...
* Executor
* Move transports inside the transport module
* AsyncTransport refactor
* Update examples
* Update docs
* impl Default for AsyncSendmailTransport
* Implement AsyncFileTransport::read
* Generalize AsyncFileTransport AsyncTransport implementation
* Remove remaining uses of AsyncSmtpConnector
2021-02-27 16:36:59 +00:00
Alexis Mousset
d4df9a2965
feat(transport): Add SMTPUTF8 handling ( #540 )
2021-02-27 16:23:48 +00:00
Paolo Barbolini
d2aa959845
Remove deprecated SinglePart methods ( #549 )
2021-02-19 19:18:38 +01:00
Paolo Barbolini
d1f016e8e2
Fix minimal-version of the mime crate ( #548 )
2021-02-16 09:50:45 +01:00
konomith
9146212a3e
fix(transport-smtp): Fix max_size setter for PoolConfig ( #546 )
...
Currently the `max_size` setter method incorrectly assigns the
new value to `self.min_idle` instead of `self.max_size`. This
change fixes the issue.
2021-02-15 21:19:37 +00:00
Alexis Mousset
a04866acfb
Improve doc formatting ( #539 )
2021-02-05 08:39:00 +01:00
Alexis Mousset
be88aabae2
Make ClientCodec private ( #541 )
2021-02-04 11:11:30 +01:00
Alexis Mousset
6fbb3bf440
feat(transport): Read messages from FileTransport ( #516 )
...
* feat(transport): Read messages from FileTransport
* Style improvements
2021-02-03 10:25:47 +01:00
Alexis Mousset
9d8c31bef8
Fix smtp doc examples ( #536 )
...
* Fix smtp examples
Make TlsParametersBuilder a consuming builder
as `build()` consumes it. It allows chaining methods.
* Format doc examples
2021-02-03 10:23:08 +01:00
Alexis Mousset
0ea3bfbd13
Remove file and sendmail transport by default ( #537 )
...
We can consider the smtp transport as the main
use-case. Let's keep TLS through native-tls
and connection pooling for fast ans secure
defaut feature set.
2021-02-03 10:17:53 +01:00
Alexis Mousset
a0980d017b
Make EmailFormat trait private ( #535 )
...
It does not need to be exposed.
2021-02-01 10:11:25 +00:00
Paolo Barbolini
40c8a9d000
Better seal AsyncSmtpConnector ( #534 )
2021-01-31 16:42:37 +00:00
Alexis Mousset
ed50ea74ba
Prepare 0.10.0-alpha.5 release
v0.10.0-alpha.5
2021-01-28 21:32:24 +01:00
Paolo Barbolini
20d0f8f3ba
Add async-std support to smtp transport ( #531 )
...
* Add async-std support to smtp transport
* fix Tls import
* fix copy paste
* too many imports
* Temporarely skip async-std native-tls support
* Fix panic message
* TlsParameters: use rustls when async-std is enabled
2021-01-28 11:07:15 +01:00
Anna Clemens
690b143ea3
fix: re-enable unicode-case feature on regex ( #532 )
2021-01-22 07:18:54 +01:00
Paolo Barbolini
7f384bc983
clippy: fix 1.49 lints ( #530 )
2021-01-05 21:26:58 +00:00
Paolo Barbolini
d8c4a66206
Update rand to 0.8 ( #527 )
2021-01-05 22:02:10 +01:00
Paolo Barbolini
54cd221de7
Reduce regex features ( #526 )
2020-12-26 18:42:52 +00:00
Paolo Barbolini
1a0c344c91
Update to tokio 1.0 ( #529 )
2020-12-25 21:01:21 +00:00
Paolo Barbolini
15030fde53
Reduce futures-util features ( #528 )
2020-12-24 17:22:26 +01:00
Paolo Barbolini
89fa5cdb80
sendmail: upgrade to async_std::process from the 1.8.0 release ( #520 )
2020-12-23 19:33:46 +00:00
Paolo Barbolini
aac5c9929f
message: improve docs ( #521 )
2020-12-23 18:20:00 +00:00
Paolo Barbolini
210133a078
docs: run cargo spellcheck ( #524 )
2020-12-23 14:04:26 +01:00
Paolo Barbolini
a4c0af9cf1
message: generate a shorter multipart boundary ( #523 )
...
Fixes https://tools.ietf.org/tools/msglint/ warning about the
Content-Type header being too long.
I looked at many emails I received over time and I couldn't find
any with a boundary as long as ours, so this isn't only justified
by making some tool happy.
2020-12-22 22:30:09 +01:00
Paolo Barbolini
ad9699827e
message: more body improvements ( #519 )
2020-12-18 14:49:59 +01:00
Paolo Barbolini
f06b8f3823
Return base64 as the Default Content-Transfer-Encoding
2020-12-06 16:23:33 +01:00
Paolo Barbolini
170e929a2b
refactor: Message body encoder
2020-12-06 16:23:33 +01:00
Paolo Barbolini
d3c73d8bd7
Bump rustls to 0.19 ( #515 )
2020-11-25 21:05:10 +01:00
Alexis Mousset
4e13963bf3
add docs
2020-11-25 21:00:03 +01:00
Alexis Mousset
ca6399acbf
add docs
2020-11-25 21:00:03 +01:00
Alexis Mousset
3f03b6296b
feat(transport): Add the ability to save envelope as JSON in file transport
...
This will make it possible to read the message and send it later
properly.
2020-11-25 21:00:03 +01:00
RotationMatrix
3683d122ba
Update examples/README.md
2020-11-22 18:25:40 +01:00
Federico Guerinoni
0e3526c1bc
src/message: Add test for email with png
...
Signed-off-by: Federico Guerinoni <guerinoni.federico@gmail.com >
2020-11-22 17:45:52 +01:00
Federico Guerinoni
50ac1cdbec
src/message: Improve example
...
Signed-off-by: Federico Guerinoni <guerinoni.federico@gmail.com >
2020-11-22 17:45:52 +01:00
RotationMatrix
227da8ac09
Add HTML examples ( #496 )
...
* Add HTML email example
* Add comment about creating `SmtpTransportBuilder`
Add similar comment to `AsyncSmtpTransportBuilder`
* Improve wording and fix typos
* Add file_html example to Cargo.toml
* Update examples/README.md
Co-authored-by: Paolo Barbolini <paolo@paolo565.org >
* Use intra-doc links
* Rename file_html example to basic_html
* Add maud HTML example
* Make CI happy
* Fix CSS
* Fix maud version
Co-authored-by: Paolo Barbolini <paolo@paolo565.org >
2020-11-22 17:29:09 +01:00
Manuel Pelloni
86763ccefb
Changelog ( #497 )
...
* Sync changelog with 0.10 changes
* Addess code review
2020-11-14 09:31:02 +01:00
Paolo Barbolini
65d952a64f
Remove serde_json from public dependencies ( #510 )
2020-11-12 15:28:33 +01:00
azul
2e8d43baae
feat(transport-file): eml format instead of json ( #505 )
...
Change FileTransport to save into .eml format
fixes #499 .
2020-11-12 15:14:54 +01:00
Alexis Mousset
648cf4ce5e
Prepare 0.10.0-alpha.4 release
v0.10.0-alpha.4
2020-11-11 17:18:02 +01:00
Alexis Mousset
4a9d4fbf7e
fix(transport-sendmail): Capture sendmail stderr to make possible to debug
2020-11-11 17:14:58 +01:00