in reply to Sending Email Attachment

Try an attachment type change from TEXT to 'application/vnd.ms-excel'.

Phil

Replies are listed 'Best First'.
Re^2: Sending Email Attachment
by eric256 (Parson) on Feb 19, 2007 at 17:43 UTC

    Okay that worked perfectly. Is there a type I can use that will work no matter what type of file it is?


    ___________
    Eric Hodges

      No, that's the whole point of MIME types: to identify the format of the data in the file so the receiving tool can decide to handle it or pass it off.

      You might want to use File::MimeInfo or the 'file' command on unix to identify the appropriate MIME type for a file.

      --
      Clayton

        I found out that if you have MIME::Types installed you can use 'AUTO' as the type and MIME::Lite will do the work for you. Thanks.


        ___________
        Eric Hodges