Linux command to test mail() function:
echo "test email body." | mail -s "test email subject" user@domain.com
Instructions:
- replace “test email body” with the body copy of your test email
- replace “test email subject” with the subject line for your test email
- replace user@domain.com with the email address to send the test to
- optionally includ -c to CC another email address
- optionally include -b to BCC another email address
- For a longer email body message start with mail(), return, and Control+D as the escape sequence when finished