Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How do I send a file as an attachment (gzip file) on a Unix system Post 23989 by lacca on Wednesday 3rd of July 2002 12:13:36 PM
Old 07-03-2002
I'm trying to send a mail from unix with a attach gzip file with the follow parameters:

Content-Type: application/x-gzip; name="xpto.txt.gz"
Content-Transfer-Encoding: x-gzip
Content-Disposition: inline;filename="xpto.txt.gz"
MIME-Version: 1.0

When I receive the mail in outlook and I try to decompress the file with winzip, give an error telling the file is corrupt.

What is wrong with these parameters ?

Best regards.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Send a *.pdf file as a attachment

Hi there, i am very new in the unix sector. (i work on HP UX, an Sun Solaris) i can write some simple scripts,..... but now i will wirte a script with "mail". i would like to send a pdf file to a mail recipient. But if i try it with "mail -s "email@adress" < "filename(with path)" it... (3 Replies)
Discussion started by: scotty
3 Replies

2. Shell Programming and Scripting

HELP!!! how to send PDF file as an attachment using mailx

Hi, iam using the following command: uuencode file1.pdf file1.pdf|mailx - s "waz up?" xyz@domain.com Iam recieving an encoding error when i try to open the attachment. Pls help..very urgent!!! (1 Reply)
Discussion started by: Brat
1 Replies

3. UNIX for Advanced & Expert Users

how to send file as attachment with mail ?

hello , i m new to linux/unix , well in my college their is linux server to which we all (i and my frnds) login , we can send mail to each other through command "mail" . but any one can tell me how can i attached a binary file with mail. we are using red hat , "pine ", "mailx" , all... (2 Replies)
Discussion started by: alert_every1
2 Replies

4. Shell Programming and Scripting

Reading Delimited file and send mail with attachment

Hi All, My requirement is: 1. To read a file that contains log file location and server name. The format of the file is something like this : server_name1:logfilename1 server_name2:logfilename2 2. Now I wants to grep "error" string from the logfilename and put it into another file for... (3 Replies)
Discussion started by: acheiver
3 Replies

5. UNIX for Advanced & Expert Users

how to send file as attachment using mail or mailx

I have a need to send a file from the unix command line to be sent as an attachment. Is this possible? That is when I open my outlook email I need to file to appear as an attachment. Also, is there a way to use the mail binary (not mailx) to modify the "reply address". mailx -r works but I need... (1 Reply)
Discussion started by: kieranfoley
1 Replies

6. Shell Programming and Scripting

Send a file through email using cron as an attachment

Hi All, I want to send a file as an attachment through cron job.Is this possible using cronjob nd if it i, can you please let me know how to do this? Thanks (2 Replies)
Discussion started by: NARESH1302
2 Replies

7. Shell Programming and Scripting

want to send .csv file as an attachment using mailx command.

want to send .csv file as an attachment using mailx command. Please help!!! (1 Reply)
Discussion started by: gagandeep
1 Replies

8. Shell Programming and Scripting

Mailx command to send attachment file

Hi, I need to send a attachment which has space in the file name as: "ABC Data Extract.txt" which is present in the location /home/projects/txt i am using /home/projects/scripts mailx -s "Sub" email_id "/home/projects/txt/ABC Data Extract.txt" but i am not getting the attachment. (7 Replies)
Discussion started by: ATWC
7 Replies

9. UNIX for Dummies Questions & Answers

Send email attachment using Operating System Script(UNIX) in Oracle Alerts

Good Day Kindly assist: I am creating an Alert that will notify supervisors of staff members who are due for probation report. I am using Operating System Script(Unix) as source.I have already developed the script. Now the challenge is if there are 3 employee records then the alert... (2 Replies)
Discussion started by: nosi27
2 Replies

10. UNIX for Beginners Questions & Answers

MIME type for sending gzip file as attachment in email

Hello, I am trying to send a gzip file on email using below command but the zipped file received on email is corrupt. mailsend -smtp $smtpip -content-type 'application/x-gzip' -mime-type "application/x-gzip" -t $receiver -f $sender -sub "$subject" -M "$MSG" -attach $file file name is ... (1 Reply)
Discussion started by: tushar.modgil
1 Replies
HTTPRESPONSE(3) 							 1							   HTTPRESPONSE(3)

The HttpResponse

CLASS SYNOPSIS
HttpResponse HttpResponse o static void HttpResponse::capture (void ) o static int HttpResponse::getBufferSize (void ) o static bool HttpResponse::getCache (void ) o static string HttpResponse::getCacheControl (void ) o static string HttpResponse::getContentDisposition (void ) o static string HttpResponse::getContentType (void ) o static string HttpResponse::getData (void ) o static string HttpResponse::getETag (void ) o static string HttpResponse::getFile (void ) o static bool HttpResponse::getGzip (void ) o static mixed HttpResponse::getHeader ([string $name]) o static int HttpResponse::getLastModified (void ) o static string HttpResponse::getRequestBody (void ) o static resource HttpResponse::getRequestBodyStream (void ) o static array HttpResponse::getRequestHeaders (void ) o static resource HttpResponse::getStream (void ) o static float HttpResponse::getThrottleDelay (void ) o static string HttpResponse::guessContentType (string $magic_file, [int $magic_mode = MAGIC_MIME]) o static void HttpResponse::redirect ([string $url], [array $params], [bool $session = false], [int $status]) o static bool HttpResponse::send ([bool $clean_ob = true]) o static bool HttpResponse::setBufferSize (int $bytes) o static bool HttpResponse::setCache (bool $cache) o static bool HttpResponse::setCacheControl (string $control, [int $max_age], [bool $must_revalidate = true]) o static bool HttpResponse::setContentDisposition (string $filename, [bool $inline = false]) o static bool HttpResponse::setContentType (string $content_type) o static bool HttpResponse::setData (mixed $data) o static bool HttpResponse::setETag (string $etag) o static bool HttpResponse::setFile (string $file) o static bool HttpResponse::setGzip (bool $gzip) o static bool HttpResponse::setHeader (string $name, [mixed $value], [bool $replace = true]) o static bool HttpResponse::setLastModified (int $timestamp) o static bool HttpResponse::setStream (resource $stream) o static bool HttpResponse::setThrottleDelay (float $seconds) o static bool HttpResponse::status (int $status) CLASS MEMBERS
PROPERTIES
Static Properties +----------+-------------------------------+---+---+ |Modifiers | | | | | | | | | | | Type | | | | | | | | | | Name | | | | | | | | | | Description | | | | | | | | +----------+-------------------------------+---+---+ |protected | | | | | | | | | | | boolean | | | | | | | | | | cache | | | | | | | | | | whether caching the response | | | | | should be attempted | | | | | | | | |protected | | | | | | | | | | | boolean | | | | | | | | | | gzip | | | | | | | | | | whether the sent entity | | | | | should be gzip'ed on the fly | | | | | | | | |protected | | | | | | | | | | | string | | | | | | | | | | eTag | | | | | | | | | | the generated or custom ETag | | | | | | | | |protected | | | | | | | | | | | integer | | | | | | | | | | lastModified | | | | | | | | | | the generated or custom time- | | | | | stamp of last modification | | | | | | | | |protected | | | | | | | | | | | string | | | | | | | | | | cacheControl | | | | | | | | | | | | | | | Cache-Control setting | | | | | | | | |protected | | | | | | | | | | | string | | | | | | | | | | contentType | | | | | | | | | | the Content-Type of the sent | | | | | entity | | | | | | | | |protected | | | | | | | | | | | string | | | | | | | | | | contentDisposition | | | | | | | | | | the Content-Disposition of | | | | | the sent entity | | | | | | | | |protected | | | | | | | | | | | integer | | | | | | | | | | bufferSize | | | | | | | | | | the chunk buffer size used | | | | | for throttling | | | | | | | | |protected | | | | | | | | | | | double | | | | | | | | | | throttleDelay | | | | | | | | | | the seconds to delay when | | | | | throttling | | | | | | | | +----------+-------------------------------+---+---+ PREDEFINED CONSTANTS
+--------+--------------------------------------+---+ | Type | | | | | | | | | Name | | | | | | | | Description | | | | | | +--------+--------------------------------------+---+ |integer | | | | | | | | | REDIRECT | | | | | | | | guess applicable redirect method | | | | | | |integer | | | | | | | | | REDIRECT_PERM | | | | | | | | permanent redirect ( 301 Moved per- | | | | manently) | | | | | | |integer | | | | | | | | | REDIRECT_FOUND | | | | | | | | standard redirect ( 302 Found) | | | | | | |integer | | | | | | | | | REDIRECT_POST | | | | | | | | redirect applicable to POST requests | | | | ( 303 See other) | | | | | | |integer | | | | | | | | | REDIRECT_PROXY | | | | | | | | proxy redirect ( 305 Use proxy) | | | | | | |integer | | | | | | | | | REDIRECT_TEMP | | | | | | | | temporary redirect ( 307 Temporary | | | | Redirect) | | | | | | +--------+--------------------------------------+---+ PHP Documentation Group HTTPRESPONSE(3)
All times are GMT -4. The time now is 03:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy