![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| uuencode for attachment giving problem | manojram | UNIX Desktop for Dummies Questions & Answers | 3 | 11-19-2008 08:20 PM |
| Binary txt file received when i use uuencode to send txt file as attachment | ash22 | UNIX for Dummies Questions & Answers | 2 | 04-24-2008 08:03 PM |
| mailx commannd - Mail and Attachment in same mail | sharif | UNIX for Advanced & Expert Users | 6 | 03-19-2008 04:25 PM |
| send attachment without uuencode | panchpan | UNIX for Advanced & Expert Users | 3 | 03-14-2008 09:08 AM |
| uuencode: command not found when sending mail in LINUX | bsandeep_80 | UNIX for Advanced & Expert Users | 2 | 10-02-2007 08:48 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Uuencode problem in mail attachment
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 of characters such as "begin 644 test.dat.gz M'XL(".XO%T0 V-I<V9I0C$W,#%S+F1A= #LG<MZVSB6Q_?]%%A6?9VH<"7! M)431,MT4J2(E5<4[5^+N]GR)79/+8MZAGVC>:!:SFA>8<P!2HBU1@M*JBASC M+!R&^HL"0! _'EP.+B?9.%]49)+760K_9B5)EUFY,&1LRM34N2%/K;Y]^_#Q" parsed in the body of the mail. Any ideas? |
|
||||
|
It goes something like this...
gzip test.dat uuencode test.dat.gz test.dat.gz | mailx -s "Uuencode Test file" mymail@hotmail.com coderetour=$? if [ $coderetour -ne 0 ] .... |
|
||||
|
As I said before, the same script has been working fine for quite some time.
The only evident difference I can think of is that it's growing in size. Nowadays it's measuring more than 3MB. Can this have something to do? Should this be a problem? |
|
||||
|
That is why I am asking what your mail server is. It may not be your script if that script hasn’t changed. But it could be something to do with your mail sever not accepting mail with attachment bigger that 2 MB. Check your mail server too. Are you positive that they were no change to your mail server?
|
|
||||
|
You can test your SMTP server by telneting to port 25 and entering the EHLO command.
Code:
$ telnet yourSMTPhost 25 Trying... Connected to yourSMTPhost.yourdomain.com. Escape character is '^]'. 220 message showing your mail service and version ehlo somedomain <== You type this in 250-yourSMTPhost.yourdomain.com Hello [IP ADDRESS] ... some parameters ... 250-SIZE 2097152 <== This is what you are looking for (2 MB limit) ... some more parameters ... 250 OK QUIT <== Don't forget to quit |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|