Add comment to reference secure gmail connection
This commit is contained in:
parent
94f5f0200f
commit
04bbb957ef
1 changed files with 1 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ use imap::client::Client;
|
|||
|
||||
// To connect to the gmail IMAP server with this you will need to allow unsecure apps access.
|
||||
// See: https://support.google.com/accounts/answer/6010255?hl=en
|
||||
// Look at the gmail_oauth2.rs example on how to connect to a gmail server securely.
|
||||
fn main() {
|
||||
let mut imap_socket = Client::secure_connect(("imap.gmail.com", 993), SslContext::new(SslMethod::Sslv23).unwrap()).unwrap();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue