Mylo wrote:

> Does anyone have an example Perl code that uses qmail-inject?

  $sendmail_command="/var/qmail/bin/qmail-inject";
  open(SENDMAIL, "|$sendmail_command -f$mailfrom $rcptto");
  print SENDMAIL $s;
  close(SENDMAIL);

$s cointain the mail, with RFC headers if needed.

Reply via email to