mail prog wont work!!

Posted on 2004-11-13
Medium Priority
Last Modified: 2010-05-18
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?      

Question by:Dinkleburger
  • 2
  • 2

Expert Comment

ID: 12582854
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: $!";
To: someone@anotherdomain.com
Reply-To: me@mydomain.com
Subject: My Amazing website

A message here
close MAIL;

Author Comment

ID: 12583985
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

Accepted Solution

TomDavidson earned 500 total points
ID: 12584904
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:

Author Comment

ID: 12585251
Yes!!! this is nice thankyou very much.... cheers!

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses
Course of the Month14 days, 1 hour left to enroll

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question