36
36
public async Greeting? login_async(Credentials? creds, Cancellable? cancellable = null) throws Error {
38
38
throw new SmtpError.ALREADY_CONNECTED("Connection to %s already exists", to_string());
40
40
// Greet the SMTP server.
41
41
Greeting? greeting = yield cx.connect_async(cancellable);
43
43
throw new SmtpError.ALREADY_CONNECTED("Connection to %s already exists", to_string());
46
46
notify_connected(greeting);
48
48
// authenticate if credentials supplied (they should be if ESMTP is supported)
50
50
// detect which authentication is available, using PLAIN if none found as a hail mary