Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SMTP email received, opening it crashs server

Status
Not open for further replies.

jcarrott

Programmer
May 28, 2009
130
US
I sent an email from a Perl program using MIME::Lite. The email had 2 attachments; a .rtf and a .pdf file.

The email was received, and when the user clicked on the subject to open the email - the system crashed.

We tried this on different Mac systems and got the same result.

Both systems are Mac Pros, running Mac OS 10.5.8, and using the supplied Mac Mail software.

Any PC that receives the email has no problem opening the email or displaying the attached files; purchase order (the .pdf) or the cover sheet (the .rtf).

Does anybody have any idea what is causing the crash?

This is the code I used to create the email.

Code:
    $msg = MIME::Lite->new(
        From     => 'purchasing@ochsner.org',
        To       => $sendTo,
        cc       => $CC,
        Subject  => 'RE: PO FROM OCHSNER',
        'X-Priority' => $Priority,
        Type     => 'multipart/mixed');

    $msg->attach(
        Type    => 'TEXT',
        Data    => $message);
           
    $msg->attach(
        Type        => 'application/rtf',
        Path        => $vName2,
        Filename    => $vName2,
        Disposition => 'attachment');

    $msg->attach(
        Type        => 'application/pdf',
        Path        => $vName3,
        Filename    => $vName3,
        Disposition => 'attachment');

    $msg->send('smtp', 'smtp.ochsner.org');
 
Over the years I've experienced problems on Macs with emails using MIME from PCs- often not be able to open attachments. I've not had crashes but have not been able to see things.

Your heading said "crashes server" but your message indicated the email crashing a desktop mac. If it is a server problem, it has to do with MIME mapping that can be changed in the administration utility - by a competent administrator.

Have you tried simply using a standard mail app like Outlook, etc. and see if the mail goes through?


Using OSX 10.3.9 & 10.4.11 on a G4, G5 & Intel Macbook
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top