10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am trying to send an attachment through UNIX to the mail box. But along with the attachments I am also receiving junk data as a text file, Suppose "Hi" is the subject of the mailx command then along with the attachment I am getting Hi.txt also.
Below are the commands which I used : -
... (15 Replies)
Discussion started by: Alex_Smith
15 Replies
2. UNIX for Advanced & Expert Users
Hi,
I am making a shell script on HP-UX that will do some Oracle db query and fetch data. Then after formatting the output files (there are two files) in a csv format, I want to send them as email attachments. Unfortunately the email contains garbage. I could not find solution to the problem... (13 Replies)
Discussion started by: asutoshch
13 Replies
3. Shell Programming and Scripting
I've this command to run ...
Purpose : Send attachment file with e-mail body...
( E-mail body i read it from text file)
uuencode TEST_FILE.csv TEST_FILE.csv | cat /usr/local/bin/EMAIL_BODY.txt - | mailx -s "TEST Report" -c receiver1@mail.com receiver2@mail.com
Here is the... (2 Replies)
Discussion started by: prash184u
2 Replies
4. Shell Programming and Scripting
Hi everyone,
I'm emailing a spool file to a person using mailx. I'm using uuencode to attach the file to the email. but am getting this error
uuencode: ISO8859-15 to 646 conversion: Invalid argument
Any ideas as to why. The code is below
sqlplus -s user/password@database <<EOF
set... (9 Replies)
Discussion started by: rjsha1
9 Replies
5. Shell Programming and Scripting
i used below code to attach a file but it's not attaching the file but sendinf a simple mail
uuencode ${discord_file} mail_list.txt | mailx -s "TEST MAIL" xxx@yahoo.com (3 Replies)
Discussion started by: punitpa
3 Replies
6. Shell Programming and Scripting
Hi All,
I have a queryin the uuencode option. Actually i need to attach two files in a single mail.
I am aware of attaching a single file using the command below.
(echo " The first file ";uuencode file1 file1) | mailx -s " The files " venkidhadha@in.com
However i am not sure what... (6 Replies)
Discussion started by: venkidhadha
6 Replies
7. UNIX Desktop Questions & Answers
Hi All,
I am using unix's sendmail utility to send mails with attacments. I am using the uuencode command for attachments (zip).
When i send the mails to some account which is configured in the MS outook it opens/unzip the attachments with no problem.
But the same attachments seems to be... (3 Replies)
Discussion started by: manojram
3 Replies
8. Solaris
We are running solaris 9.
I can send emails using mailx with no problems.
I can send attachments using uuencode no problems.
What I can't do is change the name to .txt or .doc or anything else using uuencode. The command I am using is:
uuencode /tmp/AsetReports /tmp/AsetReports.doc | mailx -s... (2 Replies)
Discussion started by: zeekstern
2 Replies
9. UNIX for Dummies Questions & Answers
I have a unix script that compresses a .txt file using gzip command and then sends it by mail using uuencode.
This has been working fine for some time, but lately I've been experiencing some problems, as when I open the mail generated, I don't see the attachment, but instead I get a large amount... (8 Replies)
Discussion started by: mvalonso
8 Replies
10. Shell Programming and Scripting
hi all,
I dont know of this is a duplicate thread, but the thread i started a while ago wasnot posted still. ok my question is i have a shell script named "mail_editck.sh". i have to include some reports in it so that i can get the email when they are done. the syntax goes like this.
... (2 Replies)
Discussion started by: tejasingaraju17
2 Replies
HTTP_SEND_FILE(3) 1 HTTP_SEND_FILE(3)
http_send_file - Send file
SYNOPSIS
bool http_send_file (string $file)
DESCRIPTION
Sends a file with support for (multiple) range requests.
This functions behaviour and further action is dependent on the following INI settings: http.send.not_found_404 and http.log.not_found.
If the INI settinghttp.send.not_found_404 is enabled and the INI settinghttp.log.not_found points to a writable file, a log message is
written when the $file was not found.
PARAMETERS
o $file
- the file to send
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
A http_send_file(3) example
<?php
http_send_content_disposition("document.pdf", true);
http_send_content_type("application/pdf");
http_throttle(0.1, 2048);
http_send_file("../report.pdf");
?>
The above example will output:
HTTP/1.1 206 Partial Content
X-Powered-By: PHP/5.2.2
Accept-Ranges: bytes
Content-Length: 12345
Content-Range: bytes 0-12344
Content-Type: application/pdf
Content-Disposition: inline; filename="document.pdf"
%PDF...
SEE ALSO
http_send_data(3), http_send_stream(3), http_throttle(3), http_send_content_type(3), http_send_content_disposition(3), the HttpResponse
class if you are using PHP 5.1.0 and above.
PHP Documentation Group HTTP_SEND_FILE(3)