Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Net::SMTP::SSL - sending HTML

by edimusrex (Monk)
on Jul 10, 2015 at 17:07 UTC ( #1134199=perlquestion: print w/replies, xml ) Need Help??

edimusrex has asked for the wisdom of the Perl Monks concerning the following question:

Switching over to Net::SMTP::SSL from MIME::Lite has been slightly problematic. The issue I am now facing is that when using MIME::Lite I was able to easily send HTML in the body but now with NET:SMTP it is failing when it comes to adding the html to the body of the message

sub sendMail{ my $receiver = shift; my $body = shift; my $subject = "Sociabull Weekly"; print "Sending to $receiver\n"; $smtp->mail($connect{sender}); $smtp->recipient($receiver); $smtp->data() or die "Failed to send! - Data initialize : $!\n"; $smtp->datasend("To: <$receiver> \n") or die "Failed to send! -- T +o : $!\n"; $smtp->datasend("From: $connect{sender_name} <$connect{sender}> \n +") or die "Failed to send! -- From : $!\n"; $smtp->datasend("Content-Type: text/html \n") or die "Failed to se +nd! -- Content-Type : $!\n"; $smtp->datasend("Subject: $subject\n") or die "Failed to send! - S +ubject : $!\n"; $smtp->datasend("\n") or die "Failed to send! - Line Break : $!\n" +; $smtp->datasend($body) or die "Failed to send! - Body : $!\n"; $smtp->datasend("\n") or die "Failed to send! - After Body Break : + $!\n"; $smtp->dataend() or die "Failed to send! - Data End : $!\n"; }

If I print out the contents of the variable $body the html is definitely there but when it gets to the "$smtp->datasend($body) or die "Failed to send! - Body : $!\n";" line, it fails. It looks like I have the Content type set properly so once again I am asking for your expertise.

Thanks again, as always

Replies are listed 'Best First'.
Re: Net::SMTP::SSL - sending HTML
by parv (Vicar) on Jul 10, 2015 at 21:12 UTC

    HTML part is being sent as data portion(body). Why would line breaks or the quantity be of any problems while sending?

    Net::SMTP has a debug option which comes handy to diagnose problems. As Net::SMTP::SSL claims to have the same API as Net::SMTP, so try your luck with Net::SMTP::SSL->new( 'Debug' => 1 , ... ) to see if you would get any better diagnostic messages.

      I'll try that, thanks
Re: Net::SMTP::SSL - sending HTML
by edimusrex (Monk) on Jul 13, 2015 at 15:09 UTC

    Thanks to your help I was able to finally solve this issue. It seems that there was a problem sending the entire HTML message as one datsend so I solved it by negating the template (I only used 1 variable), loading the HTML into an array (I originally had it do an open/while but if I was sending to 50+ users I found it more efficient to load the file pre-looping through the desired emails).

    my updated send email block looks like this

    sub sendMail{ my $receiver = shift; my $name; if($test) { $receiver =~ /^(.+?)\@/; $name = ucfirst($1); } else { $name = shift; } my $subject = "Sociabull Weekly"; print "Sending to $receiver\n"; $smtp->mail($connect{sender}); $smtp->recipient($receiver); $smtp->data() or die "Failed to send! - Data initialize : $!\n"; $smtp->datasend("To: <$receiver> \n") or die "Failed to send! -- T +o : $!\n"; $smtp->datasend("From: $connect{sender_name} <$connect{sender}> \n +") or die "Failed to send! -- From : $!\n"; $smtp->datasend("Content-Type: text/html \n") or die "Failed to se +nd! -- Content-Type : $!\n"; $smtp->datasend("Subject: $subject\n") or die "Failed to send! - S +ubject : $!\n"; $smtp->datasend("\n") or die "Failed to send! - Line Break : $!\n" +; for my $html_lines(@html){ chomp $html_lines; if ($html_lines =~ /\<TMPL\_VAR NAME\=USER\_NAME\>/){ $html_lines =~ s/\<TMPL\_VAR NAME\=USER\_NAME\>/$name/; } $smtp->datasend($html_lines) or die "Failed to send! - Body : +$!\n"; } $smtp->dataend() or die "Failed to send! - Data End : $!\n"; }

    Thanks again for all the help/suggestions

Re: Net::SMTP::SSL - sending HTML
by edimusrex (Monk) on Jul 10, 2015 at 17:34 UTC

    I think it doesn't like the line breaks in my HTML. I will try to strip all of that out of my HTML and update my status.

    Thanks

      Yes, start off with only a tiny bit of basic HTML, then go from there. Just add a block at a time to the $body variable until you hit your failure.

        The html is huge, I am assuming the issue is with the quotes within the HTML but not sure yet. I will test that theory. I am able to send a simple

        <html> <body> <p>This is just a test</p> </body> </html>

        I will try to see if it breaks if I add "style="something""

        Thanks
Re: Net::SMTP::SSL - sending HTML
by edimusrex (Monk) on Jul 10, 2015 at 19:04 UTC
    It's very strange, the HTML will work if it's put through HTML Tidy but some of the styles etc are off. Not quite sure why it works with MIME::Lite and not Net::SMTP. Any one have a suggestion of another module I can try for SMTP SSL Authentication and sending email via HTML?
Re: Net::SMTP::SSL - sending HTML
by edimusrex (Monk) on Jul 10, 2015 at 22:15 UTC

    Using the debug option I now get the following

    Net::SMTP::SSL>>> Net::SMTP::SSL(1.02) Net::SMTP::SSL>>> IO::Socket::SSL(2.016) Net::SMTP::SSL>>> IO::Socket::IP(0.37) Net::SMTP::SSL>>> IO::Socket(1.36) Net::SMTP::SSL>>> IO::Handle(1.34) Net::SMTP::SSL>>> Exporter(5.72) Net::SMTP::SSL>>> Net::Cmd(3.06) Net::SMTP::SSL=GLOB(0x17b2838)<<< 220 email-smtp.amazonaws.com ESMTP S +impleEmailService-1104415149 eRHT5vYvOJ7wMqGGuKoF Net::SMTP::SSL=GLOB(0x17b2838)>>> EHLO localhost.localdomain Net::SMTP::SSL=GLOB(0x17b2838)<<< 250-email-smtp.amazonaws.com Net::SMTP::SSL=GLOB(0x17b2838)<<< 250-8BITMIME Net::SMTP::SSL=GLOB(0x17b2838)<<< 250-SIZE 10485760 Net::SMTP::SSL=GLOB(0x17b2838)<<< 250-AUTH PLAIN LOGIN Net::SMTP::SSL=GLOB(0x17b2838)<<< 250 Ok Net::SMTP::SSL=GLOB(0x17b2838)>>> AUTH LOGIN Net::SMTP::SSL=GLOB(0x17b2838)<<< 334 VXNlcm5hbWU6 Net::SMTP::SSL=GLOB(0x17b2838)>>> QUtJQUlKVlVXT1ZaS01SS1pHRVE= Net::SMTP::SSL=GLOB(0x17b2838)<<< 334 UGFzc3dvcmQ6 Net::SMTP::SSL=GLOB(0x17b2838)>>> QWl1OHRmUklyU2lkMnFSYSsvWng5QjJueUcy +enVDbWh6aGNDcXBnQWFtUmE= Net::SMTP::SSL=GLOB(0x17b2838)<<< 235 Authentication successful. Sending to ed.dunn@compsciresources.com Net::SMTP::SSL=GLOB(0x17b2838)>>> . Net::SMTP::SSL=GLOB(0x17b2838)<<< 500 Error: bad syntax Net::SMTP::SSL=GLOB(0x17b2838)>>> MAIL FROM:<events@sociabull.com> Net::SMTP::SSL=GLOB(0x17b2838)<<< 250 Ok Net::SMTP::SSL=GLOB(0x17b2838)>>> RCPT TO:<ed.dunn@compsciresources.co +m> Net::SMTP::SSL=GLOB(0x17b2838)<<< 250 Ok Net::SMTP::SSL=GLOB(0x17b2838)>>> DATA Net::SMTP::SSL=GLOB(0x17b2838)<<< 354 End data with <CR><LF>.<CR><LF> Net::SMTP::SSL=GLOB(0x17b2838)>>> To: <ed.dunn@compsciresources.com> Net::SMTP::SSL=GLOB(0x17b2838)>>> From: Sociabull Events <events@socia +bull.com> Net::SMTP::SSL=GLOB(0x17b2838)>>> Content-Type: text/html Net::SMTP::SSL=GLOB(0x17b2838)>>> Subject: Sociabull Weekly Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <!DOCTYPE html PUBLIC "-//W3C//DTD X +HTML 1.0 Transitional//EN" Net::SMTP::SSL=GLOB(0x17b2838)>>> "http://www.w3.org/TR/xhtml1/DTD +/xhtml1-transitional.dtd"> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <html xmlns="http://www.w3.org/1999/ +xhtml"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <head> Net::SMTP::SSL=GLOB(0x17b2838)>>> <meta name="generator" content= Net::SMTP::SSL=GLOB(0x17b2838)>>> "HTML Tidy for Linux/x86 (vers 25 +March 2009), see www.w3.org" /> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <title></title> Net::SMTP::SSL=GLOB(0x17b2838)>>> </head> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <body> Net::SMTP::SSL=GLOB(0x17b2838)>>> <table cellpadding="0" cellspacing +="0" border="0" style= Net::SMTP::SSL=GLOB(0x17b2838)>>> "table-layout: fixed; background-c +olor:#E1E1E1; width:100%"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td style="height:100;" align= +"center"><a href='https://www.sociabull.com/' style= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'text-decoration: none; border +-bottom:#2E2C2C 1 solid;' target='_blank'><img style= Net::SMTP::SSL=GLOB(0x17b2838)>>> "border-style:none; width:47%; + padding-top:30; padding-bottom:15;" src= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'https://www.sociabull.com/ima +ges/email/emailLogo-100pxH.png' alt= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'Sociabull' /></a></td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td align="center" style="padd +ing-top:4%; padding-bottom:1%; width:100%"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <span style= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'font-family: "Avant Garde", A +vantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-serif +; color: #525252; font-size: 25px;'> Net::SMTP::SSL=GLOB(0x17b2838)>>> Hey !<br /> Net::SMTP::SSL=GLOB(0x17b2838)>>> <br /> Net::SMTP::SSL=GLOB(0x17b2838)>>> Check out our picks for this w +eek...</span></td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td align="center"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <table cellpadding="0" cells +pacing="0" border="0" style= Net::SMTP::SSL=GLOB(0x17b2838)>>> "background-color:#2E2C2C; w +idth:40%;"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr align="center"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td><span style= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'font-family: "Avant Gar +de", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans +-serif; color: #555; font-size: 30px;'> Net::SMTP::SSL=GLOB(0x17b2838)>>> <a href= Net::SMTP::SSL=GLOB(0x17b2838)>>> "https://www.sociabull.c +om/?q=groupBy%3Dtitle_exact%26groupByLimit%3D1%26ids%3D31518419-b92a- +4e1b-89dc-64c26effba40&amp;"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <img src="https://www.so +ciabull.com/images/email/2015-07-09-cinematery.jpg" Net::SMTP::SSL=GLOB(0x17b2838)>>> alt="Cinematery" width=" +100%" /></a></span></td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr align="center"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td><span style= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'font-family: "Avant Gar +de", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans +-serif; color: #FFFFFF; font-size: 25px; font-weight:bold;'> Net::SMTP::SSL=GLOB(0x17b2838)>>> Cinematery: Movies in th +e Cemetery</span></td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr align="center"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td style="padding-botto +m:15;"><span style= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'font-family: "Avant Gar +de", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans +-serif; color: #A1A1A1; font-size: 20px; font-weight:bold;'> Net::SMTP::SSL=GLOB(0x17b2838)>>> July 18, 2015 &middot; C +ongressional Cemetery</span></td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr align="center"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td style="padding-botto +m:40; padding-left:15; padding-right:15;"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <span style='font-family +: "Avant Garde", Avantgarde, "Century Gothic", CenturyGothic, "AppleG +othic", sans-serif; color: #FFFFFF; font-size: 16px;'> Net::SMTP::SSL=GLOB(0x17b2838)>>> Join Congressional Cemet +ery for our July movie night! Typically, the cemetery Net::SMTP::SSL=GLOB(0x17b2838)>>> is closed at dusk, but o +n Saturday, July 18th, we will open the gates to the Net::SMTP::SSL=GLOB(0x17b2838)>>> general public for a sug +gested donation of $10. Bring your own food, drinks, Net::SMTP::SSL=GLOB(0x17b2838)>>> blankets and chairs and +enjoy a movie in a creepy yet picturesque Net::SMTP::SSL=GLOB(0x17b2838)>>> setting.</span></td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr align="center"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td align="right" style= +"padding-right:10; padding-bottom:5;"><a href= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'https://www.sociabull.c +om/?q=groupBy%3Dtitle_exact%26groupByLimit%3D1%26ids%3D31518419-b92a- +4e1b-89dc-64c26effba40&amp;' Net::SMTP::SSL=GLOB(0x17b2838)>>> style= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'font-family: "Avant Gar +de", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans +-serif; background-color: #f00a0a; color: #ffffff; font-size: 25px; f +ont-weight: normal; text-decoration: none; border-top: 10 solid #f00a +0a; border-bottom: 10 solid #f00a0a; border-left: 10 solid #f00a0a; b +order-right: 10 solid #f00a0a; border-radius: 5;' Net::SMTP::SSL=GLOB(0x17b2838)>>> target='_blank'>&nbsp;Se +e more...</a></td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr align="center"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td><span style= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'font-family: "Avant Gar +de", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans +-serif; color: #FFFFFF; font-size: 12px;'> Net::SMTP::SSL=GLOB(0x17b2838)>>> &nbsp;</span></td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr style="background-colo +r:#E1E1E1;" align="center"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td>&nbsp;</td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr style="background-colo +r:#2E2C2C;" align="center"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td><span style= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'font-family: "Avant Gar +de", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans +-serif; color: #555; font-size: 30px;'> Net::SMTP::SSL=GLOB(0x17b2838)>>> <a href= Net::SMTP::SSL=GLOB(0x17b2838)>>> "https://www.sociabull.c +om/?q=dates%3D%28%2C[%2C2015-07-07T18%3A00%3A00.000Z%2CTO%2C*%2C]%2C% +29%26regions%3DDC%20Metro%26keywords%3Dspy%2Cin%2Cthe%2Ccity%26title% +3DSpy%20in%20the%20City%26groupBy%3Dtitle_exact%26includeImages%3Dtru +e%26restrictByIds%3Dfalse%26groupByLimit%3D1000&amp;"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <img src="https://www.so +ciabull.com/images/email/2015-07-09-spy.jpg" alt= Net::SMTP::SSL=GLOB(0x17b2838)>>> "Spy" width="100%" /></a +></span></td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr align="center"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td><span style= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'font-family: "Avant Gar +de", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans +-serif; color: #FFFFFF; font-size: 25px; font-weight:bold;'> Net::SMTP::SSL=GLOB(0x17b2838)>>> Spy in the City</span></ +td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr align="center"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td style="padding-botto +m:15;"><span style= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'font-family: "Avant Gar +de", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans +-serif; color: #A1A1A1; font-size: 20px; font-weight:bold;'> Net::SMTP::SSL=GLOB(0x17b2838)>>> Through Dec 31, 2015 &mi +ddot; International Spy Museum</span></td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr align="center"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td style="padding-botto +m:40; padding-left:15; padding-right:15;"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <span style='font-family +: "Avant Garde", Avantgarde, "Century Gothic", CenturyGothic, "AppleG +othic", sans-serif; color: #FFFFFF; font-size: 16px;'> Net::SMTP::SSL=GLOB(0x17b2838)>>> We send you clues, codes +, audio intercepts, and everything you need to Net::SMTP::SSL=GLOB(0x17b2838)>>> complete your secret mis +sion. It&rsquo;s up to you to uncover a world of Net::SMTP::SSL=GLOB(0x17b2838)>>> ruthless spies. Not to m +ention all the history, mystery, and landmarks along Net::SMTP::SSL=GLOB(0x17b2838)>>> the way. Whether you go +as a group or as your own undercover agent, Net::SMTP::SSL=GLOB(0x17b2838)>>> it&rsquo;s sightseeing l +ike you&rsquo;ve never seen.</span></td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr align="center"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td align="right" style= +"padding-right:10; padding-bottom:5;"><a href= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'https://www.sociabull.c +om/?q=dates%3D%28%2C[%2C2015-07-07T18%3A00%3A00.000Z%2CTO%2C*%2C]%2C% +29%26regions%3DDC%20Metro%26keywords%3Dspy%2Cin%2Cthe%2Ccity%26title% +3DSpy%20in%20the%20City%26groupBy%3Dtitle_exact%26includeImages%3Dtru +e%26restrictByIds%3Dfalse%26groupByLimit%3D1000&amp;' Net::SMTP::SSL=GLOB(0x17b2838)>>> style= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'font-family: "Avant Gar +de", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans +-serif; background-color: #f00a0a; color: #ffffff; font-size: 25px; f +ont-weight: normal; text-decoration: none; border-top: 10 solid #f00a +0a; border-bottom: 10 solid #f00a0a; border-left: 10 solid #f00a0a; b +order-right: 10 solid #f00a0a; border-radius: 5;' Net::SMTP::SSL=GLOB(0x17b2838)>>> target='_blank'>&nbsp;Se +e more...</a></td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr align="center"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td><span style= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'font-family: "Avant Gar +de", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans +-serif; color: #FFFFFF; font-size: 12px;'> Net::SMTP::SSL=GLOB(0x17b2838)>>> &nbsp;</span></td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> </table> Net::SMTP::SSL=GLOB(0x17b2838)>>> </td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> </table> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <table style="background-color:#E1 +E1E1; width:100%"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td style="padding-top:20; pad +ding-bottom:20;" align="right"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <span style= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'font-family: "Avant Garde", + Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-ser +if; color: #525252; font-size: 25px;'> Net::SMTP::SSL=GLOB(0x17b2838)>>> Enjoy a...</span> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <p><span style= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'font-family: "Avant Garde", + Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-ser +if; color: #525252; font-size: 25px;'> Net::SMTP::SSL=GLOB(0x17b2838)>>> &nbsp;</span></p> Net::SMTP::SSL=GLOB(0x17b2838)>>> </td> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td style="padding-top:80; pad +ding-bottom:10; padding-right:300" align="left"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <p><span style= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'font-family: "Avant Garde", + Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-ser +if; color: #525252; font-size: 30px;'> Net::SMTP::SSL=GLOB(0x17b2838)>>> SUMMER COOL DOWN</span></p> Net::SMTP::SSL=GLOB(0x17b2838)>>> </td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> </table> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <table style="background-color:#E1 +E1E1; width:100%"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr align="center"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td> Net::SMTP::SSL=GLOB(0x17b2838)>>> <table align="center"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr align="center"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td><span style= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'font-family: "Avant Gar +de", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans +-serif; color: #555; font-size: 30px;'> Net::SMTP::SSL=GLOB(0x17b2838)>>> <a href= Net::SMTP::SSL=GLOB(0x17b2838)>>> "https://www.sociabull.c +om/?q=groupBy%3Dtitle_exact%26groupByLimit%3D1%26ids%3Db9efa902-f2c3- +474b-8e1e-eec61f0219d5&amp;"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <img style="border-style +:none;" src= Net::SMTP::SSL=GLOB(0x17b2838)>>> "https://www.sociabull.c +om/images/email/2015-07-09-ice-cream.jpg" alt= Net::SMTP::SSL=GLOB(0x17b2838)>>> "icecream" width="290" / +></a></span></td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr align="center"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td><span style= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'font-family: "Avant Gar +de", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans +-serif; color: #525252; font-size: 15px;'> Net::SMTP::SSL=GLOB(0x17b2838)>>> Ice Cream Tasting &middo +t; July 11, 2015</span></td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> </table> Net::SMTP::SSL=GLOB(0x17b2838)>>> </td> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td> Net::SMTP::SSL=GLOB(0x17b2838)>>> <table align="center"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr align="center"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td><span style= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'font-family: "Avant Gar +de", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans +-serif; color: #555; font-size: 30px;'> Net::SMTP::SSL=GLOB(0x17b2838)>>> <a href= Net::SMTP::SSL=GLOB(0x17b2838)>>> "https://www.sociabull.c +om/?q=groupBy%3Dtitle_exact%26groupByLimit%3D1%26ids%3D9630c460-21d7- +41bc-b5c9-447aa3c6b92a&amp;"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <img style="border-style +:none;" src= Net::SMTP::SSL=GLOB(0x17b2838)>>> "https://www.sociabull.c +om/images/email/2015-07-09-xmas.png" alt="xmas" Net::SMTP::SSL=GLOB(0x17b2838)>>> width="340" /></a></span +></td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr align="center"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td><span style= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'font-family: "Avant Gar +de", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans +-serif; color: #525252; font-size: 15px;'> Net::SMTP::SSL=GLOB(0x17b2838)>>> Christmas in July Pool P +arty &middot; July 25, 2015</span></td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> </table> Net::SMTP::SSL=GLOB(0x17b2838)>>> </td> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td> Net::SMTP::SSL=GLOB(0x17b2838)>>> <table align="center"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr align="center"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td><span style= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'font-family: "Avant Gar +de", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans +-serif; color: #555; font-size: 30px;'> Net::SMTP::SSL=GLOB(0x17b2838)>>> <a href= Net::SMTP::SSL=GLOB(0x17b2838)>>> "https://www.sociabull.c +om/?q=groupBy%3Dtitle_exact%26groupByLimit%3D1%26ids%3D752b7219-085a- +4e38-a4db-23a082eae40f&amp;"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <img style="border-style +:none; overflow: hidden;" src= Net::SMTP::SSL=GLOB(0x17b2838)>>> "https://www.sociabull.c +om/images/email/2015-07-09-swim-show.jpg" alt="swim" Net::SMTP::SSL=GLOB(0x17b2838)>>> width="330" /></a></span +></td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr align="center"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td><span style= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'font-family: "Avant Gar +de", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans +-serif; color: #525252; font-size: 15px;'> Net::SMTP::SSL=GLOB(0x17b2838)>>> DC Swim Show &middot; Ju +ly 23, 2015</span></td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> </table> Net::SMTP::SSL=GLOB(0x17b2838)>>> </td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td> Net::SMTP::SSL=GLOB(0x17b2838)>>> <table align="center"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr align="center"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td><span style= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'font-family: "Avant Gar +de", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans +-serif; color: #555; font-size: 30px;'> Net::SMTP::SSL=GLOB(0x17b2838)>>> <a href= Net::SMTP::SSL=GLOB(0x17b2838)>>> "https://www.sociabull.c +om/?q=dates%3D%28%2C[%2C2015-07-08T14%3A00%3A00.000Z%2CTO%2C*%2C]%2C% +29%26regions%3DDC%20Metro%26keywords%3Dsummer%26title%3DNZ%20Embassy% +20Social%20Club%20SUMMER%20LUAU%26groupBy%3Dtitle_exact%26includeImag +es%3Dtrue%26restrictByIds%3Dfalse%26groupByLimit%3D1000&amp;"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <img style="border-style +:none;" src= Net::SMTP::SSL=GLOB(0x17b2838)>>> "https://www.sociabull.c +om/images/email/2015-07-09-luau.jpg" alt="luau" Net::SMTP::SSL=GLOB(0x17b2838)>>> width="350" /></a></span +></td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr align="center"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td><span style= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'font-family: "Avant Gar +de", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans +-serif; color: #525252; font-size: 15px;'> Net::SMTP::SSL=GLOB(0x17b2838)>>> Luau at the NZ Embassy & +middot; July 17, 2015</span></td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> </table> Net::SMTP::SSL=GLOB(0x17b2838)>>> </td> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td> Net::SMTP::SSL=GLOB(0x17b2838)>>> <table align="center"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr align="center"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td><span style= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'font-family: "Avant Gar +de", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans +-serif; color: #555; font-size: 30px;'> Net::SMTP::SSL=GLOB(0x17b2838)>>> <a href= Net::SMTP::SSL=GLOB(0x17b2838)>>> "https://www.sociabull.c +om/?q=groupBy%3Dtitle_exact%26groupByLimit%3D1%26ids%3D52daf388-ef3c- +476b-8605-bb384469c51c&amp;"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <img style="border-style +:none;" src= Net::SMTP::SSL=GLOB(0x17b2838)>>> "https://www.sociabull.c +om/images/email/2015-07-09-scoop.jpg" alt="scoop" Net::SMTP::SSL=GLOB(0x17b2838)>>> width="350" /></a></span +></td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr align="center"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td><span style= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'font-family: "Avant Gar +de", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans +-serif; color: #525252; font-size: 15px;'> Net::SMTP::SSL=GLOB(0x17b2838)>>> The DC Scoop &middot; Ju +ly 18, 2015</span></td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> </table> Net::SMTP::SSL=GLOB(0x17b2838)>>> </td> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td> Net::SMTP::SSL=GLOB(0x17b2838)>>> <table align="center"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr align="center"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td><span style= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'font-family: "Avant Gar +de", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans +-serif; color: #555; font-size: 30px;'> Net::SMTP::SSL=GLOB(0x17b2838)>>> <a href= Net::SMTP::SSL=GLOB(0x17b2838)>>> "https://www.sociabull.c +om/?q=dates%3D%28%2C[%2C2015-07-08T14%3A00%3A00.000Z%2CTO%2C*%2C]%2C% +29%26regions%3DDC%20Metro%26keywords%3Dsummer%26title%3DDRINK%20LAB%3 +A%20Craft%20Cocktail%20Series%26groupBy%3Dtitle_exact%26includeImages +%3Dtrue%26restrictByIds%3Dfalse%26groupByLimit%3D1000&amp;"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <img style="border-style +:none;" src= Net::SMTP::SSL=GLOB(0x17b2838)>>> "https://www.sociabull.c +om/images/email/2015-07-09-drink-lab.jpg" alt="drink" Net::SMTP::SSL=GLOB(0x17b2838)>>> width="350" /></a></span +></td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr align="center"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td><span style= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'font-family: "Avant Gar +de", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans +-serif; color: #525252; font-size: 15px;'> Net::SMTP::SSL=GLOB(0x17b2838)>>> Drink Lab Cocktail Class + &middot; July 23, 2015</span></td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> </table> Net::SMTP::SSL=GLOB(0x17b2838)>>> </td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> </table> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <table style="background-color:#E1 +E1E1; width:100%; padding-top:25;"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr align="center"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td><a href='https://www.socia +bull.com/' style= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'font-family: "Avant Garde", A +vantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-serif +; color: #555; font-size: 70px; color: #f00a0a; letter-spacing: 20px; + white-space:nowrap; text-decoration: none;' Net::SMTP::SSL=GLOB(0x17b2838)>>> target='_blank'>www.sociabull. +com</a></td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> </table> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <table style="width:100%"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr style="background-color:#FFF +FFF"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td style="padding-top:10"><sp +an style= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'font-family: "Avant Garde", A +vantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-serif +; color: #555; font-size: 12px;'> Net::SMTP::SSL=GLOB(0x17b2838)>>> Please email compliments and c +omplaints to <a href= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'mailto:feedback@sociabull.com +'>feedback@sociabull.com</a>.</span></td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr style="background-color:#FFF +FFF"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td><span style= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'font-family: "Avant Garde", A +vantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-serif +; color: #555; font-size: 12px;'> Net::SMTP::SSL=GLOB(0x17b2838)>>> To stop receiving email from s +ociabull, please email <a href= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'mailto:unsubscribe@sociabull. +com'>unsubscribe@sociabull.com</a>.</span></td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr style="background-color:#FFF +FFF"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td><span style= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'font-family: "Avant Garde", A +vantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-serif +; color: #555; font-size: 12px;'> Net::SMTP::SSL=GLOB(0x17b2838)>>> Do not reply to this email</sp +an></td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr style="background-color:#FFF +FFF"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td><span style= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'font-family: "Avant Garde", A +vantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-serif +; color: #555; font-size: 12px;'> Net::SMTP::SSL=GLOB(0x17b2838)>>> Sociabull is a trademark of So +ciabull, LLC</span></td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> Net::SMTP::SSL=GLOB(0x17b2838)>>> <tr style="background-color:#FFF +FFF"> Net::SMTP::SSL=GLOB(0x17b2838)>>> <td><span style= Net::SMTP::SSL=GLOB(0x17b2838)>>> 'font-family: "Avant Garde", A +vantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-serif +; color: #555; font-size: 12px;'> Net::SMTP::SSL=GLOB(0x17b2838)>>> Sociabull.com is not in any wa +y affiliated with the events listed. Any content and Net::SMTP::SSL=GLOB(0x17b2838)>>> views expressed in the descrip +tions of the events solely expresses the views of the Net::SMTP::SSL=GLOB(0x17b2838)>>> content creators and not Socia +bull.com.</span></td> Net::SMTP::SSL=GLOB(0x17b2838)>>> </tr> Net::SMTP::SSL=GLOB(0x17b2838)>>> </table> Net::SMTP::SSL=GLOB(0x17b2838)>>> </body> Net::SMTP::SSL=GLOB(0x17b2838)>>> </html> Net::SMTP::SSL: Net::Cmd::datasend(): unexpected EOF on command channe +l: at ./testMail.pl line 243. Uncaught exception from user code: Failed to send! - Body : main::sendMail("ed.dunn\@compsciresources.com", "\x{d}\x{a}<!D +OCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//"...) called + at ./testMail.pl line 153

    Really not sure what's up with that unexpected EOF error

      edimusrex:

      There's no terminating "." for the EMail body. Perhaps you've got a line of code out of order? (The log shows a "." sent *before* the EMail....)

      ...roboticus

      When your only tool is a hammer, all problems look like your thumb.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1134199]
Approved by planetscape
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2021-10-22 22:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (85 votes). Check out past polls.

    Notices?