You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The examples are not up to date with the latest version of async_smtp it looks like.
As the error suggests, the SmtpClient new method now returns a future for a Result. So you should first await on that result, then unwrap the Result (in whatever way you'd like, for example using ? or matching on the error) to obtain the client instance.
I am using the example on github here for gmail.
I get the error:
I am new to rust sorry.
I tried
#[async_std::main]
but it says i should use it only on main.What could i do?
The text was updated successfully, but these errors were encountered: