Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: interacting with sendmail

by Trimbach (Curate)
on Aug 18, 2001 at 02:57 UTC ( [id://105820]=note: print w/replies, xml ) Need Help??


in reply to interacting with sendmail

If you're bound and determined not to Build on the Shoulders of Giants and use modules then you should consider cutting and pasting the good parts of good modules directly into your code. A good example of this is your admittedly nasty email regex: why not just cut and paste the patented regex from Email::Valid into your code? It works, it's no effort on your part, and it means you don't have to formally import the module. You might also be able to do the same thing with one of the simple SMTP modules to eliminate your reliance on SendMail. Of course, this means your code is going to get long, but then, that's the whole reason why all this stuff was modularized in the first place.

Gary Blackburn
Trained Killer

Replies are listed 'Best First'.
Re: Re: interacting with sendmail
by synapse0 (Pilgrim) on Aug 18, 2001 at 04:37 UTC
    I know about modules, I use and prefer them.. read the above reply as to why I'm not using one in this case. As for cut'n'paste, well often modules rely on other modules to run.. which obviously wouldn't work and would easily render a script obnoxiously large. Yes I know that's why modules are written.
    Thanks for the hint on the regex in Email::Valid, I'll take a look at it. If I remember, it's quite a monstrous piece, and I don't really know if something like that is necessitated by this project, but I'll look into it.
    Hrmm.. and reading your post, I think a better answer to my question may have been, "You know, you can send mail w/out using sendmail. Talk to the SMTP server rather than sendmail", which may indeed be a better way to do it. Good idea, I say. I should have thought of that, but that's why I come here, in case I overlook something or my train of thought is off..
    Anyway, thanks..
    -Syn0

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-03-28 17:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found