Problem with mimesender


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Problem with mimesender
# 1  
Old 02-21-2012
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:
Code:
./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):
Code:
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:
Code:
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!
# 2  
Old 02-21-2012
Use smtp-cli it's good and provides you more features ...

Syntax:
Code:
Package :  smtp-cli &mdash; 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
# 3  
Old 02-21-2012
Thanks for this hint. May I use this on AIX? Are there any prerequisites?
# 4  
Old 02-21-2012
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

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

--Shirish Shukla
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

sed Or Grep Problem OR Terminal Problem?

I don't know if you guys get this problem sometimes at Terminal but I had been having this problem since yesterday :( Maybe I overdid the Terminal. Even the codes that used to work doesn't work anymore. Here is what 's happening: * I wanted to remove lines containing digits so I used this... (25 Replies)
Discussion started by: Nexeu
25 Replies

2. UNIX for Dummies Questions & Answers

Mimesender (Perderabo): no attachment in email message

Hello, all, I have been trying to use what Perderabo has given to send attachment via email., but I am not getting the attachments, what I see on the receiving email system are the attachments contents inside the body of the received email. No attachment icon shows in the received email. I am on... (3 Replies)
Discussion started by: gio001
3 Replies

3. IP Networking

Problem with forwarding emails (SPF problem)

Hi, This is rather a question from a "user" than from a sys admin, but I think this forum is apropriate for the question. I have an adress with automatic email forwarding and for some senders (two hietherto), emails are bouncing. This has really created a lot of problems those two time so I... (0 Replies)
Discussion started by: carwe
0 Replies

4. AIX

AIX OS problem? network problem?

Dear ALL. I installed AIX OS on customer sites. but Only one site is too slow when I connected telnet, ftp.. Ping is too fast. but telnet and FTP is not connected.. of course i check the configuration file on aix but it's normal. Do any Idea?? thanks in advance. - Jun - (3 Replies)
Discussion started by: Jeon Jun Seok
3 Replies

5. UNIX for Dummies Questions & Answers

DHCP problem and eth1 problem

At work I am trying to get this one Linux machine (let's call it ctesgm07) to behave like another Linux machine that we have (let's call it test007). test007 returns the following version info: cat /etc/debian_version: lenny/sid uname -a: Linux test007 2.6.27-7-generic #1 SMP Tue Nov 4... (0 Replies)
Discussion started by: sllinux
0 Replies

6. Red Hat

Mail Problem. Maybe, it is a DNS Problem!

Hi, i've a redhat linux 9 upadated by redhat from 7 version to 9 version. A couple of days ago i was a problem with my mail, in other words i'm not able to get any email nor to send any email. I've a proxy configuration and i tried to set iptables in order to verify the port. The 110,255 and 995... (1 Reply)
Discussion started by: pintalgi
1 Replies

7. AIX

user login problem & Files listing problem.

1) when user login to the server the session got colosed. How will resolve? 2) While firing the command ls -l we are not able to see the any files in the director. but over all view the file system using the command df -g it is showing 91% used. what will be the problem? Thanks in advance. (1 Reply)
Discussion started by: pernasivam
1 Replies

8. UNIX for Dummies Questions & Answers

Unable to use mimesender to send attachments with spaces in the file names / paths

Hello, I found the mimesender multiple attachment emailing shell script in the FAQ of these forums, and I have been able to use it to send multiple files, but only if they don't have spaces in their file name or path. When I attempt to send a file with spaces in it's name, enclosed... (0 Replies)
Discussion started by: rsmorra
0 Replies

9. Shell Programming and Scripting

ssh script problem problem

Hi Please help me with the following problem with my script. The following block of code is not repeating in the while loop and exiting after searching for first message. input_file ========== host001-01 host001-02 2008-07-23 13:02:04,651 ConnectionFactory - Setting session state... (2 Replies)
Discussion started by: pcjandyala
2 Replies

10. Shell Programming and Scripting

BCC address not working (mimesender)

I modified the following mimesender script so I can send also to BCC adresses: https://www.unix.com/showthread.php?t=17065 Everything is working and correct. Except the email address(es) in BCC are not delivered. When I set the debug-mode ON I can see the BCC header and when I receive the... (1 Reply)
Discussion started by: michaelv
1 Replies
Login or Register to Ask a Question