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?      

DinkleburgerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

TomDavidsonCommented:
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;
0
DinkleburgerAuthor Commented:
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
0
TomDavidsonCommented:
If the script runs then it's not an apache problem, if the perl runs then perl is installed correctly. What you have here is no connection to a mailer program (sorry, I assumed you were on a unix box and therefore had sendmail).

Have a look at: Net::SMTP
this perl module supports windows apparently. (http://search.cpan.org/~gbarr/libnet/Net/SMTP.pm)

this apparently uses Net::SMTP and runs under ActiveState perl on windows:
http://liquidsilver.com/scripts/form2mail/
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
DinkleburgerAuthor Commented:
Yes!!! this is nice thankyou very much.... cheers!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.