<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=EN-GB link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Hello </p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Not sure if anyone still gets these emails, but I could really do with some help.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I’m having problems with the [email] tag, specifically it seems when it calls MIME::Lite->new().</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Everytime It gets to the call to create a new MIME message, interchange hangs until apache times out.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I have tried the same code in a [perl] block and it does the same thing, but as a native perl script outside of Interchange it works fine. </p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The [email] tag works fine for non-html email or emails with no attachments, because they do not use MIME.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The code below hangs until it times out.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>[perl global=1 ]</p><p class=MsoNormal>use MIME::Lite;</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>$to = 'test@test.com';</p><p class=MsoNormal>$from= 'phil@interchange.co.uk';</p><p class=MsoNormal>$subject = 'Test Email';</p><p class=MsoNormal>$message = 'This is test email sent by Interchange’;</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>$msg = MIME::Lite->new('From'     => "$from",</p><p class=MsoNormal>                       ‘To’        => “$to”</p><p class=MsoNormal>                 );</p><p class=MsoNormal>    </p><p class=MsoNormal>return $msg ;</p><p class=MsoNormal>[/perl]</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Any advice would be very helpful, I cannot see how this would hang, when the same code works fine in stand alone perl</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks in advance</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Phil.</p><p class=MsoNormal><o:p> </o:p></p></div><div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br />
<table style="border-top: 1px solid #D3D4DE;">
        <tr>
        <td style="width: 55px; padding-top: 13px;"><a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png" alt=""  width="46" height="29" style="width: 46px; height: 29px;" /></a></td>
                <td style="width: 470px; padding-top: 12px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Virus-free. <a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank" style="color: #4453ea;">www.avg.com</a>
                </td>
        </tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body></html>