-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
recieve mail on @hotmail.com doesn't work #748
Comments
This usually happens when you try to send emails from an address that you are not authorized to use, eg your user is "email@hotmail.com" but you try to send mails as "someotheruser@hotmail.com". |
thank you for quickly reply ! :)
Le mer. 15 mars 2017 à 11:14, Andris Reinman <notifications@github.com> a
écrit :
… Closed #748 <#748>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#748 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ALCcHcgYBxAWS_5W1fUKal79yzK4Liqtks5rl7npgaJpZM4Mdu5v>
.
|
i'm still with the same error, i can send email with the same config but can't recieve email. here is the error i get same as mentioned up: my config:
});
and the output when i change the mail to send not recieve:
|
To fix you need to change the FROM email to be your email. Essentially outlook doesn't let you send email from a account you don't own. So take the original user's email and put it in the body of the text then make the FROM to be your email TO your email. Solution found in the last comment here: https://social.technet.microsoft.com/Forums/exchange/en-US/69426f64-717d-47e0-aa1b-700903ee83cc/520-storedrv-error?forum=exchangesvrsecuremessaginglegacy
|
@user1m Thank you for this advice!! This fixed mine immediately as well. |
Include the following information with your issue:
node version:
v6.8.1
,nodemailer version:
nodemailer@3.1.5
,os x sierra:
Darwin Kernel Version 16.1.0
,my code:
`app.post('/contact', (req, res) => {
var transporter = nodemailer.createTransport({
host: "smtp-mail.outlook.com",
secureConnection: true,
port: 587,
tls: {
ciphers: 'starttls'
},
service: 'hotmail',
auth: {
user: 'email',
pass: 'Passwd'
}
});
var sender = req.body.email;
var sujet = req.body.sujet;
var texte = req.body.message;
var mailOptions = {
from: sender,
to: 'email',
subject: sujet,
text: texte
//html: '
le formulaire marche'
};
transporter.sendMail(mailOptions, (error, info) => {
if (error) {
return console.error(error);
} else {
console.log('Message %s envoyer: %s', info.messageId, info.response);
}
});
res.send('req recieved');
});`
my error in the console:
POST /contact 200 40.613 ms - 12 { Error: Message failed: 550 5.3.4 554 5.2.0 STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message Cannot submit message. 16.55847:69000000, 17.43559:0000000020010000000000000000000000000000, 20.521 at SMTPConnection._formatError (/Users/macair/Documents/express-khasso/node_modules/nodemailer/lib/smtp-connection/index.js:555:19) at SMTPConnection._actionSMTPStream (/Users/macair/Documents/express-khasso/node_modules/nodemailer/lib/smtp-connection/index.js:1376:34) at SMTPConnection._responseActions.push.str (/Users/macair/Documents/express-khasso/node_modules/nodemailer/lib/smtp-connection/index.js:903:22) at SMTPConnection._processResponse (/Users/macair/Documents/express-khasso/node_modules/nodemailer/lib/smtp-connection/index.js:702:20) at SMTPConnection._onData (/Users/macair/Documents/express-khasso/node_modules/nodemailer/lib/smtp-connection/index.js:507:14) at TLSSocket._socket.on.chunk (/Users/macair/Documents/express-khasso/node_modules/nodemailer/lib/smtp-connection/index.js:653:51) at emitOne (events.js:96:13) at TLSSocket.emit (events.js:188:7) at readableAddChunk (_stream_readable.js:176:18) at TLSSocket.Readable.push (_stream_readable.js:134:10) code: 'EMESSAGE', response: '550 5.3.4 554 5.2.0 STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message Cannot submit message. 16.55847:69000000, 17.43559:0000000020010000000000000000000000000000, 20.521', responseCode: 550, command: 'DATA' }
The text was updated successfully, but these errors were encountered: