|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
hello all
i have no idea abt perl but am using someone's else work......in the perl prog i am trying to send a mail ; for which i need something called 'sendmail'(using which i can send an email).......what is it and where can i get the program for send mail ??? pls help!!!! |
|
#2
|
||||
|
||||
|
If your on a UN*X system, this should already be there. Consult your server admin or hosting support staff for the location of "sendmail". Normally the paths to sendmail are either:
/usr/lib/sendmail or /usr/sbin/sendmail Mickalo
__________________
Thunder Rain Internet Publishing Custom Programming & Database development Providing Personal/Business Internet Solutions that work! |
|
#3
|
|||
|
|||
|
Sendmail
Quote:
Well, first of all you have to aware about the O/S of the server. if it is Unix/Linux, you can use sendmail.exe if it is NT, you can use blat.exe, sendmail.pm if you need further help about the programme mail me to - suzzano@hotmail.com feroz jaff |
|
#4
|
|||
|
|||
|
You're never going to find something called *.exe on a real *nix server
. It's just 'sendmail' with the full path to it usually being '/usr/bin/sendmail'(files can be compiled with the .exe extension, but they usually aren't [because *nix is smart enough to figure out what to do with a program without relying on extensions]) |
|
#5
|
|||
|
|||
|
from what i can get from your original post, i think what you are looking for is the "sendmail" program, well there is quite a few of these, but one that i like to use is this:
sub sendemail { $TO=$_[0]; #@TO=split('\0',$TO); $SUBJECT=$_[1]; $REPLYTO=$_[2]; $REMOTE = $_[3]; $THEMESSAGE = $_[4]; open(S, "|$REMOTE -t"); print S "To: $TO\n"; print S "From: <support\@yourdomain.com>\n"; print S "Subject: $SUBJECT\n"; print S "Reply-To: support\@yourdomain.com\n\n"; # Print the body print S "$THEMESSAGE\n"; print S "\n"; print S ".\n"; close (S); } to use this you will need to also add this variable below, try using it as is, if it does not work then you will need to contact your server admin and find out the path to your sendmail and add it in to the var. $mailserver = '/usr/sbin/sendmail'; ps: this is used for any UNIX server. hope this helps, Randor |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > sendmail |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|