Sponsored Content
Full Discussion: Problem with mimesender
Top Forums Shell Programming and Scripting Problem with mimesender Post 302600428 by keyboarder2k on Tuesday 21st of February 2012 05:41:51 AM
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!
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
SYSTEMD-DEBUG-GENERATOR(8)				      systemd-debug-generator					SYSTEMD-DEBUG-GENERATOR(8)

NAME
systemd-debug-generator - Generator for enabling a runtime debug shell and masking specific units at boot SYNOPSIS
/lib/systemd/system-generators/systemd-debug-generator DESCRIPTION
systemd-debug-generator is a generator that reads the kernel command line and understands three options: If the systemd.mask= option is specified and followed by a unit name, this unit is masked for the runtime, similar to the effect of systemctl(1)'s mask command. This is useful to boot with certain units removed from the initial boot transaction for debugging system startup. May be specified more than once. If the systemd.wants= option is specified and followed by a unit name, a start job for this unit is added to the initial transaction. This is useful to start one or more additional units at boot. May be specified more than once. If the systemd.debug_shell option is specified, the debug shell service "debug-shell.service" is pulled into the boot transaction. It will spawn a debug shell on tty9 during early system startup. Note that the shell may also be turned on persistently by enabling it with systemctl(1)'s enable command. systemd-debug-generator implements systemd.generator(7). SEE ALSO
systemd(1), systemctl(1), kernel-command-line(7) systemd 237 SYSTEMD-DEBUG-GENERATOR(8)
All times are GMT -4. The time now is 02:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy