09-12-2011
2GB is two
thousand times larger than the maximum size I consider 'polite' to send over email -- 1 megabyte. Even these days I doubt it would fit in a lot of people's inboxes, and many email servers would rather time out than wait hours on end for the file to get uploaded and downloaded.
How well the file compresses depends on what it is. Text can compress very well, but the compression you get for anything else are unpredictable. Unless you get
extremely efficient compression, it's not going to help a lot since you have to beat the 25+%
overhead base64 email encoding uses to send binary files.
There's three ways I'd usually handle this:
- Set up a file server on the UNIX server(http, ftp, sftp, things like that) Windows needs to retrieve the file from, so the Windows user can download the file at their leisure. What kind of server depends on what features you need, what programs have to use it, and what kind of security is necessary.
- Set up a file server on the Windows machine(usually FTP) so the UNIX machine can upload the file automatically to the Windows one.
- Find a smarter way to bundle up the necessary data. Do they really need the entire 2-gigabyte monolith, every single time?
Last edited by Corona688; 09-12-2011 at 12:44 PM..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi, Gurus,
I need some help with sending mail out from my UNIX server:
It is running Solaris 2.6 and the sendmail version is 8.8.
Output of :/usr/lib/sendmail -d0.1 -bt < /dev/null
Version 8.8.8+Sun
Compiled with: LOG MATCHGECOS MIME7TO8 MIME8TO7 NAMED_BIND NDBM NETINET
... (5 Replies)
Discussion started by: b5fnpct
5 Replies
2. AIX
Hi,
I wish to send a mail via ksh using this command:
cat mailfile | mail -s "My Project." gio123bg@hel.com
Is it necessary to configure some file? If yes, in which way? May you explain me all steps necessary to implement the above command?
Many thanks in advance for your kind... (0 Replies)
Discussion started by: gio123bg
0 Replies
3. AIX
Has anyone written a script to attach a file when sending an email using the mailx command? (1 Reply)
Discussion started by: mintu41
1 Replies
4. UNIX for Dummies Questions & Answers
Using Mailx command i.e
mailx -s "subject" chinni@hotmail.com < \tmp\chin
this command executed sucessfully but not able to receive the mail in chinni@hotmail.com
please help. (1 Reply)
Discussion started by: chinnigd
1 Replies
5. AIX
Whenever i send a mail like: mail <mail id>, a core file is created under /var/spool/mqueue/ path. This is increasing the space of the file system. Why is that core file get created. Does it happens normally. I am getting an errpt error as:
LABEL: CORE_DUMP
IDENTIFIER: B6048838
... (0 Replies)
Discussion started by: sreereddy
0 Replies
6. Programming
Hi All,
Our application is designed to send the emails. we use standard C lib to send the mails using send() function. This works fine on Solaris,HP UX and windows, but on AIX the performance is very slow. it takes around 32 sec to send a simple mail whereas in Solaris 2-3 sec. I would like to... (2 Replies)
Discussion started by: shrihari_s
2 Replies
7. AIX
Hi... help me please
Previously, my server could send the email from deamon to out side but now it could not. I tried to use command "mailq -v", it show error as below that "alias database unavailable". Does anyone help me, what should I fix?
... (1 Reply)
Discussion started by: mis1864
1 Replies
8. Shell Programming and Scripting
Hi,
I have the below code for sending email from AIX unix.
I need the body of the mail should content of errornotify.txt file. i tested with cat errornotify.txt, it is not working...Also i need multiple attachments.
Can you please help me out on this.
(
echo "From:cus@xxx.xx.com"
echo... (3 Replies)
Discussion started by: rsivasan
3 Replies
9. UNIX for Advanced & Expert Users
Hi all,
I want to send a mail for my business needs from outlook account to an unix server (HP-UX) but I don't send any mail. While I can send from the unix server to my outlook account, I can't send from outlook to unix.
How can I achieve this ? How can I send a mail from my outlook or other... (2 Replies)
Discussion started by: igelegin
2 Replies
10. Shell Programming and Scripting
Hi,
My OS version is AIX 7.1. I am trying to send an email with a file to my mail address. sendmail or uuencode does not work. Can someone give me the correct format ?
I use:
uuencode <file name> | mail -s "subject" emailaddress
Thanks
Use code tags, thanks. (3 Replies)
Discussion started by: Nagesh_1985
3 Replies
LEARN ABOUT PHP
mb_send_mail
MB_SEND_MAIL(3) 1 MB_SEND_MAIL(3)
mb_send_mail - Send encoded mail
SYNOPSIS
bool mb_send_mail NULL NULL (string $to, string $subject, string $message, [string $additional_headers], [string $additional_parame-
ter])
DESCRIPTION
Sends email. Headers and messages are converted and encoded according to the mb_language(3) setting. It's a wrapper function for mail(3),
so see also mail(3) for details.
PARAMETERS
o $to
- The mail addresses being sent to. Multiple recipients may be specified by putting a comma between each address in $to. This
parameter is not automatically encoded.
o $subject
- The subject of the mail.
o $message
- The message of the mail.
o $additional_headers (optional)
- String to be inserted at the end of the email header. This is typically used to add extra headers (From, Cc, and Bcc). Multiple
extra headers should be separated with a CRLF (
).
Note
When sending mail, the mail must contain a From header. This can be set with the $additional_headers parameter, or a default
can be set in php.ini.
Failing to do this will result in an error message similar to Warning: mail(): "sendmail_from" not set in php.ini or custom
"From:" header missing. The From header sets also Return-Path under Windows.
Note
If messages are not received, try using a LF (
) only. Some Unix mail transfer agents (most notably qmail) replace LF by
CRLF automatically (which leads to doubling CR if CRLF is used). This should be a last resort, as it does not comply with RFC
2822.
o $additional_parameter
-$additional_parameter is a MTA command line parameter. It is useful when setting the correct Return-Path header when using send-
mail.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
CHANGELOG
+--------+---------------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+---------------------------------------------------+
| 5.0.0 | |
| | |
| | The Content-Type and Content-Transfer-Encoding |
| | headers may be redefined as of PHP 5.0.0. Before |
| | this time, the values defined by mb_language(3) |
| | are always used. |
| | |
+--------+---------------------------------------------------+
SEE ALSO
mail(3), mb_encode_mimeheader(3), mb_language(3).
PHP Documentation Group MB_SEND_MAIL(3)