Operating System - HP-UX
1748139 Members
3962 Online
108758 Solutions
New Discussion юеВ

Re: Need to send an attachment from HPUX 11.11 to windows client

 
Sreer
Valued Contributor

Need to send an attachment from HPUX 11.11 to windows client

Hi Gurus,
I need to send mails from my unix box to my outlook in windows system

sendmail is already configured.

i tried uuencode ..but not receving the attachment but some junk info.

uuencode sysinfo.tgz sysinfo.tgz|mailx -s 'dmsco11' -r sree.r@xx.com sreekumar.r@xx.com

both unix domain and windows domainare alredy linked.

thnx for your help.

6 REPLIES 6
Manix
Honored Contributor

Re: Need to send an attachment from HPUX 11.11 to windows client

uuencode filename | mailx -m -s "subject" email_address

Try this please.
HP-UX been always lovable - Mani Kalra
Jose Mosquera
Honored Contributor

Re: Need to send an attachment from HPUX 11.11 to windows client

Hi,

What user is trying to send it? Have enough profile to search and execute of the uuencode command? From this user try:
#whence uuencode
If a full path and command are displayed is fine, else you must uses the full path reference to the command into your piped sentence.

Please try with sendmail command:
uuencode sysinfo.tgz sysinfo.tgz|sendmail sree.r@xx.com

Rgds.
Jose Mosquera
Honored Contributor

Re: Need to send an attachment from HPUX 11.11 to windows client

Hi,

A mail message consists of two main sections: a message header and a message body. The header contains information such as who sent the message and when it was sent. The body contains the actual message text. Some people finish their messages with an optional third part known as a "signature." Each of these mail message sections is described in detail in the following sections.
Message headers: are constructed for you automatically by mail software known as "mail user agents" (MUA) and "mail transport agents" (MTA). In fact, the presence of certain items in the header, such as carbon copies and receipt notification, depend on the sophistication of the mail software itself.
The message body: is separated from the message header by a single blank line. The message body contains the actual text of the message.

The protocol for sending e-mail over the Internet (SMTP) allows only for the transmission of ASCII text characters. Therefore, binary files (i.e: .gz, .tgz) are not directly supported. The preferred method for sending binary data is to use a mail program that supports Multi-purpose Internet Mail Extensions (MIME).

HP-UX uses the uuencode program to convert a binary file to ASCII text. On the receiving end, the uudecode program to convert the data back to binary.

Please check the MIME decoder used in your client side (i.e: Outlook)to covert the attached binary file. Select "uudecode".

Rgds.
Rita C Workman
Honored Contributor

Re: Need to send an attachment from HPUX 11.11 to windows client

You can do a search here 'mail attachments' or mail attachments mime'

Some folks use uuencode, some folks like mpack. Here's one using the include statement.

Create a file, I'll call this one dummy.include-file, with the contents that look like this for pdf

I create two lines in the file.
The first goes to a file that has a standard email message that it puts in the body. The next line sends the attached file.

[include /path/my message text/plain base64]
[include application/adobe base64]

You can put as many succeeding files as you wish, each on a separate line. Then just email them like this:

elm -s "test sending pdf files to Exchange" yourname@company.com < dummy.include-file

Others will have more suggestions,
Regards,
Rita

Steven E. Protter
Exalted Contributor

Re: Need to send an attachment from HPUX 11.11 to windows client

Shalom,

Try this script:
http://hpux.ws/mailfile2

Change the recipient please.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Khasim_Shaik
New Member

Re: Need to send an attachment from HPUX 11.11 to windows client

Hi All,

 

I need a help here ... I am trying to send attachment using mailx command on HP-Unix server to Windows outlook and I am using following command

 

uuencode filename filename | mailx -m -s "subject"  xxx@yy.com

 

But it is  pasting the contents of the file  as a body of the mail and the content is in encoded format

 

can any one help me to send the attachment without currupting the content

 

Thank in advance