Hi!

(Reordered to make more readable)

>   cs> Hi all ,
> cs> use sendmail -f $from $to and check , may be it should work fine ...
>
secondly, did you read this thread? you can't call sendmail without a
path since it usually resides in non-standard dirs unlikely to be in
your path.

Also, calling sendmail is so... uh, Unix. I'm a unix/linux user too, but your approach basically makes the code non-portable. Apart from sendmail having lots of different paths (as mentioned before in this thread), the sendmail binary doesn't even exist on a range of platforms - including the most common: Windows.

I for one sucessfully use Mail::Sendmail in a number of business apps, but there are a number of other modules you can also use, depending on what you need.

So, *please*, don't go calling external binaries in your perl apps, you'll inevitable lock your code to a subset of the operating systems Perl supports.

LG
Rene

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to