in reply to Re: Mail not sending
in thread Mail not sending

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__ }

Replies are listed 'Best First'.
Re^3: Mail not sending
by hsinclai (Deacon) on Mar 04, 2005 at 19:48 UTC
    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'

Re^3: Mail not sending
by trammell (Priest) on Mar 04, 2005 at 19:56 UTC
    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.