fix(smtp): compatibility issues with Microsoft Outlook (#400)
This commit is contained in:
@@ -78,7 +78,7 @@ impl<T: SessionStream> Session<T> {
|
|||||||
}
|
}
|
||||||
(AUTH_LOGIN, Credentials::Plain { username, secret }) => {
|
(AUTH_LOGIN, Credentials::Plain { username, secret }) => {
|
||||||
if username.is_empty() && secret.is_empty() {
|
if username.is_empty() && secret.is_empty() {
|
||||||
self.write(b"334 VXNlciBOYW1lAA==\r\n").await?;
|
self.write(b"334 VXNlcm5hbWU6\r\n").await?;
|
||||||
return Ok(true);
|
return Ok(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -115,7 +115,7 @@ impl<T: SessionStream> Session<T> {
|
|||||||
(AUTH_LOGIN, Credentials::Plain { username, secret }) => {
|
(AUTH_LOGIN, Credentials::Plain { username, secret }) => {
|
||||||
return if username.is_empty() {
|
return if username.is_empty() {
|
||||||
*username = response.into_string();
|
*username = response.into_string();
|
||||||
self.write(b"334 UGFzc3dvcmQA\r\n").await?;
|
self.write(b"334 UGFzc3dvcmQ6\r\n").await?;
|
||||||
Ok(true)
|
Ok(true)
|
||||||
} else {
|
} else {
|
||||||
*secret = response.into_string();
|
*secret = response.into_string();
|
||||||
|
|||||||
Reference in New Issue
Block a user