in reply to Mail not sending

What program are you sending the mail with?
--------------
It's sad that a family can be torn apart by such a such a simple thing as a pack of wild dogs

Replies are listed 'Best First'.
Re^2: Mail not sending
by lakeTrout (Scribe) on Mar 04, 2005 at 19:42 UTC
    I am talking directly to sendmail
    $SENDMAIL_CMD = '|/usr/lib/sendmail -t -oi';
    here is my sendmail sub:
    sub sendmail{ my(%mail)= @_; open(MF, $SENDMAIL_CMD) || print "Sendmail Error! ($!)\n";; print MF<<__MAIL_EOF__; From: $mail{from} To: $mail{to} Bcc: $mail{bcc} Subject: $mail{subject} $mail{body} __MAIL_EOF__ }
      Hi!

      Try escaping the comma separating your Bcc: addresses -- it may be interfering with the construction of the %mail hash..

      Will it work using
      bcc => 'myaddress@xyz.com\, address1@xyz.com'

      I'd guess you're being bitten by an inadvertent newline in your inputs. Have you considered using a module? I've had great luck with MIME::Lite over the years.