Email Attachment to Client.

Hi All,

I have a Requirement to Send some PDF files to Some Client Emails.
E.g : 1234_XXX.pdf

1234 is Invoice Number .

There will be a table which will have Invoice Number column and Email address column which we need to use.

My shell Script should refer that table and get the Email address from that table and trigger that email with PDF attached.

Please do provide in case of any sample script.

There really isn't enough information her to help you...
Could you provide sample data?
Is this table a flat file or in a DB?
Have you mailx installed or what is your preferred mail command?
Have you an SMTP server configured?
What have you tried?