Sent an email attachment, but the attachment is empty
I'm trying to send a .zip file from my unix box to my work email (email client outlook)
The file name that I'm trying to sent is sites.zip and this is how I do it:
When I open the .zip, the zip is empty. Looking around the we, I see that the reason is that I need to convert from unix format to dos format and I can do that by using unix2dos. But when I try I get an error:
Hi,
I have 2 questions regarding sending mail as attachment.
1. Using mime type (From Oracle tools which reside on UNIX)
When send the mail(txt file) as an attachment, on some servers like Hotmail, the email goes perfect as an attachment. But on some servers like yahoo, get embedded mail which... (2 Replies)
Hi,
I have .ksh file which internally calls a .sql file. This sql file writes a file with the result. I am using the following command to send email with the result file as attachment
uuencode file.txt file.txt | mail -s "Subject" abc@abc.com.
When i run the .ksh file i get a message you... (5 Replies)
Hi,
I want to send an email with multiple attachment using uuencode and mail command.
I am able to send with one attachment
Ex:uuencode abc.txt abc.txt | mail test@test.com -s "Test3"
Can anyone reply with syntax.
Regards
BS (3 Replies)
Hi All,
I am sending a mail with attachment only in this way.
But each time with attachment comes another attachment with the
name of "Testing.txt" which is just an empty text file how to remove this
thing please help
(uuencode ./file2.txt "Bad file")|mailx -s "Testing" maindola@rediff.com
... (7 Replies)
Hello all,
i am on hp-ux 11.23...i am trying to send an email as an attachement but it dose not seem to work...after reading on google i found that we can use uuencode to send file at attachement...here is my file and the syntax
$ cat test.txt
NAME
---------
TEST
$ uuencode... (7 Replies)
Hi All,
The below code is working fine for me.
mailx -s hello abc@xyz.com <<EOT
Hello !!!
How are you?
Regards
Rahul
EOT
But i am not able to send csv file with the mail .Getting just themail but not the attachment.
uuencode /path/s1.csv | mailx -s hello abc@xyz.com <<EOT... (9 Replies)
I have a file in unix, while i do email that file to some one from unix, the attachment file data is displaying in the email. (as body of the email).
but if the file has some special characters , the file is emailing as attachment.
But i need the file as the body in the email if it has special... (1 Reply)
Discussion started by: nani1984
1 Replies
LEARN ABOUT CENTOS
zip_fdopen
ZIP_FDOPEN(3) Library Functions Manual ZIP_FDOPEN(3)NAME
zip_fdopen - open zip archive using open file descriptor
LIBRARY
libzip (-lzip)
SYNOPSIS
#include <zip.h>
struct zip * zip_fdopen(int fd, int flags, int *errorp);
DESCRIPTION
The zip archive specified by the open file descriptor fd is opened and a pointer to a
struct zip, used to manipulate the archive, is returned. In contrast to zip_open(3), using the archive can only be opened in read-only
mode. The fd argument may not be used any longer after calling The are specified by or'ing the following values, or 0 for none of them.
ZIP_CHECKCONS Perform additional consistency checks on the archive, and error if they fail.
If an error occurs and errorp is it will be set to the corresponding error code.
RETURN VALUES
Upon successful completion zip_fdopen returns a
struct zip pointer, and fd should not be used any longer, nor passed to close(2). Otherwise, NULL is returned and *errorp is set to indi-
cate the error. In the error case, fd remains unchanged.
ERRORS
The file specified by fd is prepared for use by libzip(3) unless:
[ZIP_ER_INCONS]
Inconsistencies were found in the file specified by path and ZIP_CHECKCONS was specified.
[ZIP_ER_INVAL]
The flags argument is invalid. Not all zip_open(3) flags are allowed for see DESCRIPTION.
[ZIP_ER_MEMORY]
Required memory could not be allocated.
[ZIP_ER_NOZIP]
The file specified by fd is not a zip archive.
[ZIP_ER_OPEN]
The file specified by fd could not be prepared for use by libzip(3).
[ZIP_ER_READ]
A read error occurred; see for details.
[ZIP_ER_SEEK]
The file specified by fd does not allow seeks.
SEE ALSO libzip(3), zip_close(3), zip_error_to_str(3), zip_open(3)AUTHORS
Dieter Baron <dillo@giga.or.at> and Thomas Klausner <tk@giga.or.at>
NiH February 1, 2010 ZIP_FDOPEN(3)