Email Attachment


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Email Attachment
# 1  
Old 07-30-2003
Email Attachment

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 is exactly the same as attachment and can be read(its not junk).

2. When I use the following code
uuencode 1.pdf att.pdf > att1.uue
echo "Body of message" > t.txt
cat t.txt att1.uue |mailx -s "Test" abc@abc.com

For hotmail users again the mail goes perfect as attachment, but for yahoo users it goes as embedded text, and this time junk text.

Can anybody guide me, if there is any setting to be done or any solution for these issues?

Thanks
Prasad.
# 2  
Old 08-07-2003
Does it make any difference if you did this?

cat t.txt att1.uue > mymsg
mailx -s "Test" abc@abc.com <mymsg

Just wondering...

As any fyi, perderabo wrong some nifty scripts to send emails, etc. and you can do a search for mimetool.ksh...

uuencode sends files in binary format so I am not sure why your pdf file should be funky...but perderabo's program should take care of it...although his one limitation is the inability to send to several ppl at once.

Gianni
# 3  
Old 08-07-2003
If it goes from one system to another with no problems, then it probably isn't something you can do since the problem is actually on Yahoo's side, not yours. Testing to other sites could help but it would be very hard to fix the problem on Yahoo without their help.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Attachment in email

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

2. Shell Programming and Scripting

Not able to send attachment with the email

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)
Discussion started by: rafa_fed2
9 Replies

3. Solaris

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: uuencode sites.zip | mailx -s "testing" myname@mydomain.com When I open the .zip, the zip is empty. Looking around the we, I... (17 Replies)
Discussion started by: amb1s1
17 Replies

4. Shell Programming and Scripting

sending an email with attachment

Hi, Please help me in sending an e-mail with attachment through unix mailx command is not present in our unix box. (4 Replies)
Discussion started by: dudd9
4 Replies

5. Shell Programming and Scripting

Email Attachment Script

Hello, I created the following script but i'm trying to figure out why i keep getting an error. #!/usr/bin/perl -w use strict; use warnings; my $baseDir = '/export/home/omcadmin/bin'; my $attachment = "$baseDir/message.txt"; my $from = 'xxx@xxx.com'; my $to = 'xxx@xxx.com'; my... (10 Replies)
Discussion started by: xmaverick
10 Replies

6. Shell Programming and Scripting

sending an attachment through email

As a part of requirement I need to send out mails with attachment from UNIX. I have to take query the Oracle DB and send the result of the query in an attachment through mail. I use the following script for the same. #!/bin/csh #!/bin/bash #!/bin/ksh ATTFILE=/folder1/test.xls cd... (1 Reply)
Discussion started by: Sgiri1
1 Replies

7. AIX

Email with Attachment

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)
Discussion started by: piyushprabhakar
5 Replies

8. UNIX for Dummies Questions & Answers

how to deattach attachment of email

how to deattach attachment of email (4 Replies)
Discussion started by: kandati
4 Replies

9. Shell Programming and Scripting

Processing email attachment

I have a question about how to extract an attachment from an email and save it somewhere else. This is done on a RedHat Linux box. I have a daily report that is emailed as a text attachment. One of the project requirements is that the attachment has to be processed with no human intervention. ... (0 Replies)
Discussion started by: futoque
0 Replies

10. UNIX for Dummies Questions & Answers

Email Attachment

Is there a way to send an email attachment? So far no where I've looked has given me any leads. (2 Replies)
Discussion started by: Cyro
2 Replies
Login or Register to Ask a Question