FreeBSD

FreeBSD: Отправка почты из консоли

Небольшой пример как отправить почтовое сообщение из консоли:

echo "BODY" | mail -s "SUBJECT" name@example.com
cat BODY_FILE | mail -s "SUBJECT" name@example.com

BODY – Текст сообщения.
BODY_FILE – Содержимое файла.
SUBJECT – Тема.

How useful was this post?

Click on a star to rate it!

Average rating / 5. Vote count:

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments