I guess the egg is on my face, the problem was indeed a setting on the
mailserver I use as a relay host.

Thanx for the good suggestions.

Blayne
________________________________________________________
G. Blayne Davidson, II         When the only tool you own is a hammer,
System Programmer           every problem begins to resemble a nail.
Goody's Family Clothing                        -Abraham Maslow
[EMAIL PROTECTED]
865-966-2000 x 1876


                                                                                       
                                 
                    "Dan Harkless"                                                     
                                 
                    <dan-nmh@dilvish.        To:     [EMAIL PROTECTED]             
                                 
                    speed.net>               cc:                                       
                                 
                                             Subject:     Re: Rich text and scripts    
                                 
                    03/15/01 21:35                                                     
                                 
                                                                                       
                                 
                                                                                       
                                 





"BDAVIDS/Goodys" <[EMAIL PROTECTED]> writes:
> I am running nmh 1.0.4 on an IBM RS/6000 running AIX 4.3.2.
> I'm trying to write a ksh script that will pick up a file that has rich
> text and maybe attachments, run mhbuild on the file and send the file.
> When I create my file and then run the script, the file gets sent, but
> loses the rich text formatting (attachments show up as expected). If I
> create the exact same file using comp and calling mhbuild from the
whatnow?
> prompt, the message shows up with all the rich text formatting intact.
>
> Some more specifics about my configuration:
> my mts is sendmail, but sendmail uses an smtp relay host (Lotus Domino
mail
> server) to send email to the non-unix side of our domain.
> Microsoft Outlook and Netscape Messenger are the mua's I'm sending the
> e-mails to.
>
> Here is the text of the script
>
> #!/bin/ksh
>
> FILE=$1
>
> [[ ! -f $FILE ]] && echo "ERROR: File $FILE does not exist" && exit 2
> [[ $(head -1 $FILE |grep -i ^to: >/dev/null 2>&1;echo $?) -ne 0 ]] &&
echo
> "ERROR: The first line of the file to be sent must be To: <receipient>"
&&
> exit 1
>
> /usr/bin/mhbuild $FILE
> /usr/bin/send $FILE

nmh doesn't know anything about richtext, so either your script isn't
creating your mails correctly or your SMTP relay host is messing them up.
Can you send a mail containing examples of a (post-`mime'-command)
manually-created draft and one created by your script?  Don't send them as
MIME attachments, so your relay host won't have a chance to mess them up.

-----------------------------------------------------------------------
Dan Harkless                   | To prevent SPAM contamination, please
[EMAIL PROTECTED]      | do not post this private email address
SpeedGate Communications, Inc. | to the USENET or WWW.  Thank you.




Reply via email to