Would be interesting to know which book and what reasons they stated for 
using sendmail directly.  I would imagine most of the people on the list 
and myself included would advocate using the module in almost all cases.

There are a couple of big reasons, mainly that understanding sendmail is 
a huge huge task, sendmail is probably one of the most complex software 
packages on the internet, using a module to direct all of its 
intricacies written by someone else whom probably has a better if not 
very good understanding of the underlying core technology, in this case 
sendmail, is better than trying to learn just a couple of things about 
sendmail to accomplish what you want, while this works in "throw away" 
scripts that only get used once or twice, for any sort of "real 
programming" (as drieux puts it) project you are going to want the 
robustness the module can provide in a relatively simple interface, 
again which the module provides.

Second by using the module you remove yourself from having to keep 
abreast of the latest changes to SMTP and the sendmail specs, etc. which 
if you are into and it is a core part of your development that may be 
fine, but for most of us we have enough to keep track of with respect to 
browsers, web servers, databases, perl itself, the OS, etc. being able 
to just upgrade the module and leave the changes required for it to 
interface with sendmail to the module developer relieves one burden.

Finally, when in the future your code has to get maintained by someone 
else, using a module as standard and well documented as most in CPAN are 
and in the case of Net::SMTP specifically will be much easier on that 
other person as there is a good chacne they are already familar with it 
or they can quickly get spun up on good docs.

Certainly there are times when calling sendmail directly may be 
appropriate but in most cases, 99 out of a 100, using the module is 
probably going to be better in the long run. As for using Net::SMTP or 
any of the other mail modules is probably system dependent, and is 
certainly influenced by user opinion, we all have our preferences. A 
quick search on CPAN returns 149 :-).......

http://search.cpan.org/search?mode=all&query=sendmail

Remember to throw comments back to the list as well, I would love to 
hear what others think, does anyone disagree, should we cast aside the 
module and go with the direct route (other than the fact that this sends 
us down the evil path to the dark side, drieux?).......

http://danconia.org



Octavian Rasnita wrote:
> Hi,
> 
> I saw you recommend using Net::SMTP instead of sendmail.
> I saw in a book (I don't remember which one) that they recommend using
> sendmail.
> 
> What should I use if I have both?
> 
> Thank you.
> 
> Teddy's Center: http://teddy.fcc.ro/
> Mail: [EMAIL PROTECTED]
> 
> ----- Original Message -----
> From: "Wiggins d'Anconia" <[EMAIL PROTECTED]>
> To: "Anthony E." <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Wednesday, August 28, 2002 1:38 AM
> Subject: Re: sendmail command line (without queuing)
> 
> 
> 
>>man sendmail???  (or possibly try a sendmail group)
>>
>>You might be looking for "DeliveryMode=x" where x is "b" but I am not a
>>sendmail expert.
>>
>>You might also check the perldoc for Net::SMTP as this is probably safer
>>than using sendmail command line (or one of the many other SMTP modules).
>>
>>http://danconia.org
>>
>>
>>
>>Anthony E. wrote:
>>
>>>i want to send an email with sendmail from my perl
>>>script without queueing the email.
>>>
>>>What's the command line?
>>>
>>>Thanks,
>>>Anthony
>>>
>>>__________________________________________________
>>>Do You Yahoo!?
>>>Yahoo! Finance - Get real-time stock quotes
>>>http://finance.yahoo.com
>>>
>>
>>
>>
>>--
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> 



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to