If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > Sending HTML formatted file from Solaris 9 command line?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-02-06, 18:04
bluwulf bluwulf is offline
Registered User
 
Join Date: Oct 2004
Posts: 31
Sending HTML formatted file from Solaris 9 command line?

I'm trying to send an email with a file attachment from a Solaris 9 box using the follwoing:



Code:
(/usr/bin/cat file_containig_body_of_email.txt; /usr/bin/uuencode file1.txt file1.txt) | /usr/bin/mailx -c  "address1@domain.com" -s "This is a test" "address2@domain.com" "address2@domain.com"
Where file_containig_body_of_email.txt contains the body of the email, example This is the body of the email


The above works for emails where the body of the email is in plain text, however I would like to send the body of the email (with file attachment) formatted using HTML., as you can see the above command simply dumps whatever is in file_containig_body_of_email.txt file in the message body of the email, obviously, I can't simply put the HTML formatted message in the
file_containig_body_of_email.txt
.

Is there an alternative way of doing this using only mailx and/or sendmail ?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On