Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How do I automate mailing attachments?

14 views
Skip to first unread message

Chris Plachta

unread,
Mar 22, 1998, 3:00:00 AM3/22/98
to

I'm trying to figure out a way to script the process of mailing file
attachments, rather than having to do it through Netscape mail.

Let me give a little background on my problem. I run a small business
that provides text file reports to my customers. I run a Linux box
using Redhad software. The software that I write is primarily in perl.
I've tried to send these reports in the body of a email message by
simply using the "mail" command, but many users would not receive the
email properly.

I found that if I manually go into Netscape mail and send the text file
as an attachement, these problems go away. The problem is, I don't want
to have to do this by hand! I have a feeling that if I can create a
mail message with the appropriate headers, I can trick "mail" or "pine"
sending the message in the same manner that netscape mail does.

I hope this makes sense. Any suggestions would be appreciated.


Chris Plachta

Chris Plachta

unread,
Mar 24, 1998, 3:00:00 AM3/24/98
to John Stanley

John Stanley wrote:

>
> In article <3515D140...@idt.net>, Chris Plachta <sta...@idt.net> wrote:
> >Let me give a little background on my problem. I run a small business
> >that provides text file reports to my customers. I run a Linux box
> >using Redhad software. The software that I write is primarily in perl.
> >I've tried to send these reports in the body of a email message by
> >simply using the "mail" command, but many users would not receive the
> >email properly.
>
> How do you mean 'not receive properly'? If your customers cannot receive
> simple text sent via "mail" properly, how can you have any hope that
> they can process the text as attachments? I mean, it doesn't get much
> simpler than this.

It seems that some mail systems (for example, some corporate sites)
have a maximum size that they will allow for an email. This is
understandable. However, what I don't understand is that these systems
seem to have different criteria for mail messages that contain
attachments, i.e., if I send two mail messages, one with a text file in
the body of the message and one with the same text file as an
attachment, the attachment makes it ok and the "regular" message
doesn't. This is one problem that I have encountered.

>
> >I have a feeling that if I can create a
> >mail message with the appropriate headers, I can trick "mail" or "pine"
> >sending the message in the same manner that netscape mail does.
>

> Well, I guess the first thing to do is find out what these non-standard
> mail systems require in order to receive mail and then talk to sendmail
> directly, creating whatever it is that they need. Myself, I would tell
> your customers that the price of admission to your service is a real
> mail system.

From what I've seen, you need to have a PhD from MIT in order to talk
to sendmail directly. I wouldn't even know where to begin. The problem
with requiring people to have a "real" mail system is that many of my
customers use AOL (horrid) and many simply use their employers email
system. You know how it is....the customer is always right!

Thanks for your help.


Chris

andy

unread,
Apr 1, 1998, 3:00:00 AM4/1/98
to

Try using the MIME-Lite or MIME-tools modules for Perl5. MIME-Lite is made
just to make attachments, MIME-tools has much greater functionality. You
can get them from you friendly local CPAN.

Chris Plachta wrote:

> I'm trying to figure out a way to script the process of mailing file
> attachments, rather than having to do it through Netscape mail.
>

> Let me give a little background on my problem. I run a small business
> that provides text file reports to my customers. I run a Linux box
> using Redhad software. The software that I write is primarily in perl.
> I've tried to send these reports in the body of a email message by
> simply using the "mail" command, but many users would not receive the
> email properly.
>

> I found that if I manually go into Netscape mail and send the text file
> as an attachement, these problems go away. The problem is, I don't want

> to have to do this by hand! I have a feeling that if I can create a


> mail message with the appropriate headers, I can trick "mail" or "pine"
> sending the message in the same manner that netscape mail does.
>

Mike O'Connor

unread,
Apr 12, 1998, 3:00:00 AM4/12/98
to

In article <3522F790...@murren.org>, andy <an...@murren.org> wrote:
:Try using the MIME-Lite or MIME-tools modules for Perl5. MIME-Lite is made

:just to make attachments, MIME-tools has much greater functionality. You
:can get them from you friendly local CPAN.

Another option would be to use the mpack tool:
ftp://ftp.andrew.cmu.edu/pub/mpack/

It's not perl-based, but might make more sense if you're happier
with just issuing a system() call.

:


:Chris Plachta wrote:
:
:> I'm trying to figure out a way to script the process of mailing file
:> attachments, rather than having to do it through Netscape mail.
:>
:> Let me give a little background on my problem. I run a small business
:> that provides text file reports to my customers. I run a Linux box
:> using Redhad software. The software that I write is primarily in perl.
:> I've tried to send these reports in the body of a email message by
:> simply using the "mail" command, but many users would not receive the
:> email properly.
:>
:> I found that if I manually go into Netscape mail and send the text file
:> as an attachement, these problems go away. The problem is, I don't want
:> to have to do this by hand! I have a feeling that if I can create a
:> mail message with the appropriate headers, I can trick "mail" or "pine"
:> sending the message in the same manner that netscape mail does.
:>
:> I hope this makes sense. Any suggestions would be appreciated.
:>
:> Chris Plachta

:
:
:


--
Michael J. O'Connor | WWW: http://dojo.mi.org/~mjo/ | Email: m...@dojo.mi.org
InterNIC WHOIS: MJO | (has my PGP & Geek Code info) | Phone: +1 248-848-4481


akaru...@gmail.com

unread,
Mar 7, 2017, 7:10:54 AM3/7/17
to
Document Output Center is a leader in billing statement processing for businesses that send out variable page documents. Our business outsourcing solutions are proven to reduce overhead and speed delivery of critical billing communications. Document Output Center is perfect for sending letter bills, detail bills, data mailers, summary statements, notices, invoices or collection letters. Designed to your graphic standards. Safe, fast, and inexpensive. SAVE MONEY. Our all-inclusive pricing covers all paper and envelopes, printing, folding, inserting, processing and first class postage. And is should be less than what you're paying now or incurring in house.
http://www.docoutput.com/
0 new messages