I have an application that spits out emails to a directory and stores them in BSMTP format like so:
HELO server.domain.com
MAIL FROM:<dmabe@domain.com>
RCPT TO:<user@gmail.com>
DATA
Return-Path: <dmabe@domain.com>
Received: from nj580spare2.jetlab.domain.com (135.65.248.219:43594) by
+ nj530iis1.ugdtst.domain.com (LSMTP for Windows NT v1.1b) with SMTP i
+d <0.0000000E@nj530iis1.ugdtst.domain.com>; Thu, 23 Sep 2004 8:53:27
+-0400
Subject: Testing - sending to user@gmail.com 2
Date: Thu, 23 Sep 2004 08:35:20 -0400
Message-ID: <30016CC3B435374EAB27C35892EEFAAC0206FA@nj580spare2.jetlab
+.domain.com>
X-MS-Has-Attach:
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-MS-TNEF-Correlator:
Thread-Topic: Testing - sending to user@gmail.com 2
Thread-Index: AcShaco6m1Vd7hEyRd2uGq7iZUf4ZA==
Content-class: urn:content-classes:message
From: "dmabe" <dmabe@domain.com>
X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0
To: <user@gmail.com>
Test
Which perl module would you select to send this email using SMTP to a remote server?
Keep in mind the following comments:
- The module must gracefully handle any errors.
- The module must handle the BSMTP format intelligently (e.g. BCCs must work properly).
- The module must be able to run on Linux or Windows without a local sendmail (or sendmail-like) engine
- Net::SMTP may be the best answer, but I'd rather use a module that has already implemented all the error handling that's required so I don't have to.
- I'm stuck with the general architecture that I've described above - I can't change the application to use a different format.
Dave
Want a Free IPod?
Edit by castaway, swap pre tags for code tags, to help wrapping
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.