I've had nothing but success using Net::SMTP under Perl 5.005_03 under Windows NT.
I would like to point out that while endeavoring to learn the intricacies of SMTP is a Good Thing, there are a number of quirky SMTP servers in the world. Net::SMTP knows about most of them, and is a tried and trusted module. Be aware that it's quite likely you'll run into one of these servers sooner or later. And knowing the Murphy effect, it'll be the first time a user tries to use your module... (happens to me all the time!)
--Chris
e-mail jcwren | [reply] |
Right. It'd be better to figure out if what's "wrong" with Net::SMTP is a bug in your understanding or a bug in the module. And if it's a bug in the module, fix it there, rather than write your own one-off code.
Do not reinvent the wheel, unless you thoroughly understand the concept of wheel-ness.
-- Randal L. Schwartz, Perl hacker
| [reply] |
OK. Could you give me the same example code as mine, using Net::SMTP, then?
I would like to see that.
Update: jcwren pointed me to this node, for an example of Net::SMTP, but I see that there is an email server to specify, whereas there is none in my example script. I'm still waiting...
Update2: jcwren says that the email server to specify is the text after the @ symbol in the target email address. I tried it: it does not work. I can't believe people saying that what I wrote is useless when they can't prove it!
| [reply] |
If you "had problems", what were they? And were you using the latest ActiveState Perl?
-- Randal L. Schwartz, Perl hacker
|
update:
OK, as feedback for me, why was this voted down? I was genuinely curious
about the unspecified problems, since I'm using Net::SMTP in
programs I write. Should I have remained uninformed?
Or is this just a backlash fallout from the other posts of the past few days?
|
| [reply] |
The program was hanging. Not giving any information, and not sending the email like expected - I did not try to debug the problem too much, since I wanted to learn about the feature by myself also - which I did pretty well I guess. Now, here, I'm not trying to claim that people should use my module if they are fine with Net::SMTP, I'm just sharing a piece of code as a little teaching.
| [reply] |