in reply to Sending email using qmail

Hi, [id://keiusui]. It just occurred to me to ask you - are you sure you've got these programs (sendmail and qmail) on your computer? I know this sounds dumb, but it's the sort of thing that can be overlooked (and I've done it).

I'm assuming you're using Linux (if you're using Windows, then you probably don't have those programs). Try going to a console and typing 'type qmail', or 'type sendmail', and seeing whether you get a path to the program, or a message saying that the program couldn't be found. On my Linux box, I have neither qmail nor sendmail; I've got procmail.

If you've got one or both of these, you may need to check the man pages (typing, 'man sendmail' or 'man qmail') to find out what the missing pieces are. You should be able to send mail from the command line, and certainly from a Perl script. Of course, if you don't have these programs, then you'll need to use what you have, or install one or both of them.

Replies are listed 'Best First'.
Re^2: Sending email using qmail
by keiusui (Monk) on Feb 21, 2006 at 07:31 UTC
    My tech support has told me that qmail is installed on my server by default, while sendmail is not. However, the path to send (/usr/sbin/sendmail) doesn't return any errors, so I was assuming it is installed.

    So now I am just focusing on getting qmail to work, grrr.

      A standard qmail installation will include a program called sendmail. This emulates the standard sendmail behavior for sending email but passes all of the actual processing on to qmail. So you should be able to use any example code that you find that uses sendmail to send mail (like, for example, the perl FAQ).

      --
      <http://dave.org.uk>

      "The first rule of Perl club is you do not talk about Perl club."
      -- Chip Salzenberg

      OK, you've got sendmail. When you write your script, where is the script run from? Your computer, or the server? If it's your computer, then I suspect you won't get it to work, since the sendmail program isn't on your computer.