corrected some spelling errors...
This commit is contained in:
parent
7212b8d9fd
commit
5f27815267
@ -197,10 +197,10 @@ bool SmtpClient::login(const QString &user, const QString &password, AuthMethod
|
|||||||
// Wait for the server's response
|
// Wait for the server's response
|
||||||
waitForResponse();
|
waitForResponse();
|
||||||
|
|
||||||
// If the response is not 235 then the authification was faild
|
// If the response is not 235 then the authentication was faild
|
||||||
if (responseCode != 235)
|
if (responseCode != 235)
|
||||||
{
|
{
|
||||||
emit smtpError(AuthentificationFailedError);
|
emit smtpError(AuthenticationFailedError);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -211,14 +211,14 @@ bool SmtpClient::login(const QString &user, const QString &password, AuthMethod
|
|||||||
|
|
||||||
// Wait for 334 response code
|
// Wait for 334 response code
|
||||||
waitForResponse();
|
waitForResponse();
|
||||||
if (responseCode != 334) { emit smtpError(AuthentificationFailedError); return false; }
|
if (responseCode != 334) { emit smtpError(AuthenticationFailedError); return false; }
|
||||||
|
|
||||||
// Send the username in base64
|
// Send the username in base64
|
||||||
sendMessage(QByteArray().append(user).toBase64());
|
sendMessage(QByteArray().append(user).toBase64());
|
||||||
|
|
||||||
// Wait for 334
|
// Wait for 334
|
||||||
waitForResponse();
|
waitForResponse();
|
||||||
if (responseCode != 334) { emit smtpError(AuthentificationFailedError); return false; }
|
if (responseCode != 334) { emit smtpError(AuthenticationFailedError); return false; }
|
||||||
|
|
||||||
// Send the password in base64
|
// Send the password in base64
|
||||||
sendMessage(QByteArray().append(password).toBase64());
|
sendMessage(QByteArray().append(password).toBase64());
|
||||||
@ -226,10 +226,10 @@ bool SmtpClient::login(const QString &user, const QString &password, AuthMethod
|
|||||||
// Wait for the server's responce
|
// Wait for the server's responce
|
||||||
waitForResponse();
|
waitForResponse();
|
||||||
|
|
||||||
// If the response is not 235 then the authification was faild
|
// If the response is not 235 then the authentication was faild
|
||||||
if (responseCode != 235)
|
if (responseCode != 235)
|
||||||
{
|
{
|
||||||
emit smtpError(AuthentificationFailedError);
|
emit smtpError(AuthenticationFailedError);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -237,7 +237,7 @@ bool SmtpClient::login(const QString &user, const QString &password, AuthMethod
|
|||||||
catch (ResponseTimeoutException e)
|
catch (ResponseTimeoutException e)
|
||||||
{
|
{
|
||||||
// Responce Timeout exceeded
|
// Responce Timeout exceeded
|
||||||
emit smtpError(AuthentificationFailedError);
|
emit smtpError(AuthenticationFailedError);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ public:
|
|||||||
{
|
{
|
||||||
ConnectionTimeoutError,
|
ConnectionTimeoutError,
|
||||||
ResponseTimeoutError,
|
ResponseTimeoutError,
|
||||||
AuthentificationFailedError,
|
AuthenticationFailedError,
|
||||||
ServerError, // 4xx smtp error
|
ServerError, // 4xx smtp error
|
||||||
ClientError // 5xx smtp error
|
ClientError // 5xx smtp error
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user