LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 03-15-2004, 01:39 PM   #1
stv_t
Member
 
Registered: Oct 2003
Location: Gatwick, UK
Distribution: Mandrake 9.1, Mandrake 9.2, Redhat 9.0
Posts: 47

Rep: Reputation: 15
Composing and sending HTML mail from mailx


Hi,

I have a number of ksh scripts which are running under Solaris 2.6. Each script dynamically builds up a file which has to be mailed to a number of MS Windows PCs using the standard 'mailx' mail program on Unix. This has been done and works without any problem.

However what I now need to do is to build and mail the file as an HTML mail file so that the Windows PC's can highlight sections of the mail with different colours, using bold text and underlining etc.

Does anyone know if this can be done and, if it can, what needs to be done on the to ensure that the the mail is displayed with the HTML highlighting rather just displaying the HTML code



stv T
 
Old 03-15-2004, 02:03 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Can't you just include it as an attachment? I do believe that most MS mailreaders show the content right away (I'm not a windows user, so please correct me if I'm wrong).

The next part might trigger a heated discussion, which is not what I'm after.... But I do think that mail should be sent the way it is intended and 'html-mail' is not one of those ways.

Just my 2 cents.
 
Old 03-15-2004, 03:23 PM   #3
stv_t
Member
 
Registered: Oct 2003
Location: Gatwick, UK
Distribution: Mandrake 9.1, Mandrake 9.2, Redhat 9.0
Posts: 47

Original Poster
Rep: Reputation: 15
I know what you mean, however the users want any errors to be high-lighted, as the scripts build up a status report. They also want in e-mail rather than as an attachment for some reason.
Unfortunately I'm not a Windows user either but have tried sending HTML in the e-mail and Windows just displays the HTML code. I presume that there should be something extra in the header of the e-mail

Stv T
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending HTML email via mailx grao75 Linux - Networking 1 11-08-2005 09:48 AM
Sending attachments using mailx wolfman423 Linux - Newbie 0 10-14-2005 08:27 AM
problem composing html email. firedude Linux - Software 1 09-12-2005 09:05 AM
composing html mail in kmail.... LinToWinWin Linux - Software 3 08-26-2005 08:03 AM
mail(mailx) to be nullclient? Chowroc Linux - Networking 0 12-18-2004 05:17 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 10:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration