Yes. You are right. When I tried to pass this file context as a body to the mail command before. I was getting error as file is not found like this :
FlowStats_.txt: No such file or directory
As well as even though, i have executed it as single line command as below :
This was also not working.
I have also tried without parameter -a in the mail command. This is also not working.
Can you please provide the mail command that has attachment under system function.
Thanks.
------ Post updated at 01:51 PM ------
Hi Guys,
I can now able to send the attachment of current date file with the below command :
Thanks.
------ Post updated at 01:53 PM ------
I hope this helps .
Last edited by Scott; 10-31-2018 at 06:27 AM..
Reason: Please use CODE tags
Hi ,
I am using mailx command for sending the mails. Rightnow I am sending the attachment (by using uuencode $filename) as a seperate mail.I wanna send the attachment also with the same mail. (6 Replies)
Hi
Could someone help me with the details on how to send an attachment through mail in unix.
I have an html file in my unix machine and I want this to be send to some mail id, plese help with the steps.
Regards
Ajay (2 Replies)
Hi
The below script working when we are sending the html as attachment can u please guide how to send thesmae data in table form direct in the mail and not in mail attachment .
cat Employee.sql
SET VERIFY OFF
SET PAGESIZE 200
SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON -
HEAD... (0 Replies)
Hi,
I want to know what exactly bind paameter does?
what exactly bind_param( 1, $siteName ) means?
what 1 means?
In some examples the bind_param is set like this:
bind_param( 2, $siteName1 )
bind_param( 3, $siteName2 )
$sth = $dbh->prepare( "
SELECT name,... (1 Reply)
#!/bin/bash
{
m()
$mail='("$someemail@gmail.com ", Cc:"$me" -t, Subject:"$emailmyself" -s, $someinputfile")'
}
what I am trying to do is create a function have it load when type the letter "m" so all have to do type an address after it send email. it tell me syntax on line 4 but which... (2 Replies)
Hello again!
Three posts in this forum now, as I am trying to understand how CGI is running and the interaction of the input and output with the server/browser. Very confused with them, especially with the param() function that I was trying to figure out how the parameters of it were passed in... (0 Replies)
Hi All,
I am new to unix. I have written the script to identify the delimiter count for my source file and the output I have to capture in another file and that file should sent to mail with attachment. I have tried to send the attachment with below script . But I am not able to do that. Any... (2 Replies)
Hi All,
i Have An Script Which is Fetching Data From DB And sending Mail With the Data in Excel Format.
i'm Receiving Mail with Attachment when i Manually Running the script using ksh -x Scriptname or ./ Scriptname.
when i try to run it through cron i'm receiving mail only but ... (7 Replies)
Hello,
I am using centos-6.2
I have apache server,php5 on my system and I want to send mail using sendmail on my system.
when I try to send mail from shell that time mail is succesfully sent to respective address()
but when I try to send it through webbrowser I am not able to send it.... (1 Reply)
I have a file named email.html with this as the contents:
Content-type: text/html
ACHI,ACCRETIVE HEALTH ,7.15,<br>CPRT,Copart Inc.,36.14,<br>GEOB.MX,GEO-B,1.660,<br>GCO,Genesco Inc. Comm,73.58,<br>GMAN,Gordmans Stores, ,<br>GES,Guess? Inc. Comm,26.45,<br>KBR,KBR Inc. Common... (1 Reply)
Discussion started by: phpchick
1 Replies
LEARN ABOUT ULTRIX
msgchk
msgchk(1mh)msgchk(1mh)Name
msgchk - check for messages
Syntax
msgchk [ -help ] [ -nodate ] [ -notify all|mail|nomail ] [ users ... ]
Description
The program checks all known mail drops for mail that is waiting for you. It displays whether you have mail waiting to be read or not and
shows the date that you last read your mail.
You can check other user's maildrops by specifying their user names as the users argument on the command line.
Options-help Prints a list of the valid options for this command.
-date
-nodate Prints the date when you last read your mail. This is the default behavior of The -nodate option can be used of you do not want
to print this date.
-notify
-nonotify Indicates under what circumstances should produce a message. There are three legal values: all, mail, and nomail. The default
is -notify all, which reports the status of the maildrop regardless of whether it has mail in it or not. The -notify mail option
reports the status of the maildrop only if there is mail waiting. The -notify nomail option reports the status of the maildrop
only if there is no mail in it.
-source file
Specifies the source which are checked for mail. The only value allowed is file, which is the user's maildrop. Additional val-
ues are supported only for use with other mail systems.
Restrictions
does not understand the $MAILDROP environmental variable. If mail is fetched from a location other than will not be able to determine if
new mail has arrived. However, can still be used to fetch mail when it arrives.
For this version, the -source option only supports the value file. Additional values are supported for use only with other mail systems.
Examples
This example shows a user Smith checking his own maildrop:
% msgchk
Smith:
New file source mail waiting ; last read on Tue, 07 Jun 88 17
:21:49 WET
The next example shows a user checking the maildrops of two other local users on the same system, Rabb and Jones:
% msgchk Rabb Jones
Rabb:
No file-source mail waiting ; last read on Tue, 07 Jun 13:22:
25 WET
Jones:
New file source mail waiting ; last read on Tue, 07 Jun 17:30
:05 WET
Files
The user profile.
The system customization file.
The user's maildrop.
See Alsoinc(1mh)msgchk(1mh)