New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Examples Not Working #68
Comments
I can't seem to edit my post on my mobile browser but I made a typo. It is a runtime error, not a compile error. |
You should try to print the content of |
Ok, I did that, and this is what it gave me:
It may be something I'm doing incorrectly, and if so, sorry about that, but I can't seem to locate an error on my end. I'm not doing any I/O. |
You can try to display the error cause with |
You can also have a look at the logs of your local mail server to see where the failure happens. |
I actually have similar problems. In my case, I get "an I/O error occurred", and the underlying failure is "connection refused". I'm using the same SmtpTransportBuilder as the reporter, and I verified with a Python script that using SMTP through localhost:25 is working fine there. |
BTW, I can reproduce this with
|
Can you run your test with the latest version (I just added a new log) from master with Which mail server is running on this host? Could you try to connect with telnet on port 25 ( |
Aha! Here's the output from running sezna's test program against git master lettre:
For some reason, Rust/lettre is resolving localhost to ::1. However, my Postfix (3.0.3) instance is only listening on IPv4. When I try
|
Then you can use |
Sure, but why doesn't Rust/lettre resolve localhost the same as Python (as well as just |
I don't know, closing as it is not really related to lettre. |
I'm trying to use this crate in a project I'm working on, and I can't get the examples to compile. They cause panics.
My code (the example code):
The error:
The text was updated successfully, but these errors were encountered: