FreeBSD > Sending a Message by E-Mail

by nixcraft on February 23, 2005 · 0 comments

E-mail is a way of sending a message between users and administrators from command prompt for shell script. Use mail command as follows

mail -s "Subject" username-name or email-id
email message
email message

..
When the message is complete, press Control-D or type dot character and press return/enter key.

1) To send email to root user to notify printing problem
mail -s "printing problem" root@admin.test.com

Hi Admin

I am having problem with printing can you please check up what is wrong with it. It was working fine untile late evening after that it is not printing from my HP-UX workstation.

Thanks

Joy D.

Please note you can also use webmail program form your web browser or other mail client if already configured.

Featured Articles:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

We're here to help you make the most of sysadmin work. So, subscribe!

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 7 + 3 ?
Please leave these two fields as-is:
Are you a human being? Solve the simple math so we know that you are a human and not a bot.



Previous post:

Next post: