Reputation: 628
I am trying to send email via linux command line using following command
echo "This is body part" | mail -s "this is subject" [email protected]
If I send to gmail it works but if i send to office365 it does not work. Could you help me?
Upvotes: 0
Views: 2137
Reputation: 10913
Upvotes: 1
Reputation: 11
This can also quite often be because of the mail relay server you are using (where the SMTP mail is routing through from the Linux box) not having been set up properly with public RDNS records. Many mail servers reject mail that comes from a domain without the appropriate RDNS configuration.
Upvotes: 1