Sponsored Content
Full Discussion: How to mail in command line.
Top Forums Shell Programming and Scripting How to mail in command line. Post 302230911 by era on Monday 1st of September 2008 03:03:34 AM
Old 09-01-2008
If mutt is available, that offers a richer set of options, and the ability to sensibly include attachments to the message, with basically the same syntax.

Sendmail works the same way, too, but you need to put the headers in the message yourself.

Code:
sendmail -oi -t <<HERE
From: user@example.net
To: recipient@example.com
Subject: AYBABTU

All your base are belong to us
HERE

This is a FAQ; if you need more help, please search this site for threads related to your problem.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

E-Mail from command line for UNIX and Perl??

Hi Is there any way to use UNIX and Perl to automate sending e-mail. I got a dynamic changing file that send out to people in my mailing list and want to experinment to see if Perl and UNIX can send it out for me when the content is change. I found a Perl source code but dont really know how to... (4 Replies)
Discussion started by: jy2728
4 Replies

2. UNIX for Dummies Questions & Answers

command line send mail

Hi, I am trying to send mail in ubuntu. I have installed postfix. In Redhat I could just type: mail name@domain.com I get the error that the command mail is not found. Does anyone know if there is a different command line to send mail? Can I install the command? Thanks, Eric (1 Reply)
Discussion started by: ejbrever
1 Replies

3. AIX

Command line/Script to send E-mail with HTML body and binary attachment

I apoligize for the cross-post but I'm not getting much in the way of help in the dummies forum: I'm trying to script sending an e-mail message on an AIX 5.x server with the following requirements: 1. command line switch to specify file name containing message body in HTML format 2. command... (3 Replies)
Discussion started by: G-Man
3 Replies

4. Solaris

identify the mail server for mail command

Hi , I am new to unix , i am using the mail and mailx command to send the mail .How come i will know the my mail command using which server as mail box.. Please help me .. Thanks in advance (1 Reply)
Discussion started by: julirani
1 Replies

5. UNIX for Dummies Questions & Answers

Sending a simple mail from command line

Hi, How would one send an email from the command line. Just a simple email. I used mailx -s "test" address@server.domain then hit enter. Nothing happens then, I hit Ctrl + C twice, then I can start a new command again. Any help? Tips? I did read up on this, but the examples is much more... (2 Replies)
Discussion started by: McGuywer
2 Replies

6. UNIX for Dummies Questions & Answers

[SOLVED] Command line mail taking too long to send; unable to qualify my own domain name

Hello, I'm having a problem with my mail. When I send mail, it takes a long time for the send to complete. In the below, datestamp is just a simple script to put in a no-white-space date/time stamp. $ datestamp ; mail woodnt; datestamp 02-05-10@193844 Subject: test timer Cc: ... (0 Replies)
Discussion started by: Narnie
0 Replies

7. Shell Programming and Scripting

Send mail from command line

Hi All; I need to send emails from command line in some of my shell scripts. I tried : mail -s "Subject" member@body.com < testfile where test file contains body of the mail This work on my mac computer at work BUT not on my mac laptop. Does anyone have any ideas why? Thanks Walforum (1 Reply)
Discussion started by: walforum
1 Replies

8. UNIX for Dummies Questions & Answers

POP3 Mail Client (Command Line)

Hi list, I need a POP3 mail client which I can use from the command line within a bash shell script to download email to a folder location. Can anyone recommend a good POP3 client which can be used from the command line in bash? Using redhat enterprise linux 5 and 6. thanks, Land (2 Replies)
Discussion started by: landossa
2 Replies

9. Shell Programming and Scripting

Unable to set end of line in mail command

Hi , Am trying to send mail using the mail command, but the mail command is working but its not sending automatically after pressing .(dot) in the command prompt it sends . How to achieve that. Also it showing the below line after pressing the dot . /home/abc1/dead.letter... Saved message in... (5 Replies)
Discussion started by: rogerben
5 Replies

10. Homework & Coursework Questions

Creating a function that sends a mail using mail command

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: The function will be called m and it will allow you to send an email to someone using the mail command. The... (1 Reply)
Discussion started by: Drucian
1 Replies
actexec(1)							  ActExec Manual							actexec(1)

NAME
ActExec - Task automation SYNOPSIS
actexec -s|-c|-Q|-p|--proxy-mode|--proxy-type|--proxy-host |--proxy-port|--proxy-user|--proxy-password|-v|-h <filename> DESCRIPTION
ActExec is a commandline tool that allows you to execute code files and scripts made with Actionaz. OPTIONS
-s, --script switch to script mode, may not be used with -c -c, --code switch to code mode, may not be used with -s -Q, --nocodeqt Do not include the Qt library into the code. -p, --portable Starts in portable mode, storing the settings in the executable folder. --proxy-mode Sets the proxy mode, values are none system custom (default is system). --proxy-type Sets the custom proxy type, values are http socks (default is socks). --proxy-host Sets the custom proxy host. --proxy-port Sets the custom proxy port. --proxy-user Sets the custom proxy user. --proxy-password Sets the custom proxy password. -v, --version Displays the version number of Actionaz. -h, --help Displays a listing of these commandline options. SUPPORT
Please visit http://www.actionaz.org/ for further information. Report bugs only if you are using the latest version available from the Actionaz website. COPYRIGHT
Copyright (C) 2005-2011 Jonathan Mercier-Ganady ActExec is distributed under the terms of the GNU General Public License version 3 or later. November 2011 actexec(1)
All times are GMT -4. The time now is 08:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy