在发送邮件时,将自己的电子邮件地址从接收列表中移除。
示例代码:
echo "This is the body of the email" | s-nail -s "Email subject" recipient1@example.com,recipient2@example.com -r sender@example.com -S smtp=smtp.example.com -S smtp-auth=login -S smtp-auth-user=sender@example.com -S smtp-auth-password=password
在上面的代码中,将“recipient1@example.com”和“recipient2@example.com”替换为您要发送电子邮件的收件人电子邮件地址,并将“sender@example.com”替换为您自己的电子邮件地址。