mail prog wont work!!

Posted on 2004-11-13
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/';      

$sendmail       = '/usr/bin/;

plus lots more but nothing.
whats going on?      

Question by:Dinkleburger
    LVL 4

    Expert Comment

    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;
    Subject: My Amazing website

    A message here
    close MAIL;

    Author Comment

    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
    LVL 4

    Accepted Solution

    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. (

    this apparently uses Net::SMTP and runs under ActiveState perl on windows:

    Author Comment

    Yes!!! this is nice thankyou very much.... cheers!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Suggested Solutions

    If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
    If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now