I spent some time working this out, with a little help from various forums, and thought the community would like to know :
Here is how you can send an email from a single Unix command line :
/usr/bin/echo "Email text\nNew line\nAnother new line" >x | uuencode sourcefile.txt sourcefile.txt |... (3 Replies)
Hi,
I am writing a kornshell script, once the successful completion of the script
I need to send an email with body of a text along with an attachment. But i couldnt able to send an email with both body of the text and attachment at the same time in unix. The following is the code i tried,
... (2 Replies)
i have a file new1.txt
i want to send the contents of that file as a message to email ali@sms.com
i m using ksh script.........
plz help me (5 Replies)
I am trying to send an email body of information and also attachment using perl script, but I am only able to send the body but not an attachment. is there around it without using "use MIME::Lite;" module.
$user = "bataf\@xyz.com";
$subjectt = "mail from perl";
open(MAIL, "| mailx -s... (1 Reply)
Hi,
We have been trying to send mail with attachment and it is going fine, but when we try to attach a text to the body of the email, we find that the mail is going fine with the body text but the attachment is not going through. We are using ksh.
The command that is successfull without the... (6 Replies)
Hello,
i encountered this in perl but it might be command line related as well:
i am sending text as an argument to echo command on remote computer.
if the text has alphanumeric characters only, say 'hello world' all is well. if however text has metacharachters, e.g. 'hello | world' or even... (2 Replies)
I need help with writing a shell script for writing data from a table into a .csv file and send the file has email attachment.
I stuck up with attaching the file to the email.
Thanks, (1 Reply)
Hi,
In the shell script, i want to do sftp and go to a directory and check if a particular file is present, if not i send an email with some error message. Please guide me about how i could achieve it...." (1 Reply)
The file is located under appl/batchdata/
file name: storesales.txt
I am using following code because uuencode is not present. I am not getting the data in file but i am getting the blank file with same name as an email attachment.
( echo "from: sch@xxxx.com"
echo "to:sch@xxxx.com"
echo... (2 Replies)
i need to send an email to users on the files being loaded...how can i achieve this?
say, my source file directory has 2 files
file1.txt
file2.txt
I just want to send an email saying these files were loaded...Please help (1 Reply)
Discussion started by: saggiboy10
1 Replies
LEARN ABOUT OPENSOLARIS
mail
mail(1B) SunOS/BSD Compatibility Package Commands mail(1B)NAME
mail, Mail - interactive message processing system
SYNOPSIS
/usr/ucb/mail ...
/usr/ucb/Mail ...
DESCRIPTION
/usr/ucb/mail and /usr/ucb/Mail are provided as links to /usr/bin/mailx. See mailx(1) for more information on the usage of these commands.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
/usr/ucb/mail
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWscpu |
+-----------------------------+-----------------------------+
/usr/ucb/Mail
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWscpu |
+-----------------------------+-----------------------------+
SEE ALSO mailx(1),attributes(5)SunOS 5.11 19 Aug 1998 mail(1B)