Sending Multiple Attachments using MAILX

I have created a shell scripts and wanted to email users multiple attachments using mailx. I noticed that when I do a man on mailx I see and -a option for attachments. When I run a:

mailx -s "test attachments" -a include_file -a exclude_file testuser@mydomain.com
(Interrupt -- one more to kill letter)
EOT

I had to do a control D to send it. What is the trick to getting it to work?

The site of reference

http://www.cyberciti.biz/faq/howto-unix-sending-files-as-mail-attachments/

I noticed that when I do a man on mailx I see and -a option for attachments. When I run a:

Hello!

Per forum rules, and the benefit of all users, please search the forums before posting a question.

You can easily search the forums using our internal Google search engine or our advanced internal search engine. You can also search our huge UNIX and Linux database by user generated tags or search the database for unanswered questions and provide an answer.

Thank you.

The UNIX and Linux Forums