(void)instate; /* no use for this yet */
if(smtpcode/100 != 2) {
- failf(data, "Access denied: %d", smtpcode);
- result = CURLE_LOGIN_DENIED;
+ failf(data, "MAIL failed: %d", smtpcode);
+ result = CURLE_SEND_ERROR;
state(conn, SMTP_STOP);
}
else {
(void)instate; /* no use for this yet */
if(smtpcode/100 != 2) {
- failf(data, "Access denied: %d", smtpcode);
- result = CURLE_LOGIN_DENIED;
+ failf(data, "RCPT failed: %d", smtpcode);
+ result = CURLE_SEND_ERROR;
state(conn, SMTP_STOP);
}
else {
if(smtpcode != 354) {
state(conn, SMTP_STOP);
- return CURLE_RECV_ERROR;
+ return CURLE_SEND_ERROR;
}
/* SMTP upload */