Duurrrr...

Oct. 18th, 2005 02:48 pm
geekchick: (d'oh!)
[personal profile] geekchick
I just spent 15 minutes trying to figure out why my code just wouldn't make a connection to the SMTP server.
my $confirmation = Net::SMTP->new(Host => $smtpserver,
                                  Hello => $domain,
                                  Timeout => 30,
                                  Debug => 1);
die "Couldn't connect to server" unless $smtp;


*facepalm* Yeah, a little bit braindead today I think.

[Edit: And hey, look! My domain registration expired. In my defense, I have never seen a single notification letter or email about it. All set for the next two years though.]

Date: 2005-10-18 08:12 pm (UTC)
From: [identity profile] nminusone.livejournal.com
That's what you get for bothering to check return codes. Just assume code always works!

Date: 2005-10-18 10:12 pm (UTC)
From: [identity profile] nminusone.livejournal.com
Code intermittently working = ship it! Anything more reliable has a negative impact on job security. ;)

Profile

geekchick: (Default)
geekchick

April 2017

S M T W T F S
      1
2345 6 78
9101112131415
16 171819202122
23242526272829
30      

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Sep. 16th, 2025 08:40 am
Powered by Dreamwidth Studios