i m trying to send email with following configuration
Host: smtp.office365.com
port: 587
user: \"myemail@domain.com\"
pass: \"mypassword\">
There can be many reason for this issue, One of this is which is most frequently comes because
Login name and From address is not same.
Login = 'abc@gmailcom' FROM = 'abc@gmailcom'
Now use these variables, It will work.