Dinkleburger
asked on
mail prog wont work!!
i cant get scripts to send me email
i tried many things like this
$sendmail = 'C:/usr/site/lib/SOAP/Tran sport/MAIL TO.pm';
$sendmail = '/usr/bin/MAILTO.pm;
plus lots more but nothing.
whats going on?
i tried many things like this
$sendmail = 'C:/usr/site/lib/SOAP/Tran
$sendmail = '/usr/bin/MAILTO.pm;
plus lots more but nothing.
whats going on?
ASKER
yes am using perl
on XP APache but i had a look i only have usr/bin
but there is no sendmail? i looked everywhere for sendmail but cant find, i done a default install as i am new to Apache server i have all the scripts working but just no sending email
thansk
on XP APache but i had a look i only have usr/bin
but there is no sendmail? i looked everywhere for sendmail but cant find, i done a default install as i am new to Apache server i have all the scripts working but just no sending email
thansk
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yes!!! this is nice thankyou very much.... cheers!
I'm presuming perl...
try this, it should send the message for processing by a local sendmail (usually installed by default on just about every unix/linux)
open MAIL, '| /usr/sbin/sendmail -t -i' or print "Could not open mailer: $!";
print MAIL <<END_OF_MESSAGE;
To: someone@anotherdomain.com
Reply-To: me@mydomain.com
Subject: My Amazing website
A message here
END_OF_MESSAGE
close MAIL;