Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2006
    Posts
    3

    Unanswered: attachement in the email

    Hi All,

    Am using the below script to send the attachement , its working perfectly fine.

    EMAIL_ATTACH_FILE=/export/home/oracle/report/report.txt

    /usr/bin/mailx -s "${SUBJECT}" ${TO} <<-EOF
    Hi,

    REPORT FOR INVALID...

    Regards,

    `unix2dos $EMAIL_ATTACH_FILE | uuencode $EMAIL_ATTACH_FILE`


    ~.
    EOF

    echo "Done!"




    But the attached file name is coming up with _export_home_oracle_report_report.txt instead of report.txt

    Can someone please suggest me ...

    Thanks
    Riah.

  2. #2
    Join Date
    May 2005
    Location
    South Africa
    Posts
    1,365
    Provided Answers: 1
    The uuencode parameter specify the name you want to assign to the attached file i.e.

    `unix2dos $EMAIL_ATTACH_FILE | uuencode report.txt`

  3. #3
    Join Date
    Nov 2006
    Posts
    3
    Hi,

    This has solved my problem...

    Thank very much for your reply..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •