Link to home
Start Free TrialLog in
Avatar of Dinkleburger
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/Transport/MAILTO.pm';      

$sendmail       = '/usr/bin/MAILTO.pm;

plus lots more but nothing.
whats going on?      

Avatar of TomDavidson
TomDavidson
Flag of United Kingdom of Great Britain and Northern Ireland image

what scripting language are you using?
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;
Avatar of Dinkleburger
Dinkleburger

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
ASKER CERTIFIED SOLUTION
Avatar of TomDavidson
TomDavidson
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yes!!! this is nice thankyou very much.... cheers!