How to send a file in email from Solaris box to MS outlook 2010


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to send a file in email from Solaris box to MS outlook 2010
# 1  
Old 01-04-2013
How to send a file in email from Solaris box to MS outlook 2010

Hi

I have input file in solaris machine and my question is..,how to send email that input file to Microsoft outlook 2010 in excel /xls format.
# 2  
Old 01-04-2013
Use some CSV format. Use the semicolon ';' as field separator,
so MS Excel could open the file .csv directly.
Then use uuencode and mailx to send the file as an attachment:

Code:
uuencode <filename> <filename> | mailx -s 'your subject' mail@address ...

# 3  
Old 01-04-2013
Thanks for reply i tried what you posted here but after running the syntax it took longer time and if i enter ctrl+c i got below output and also got email with just subject with out attachment.

please see below input and output

Code:
Input: bash-3.2$ uuencode /users/input.txt | mailx -s test  xxx@exa.com
^C
(Interrupt -- one more to kill letter)


Last edited by Scott; 01-04-2013 at 05:21 PM.. Reason: Code tags
# 4  
Old 01-04-2013
radoulov clearly mentioned to pass file name twice to uuencode also use -m option with mailx
Code:
uuencode /users/input.txt input.txt | mailx -m -s test xxx@exa.com

# 5  
Old 01-04-2013
You need to put the filename twice (the second one is the name of the email attachment), eg:

Code:
uuencode /users/input.txt input.txt | mailx -s test  xxx@exa.com

Once you do this, the command should not hang.
# 6  
Old 01-04-2013
Great it worked and Thanks so much.New to this forums and am so impressed with replies.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Copy files from windows outlook in to UNIX box.

HI All, I am using a windows RDP machine . from the RDP i am opening a putty session of a unix server.i have outlook installed in the windows RDP machine, and if i get a file inthe outlook mail how can i copy it to a location in the putty unix machine. Please help me!!!! (3 Replies)
Discussion started by: mahesh300182
3 Replies

2. UNIX and Linux Applications

Send email from outlook to server

Hi, I am sending an email from Microsoft Outlook 2010 (microsoft exchange) to a unix server. I am not receiving the email in server but I am getting the following error in outlook. Your message: From: x@y.com Subject: Could not be delivered because the domain name was... (4 Replies)
Discussion started by: Neethu
4 Replies

3. OS X (Apple)

outlook 2010 issue on Mac

I just got Apple MAC, another user left the company. So I am taking over the support for Mac. Any way, after setting up the MS- Outlook on Mac, I don't see " Archive " folder. I do see all other folders, on my Windows 7 laptop I do see the Archive. Any idea why I don't see that on MAC ? ... (1 Reply)
Discussion started by: samnyc
1 Replies

4. Shell Programming and Scripting

Script to send email after comparing the folder permissions to a certain permission & send email

Hello , I am trying to write a unix shell script to compare folder permission to say drwxr-x-wx and then send an email to my id in case the folders don't have the drwxr-x-wx permissions set for them . I have been trying to come up with a script for few days now , pls help me:( (2 Replies)
Discussion started by: nairshar
2 Replies

5. Solaris

Send an email from Solaris using Linux email server

Hello everyone I have a problem and I need your help: I have a Solaris 10 and Solaris 8 UNIX Servers, and Linux Centos4 as email server. I need send an email from Solaris servers preferably using Centos4 email server. I have no mail service configured in my Solaris computers (1 Reply)
Discussion started by: aflores
1 Replies

6. UNIX for Dummies Questions & Answers

How to send email from HP Unix box

Hi everyone, I am new to HP/UX and I would like to know if there is a way to receive system alerts and logs via email on daily bases. Recently our system crashed due to Hard Disk failure, and since then we are checking ELM every day. I would like to automate that process and have UNIX mail send... (3 Replies)
Discussion started by: eurouno
3 Replies

7. Solaris

Send email from solaris to exchange

Can i send e-mail from solaris to exchange?How can i configure the solaris?thks. (1 Reply)
Discussion started by: jowvid
1 Replies

8. UNIX for Advanced & Expert Users

Unable to send eMail from a UNIX-Host ( using mailx ) to a Outlook-email-addres(Win)

Hi A) I am able to send eMail using mailx from a UNIX ( solaris 8 ) host to my Outlook-email-ID : FName.Surname@Citigroup.com ( This is NOT my actual -eMail-ID). But in Outlook the "From :" eMail address is displayed as " usr1@unix-host1.unregistered.email.citicorp.com " .i.e the words... (2 Replies)
Discussion started by: Vetrivela
2 Replies

9. UNIX for Dummies Questions & Answers

using mailx to send a log file to my outlook e-mail account

I like to use mailx -s to send an entire xxxxx.log to my outlook e-mail account. Any help will be appreciated. Thanks. (6 Replies)
Discussion started by: simt
6 Replies

10. UNIX for Dummies Questions & Answers

email file to Outlook using fixed font

I have a unix script that emails output from a sql script. Problem is that the email, once received in Outlook, is in a variable width font which misaligns the columns (I assume it picks up the users default font). Is there any way to send the desired fixed-width font to Outlook via mailx or elm?... (1 Reply)
Discussion started by: tonimac_az
1 Replies
Login or Register to Ask a Question