This question already has an answer here:
I have a Bash script which is scheduled to run everyday and sends out user notification emails using a command like:
mail -s "Hello World" firstname.lastname@example.org
Why is this email detected as spam by Gmail. Is there something I can do so that Gmail doesn't spam the email?