Problem with mimesender

Hi there,

I was looking for a script to send mails with attachment(s) and I found mimesender here in the forums.

But I've got some difficulties to get it working.

Here is the command I submit on the shell:

./mimesender -t to@mail.com -T "To Name" -f frommail -F "From Name" -b body.txt -s "TEST Subject" -X body.txt

But all I get is this (without the file attached):

Thats the body!--=== This is the boundary between parts of the message. ===--
Content-Type: text/plain; name="body.txt"
Content-Transfer-Encoding: x-uue
Content-Disposition: attachment; filename="body.txt"

begin 0 body.txt
05&AA=',@=&AE(&)O9'DA#0``
`
end

Here is the debug code from the script:

DEBUG: Debug Mode is on...no mail will be sent
DEBUG: pwentry = root:!:0:0::/:/usr/bin/ksh
DEBUG: myaddr = root
DEBUG: myname =
DEBUG: Attachment 0 body.txt X body.txt
DEBUG: PIPELINE = cat body.txt| sed "s/$/${CR}/"|uuencode body.txt
DEBUG:
DEBUG:
DEBUG: mta arg = to@mail.com
DEBUG:
DEBUG: start of mail
DEBUG: From: From Name <frommail>
DEBUG: Sender:  <root>
DEBUG: To: To Name <to@mail.com>
DEBUG: Subject: TEST Subject
DEBUG: X-Mailer: mimesender 0.0
DEBUG: Mime-Version: 1.0
DEBUG: Content-Type: multipart/mixed;
DEBUG:     boundary="=== This is the boundary between parts of the message. ===--"
DEBUG:
DEBUG:
DEBUG:         This message is in MIME format.  But if you can see this,
DEBUG:         you aren't using a MIME aware mail program.  Some parts of
DEBUG:         of this message have been uuencoded for transport.  On a Unix
DEBUG:         system, the program uudecode should be used to restore the file.
DEBUG:
DEBUG: --=== This is the boundary between parts of the message. ===--
DEBUG: Content-Type: text/plain; charset=US-ASCII
DEBUG:
DEBUG: Thats the body!--=== This is the boundary between parts of the message. ===--
DEBUG: Content-Type: text/plain; name="body.txt"
DEBUG: Content-Transfer-Encoding: x-uue
DEBUG: Content-Disposition: attachment; filename="body.txt"
DEBUG:
DEBUG: begin 0 body.txt
DEBUG: 05&AA=',@=&AE(&)O9'DA#0``
DEBUG: `
DEBUG: end
DEBUG:
DEBUG: --=== This is the boundary between parts of the message. ===----
DEBUG: end of mail

May you help me?
Thank you!

Use smtp-cli it's good and provides you more features ...

Syntax:

Package :  smtp-cli � command line SMTP client 
smtp-cli Syntax :
/usr/bin/smtp-cli --disable-starttls --missing-modules-ok --host <SMTP-Server-IP>\
 --port 25 --hello-host "$host" --from=" LINUX TEAM <linuxteam@mydomain.com>"\
 --to="to-mail-id" --cc="cc-mail-id" --subject="Date $(date) .. Reports " --body-html="<html>
<body>
<font size=2 color=black face=arial>
Dear Team,

Thank You and Regards,<br />
Linux Team<br />
<hr align=left color=yellow width=36% />
</body>
</html>"

--Shirish Shukla

Thanks for this hint. May I use this on AIX? Are there any prerequisites?

Have used it over Linux distro.. so can;t say.. it will work or not .. you can try ... it's opensource ..
Also you can try mutt for AIX with below syntax...
Download the pack from Source url
gnome
03.ibm

Syntax..
echo �AM ATTACHING A FILE� | mutt -a  MY-FILE.bz2  -s �FIND ATTACHED FILE�   shirish@mydom.com

--Shirish Shukla