Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: Mail not sending

by lakeTrout (Scribe)
on Mar 04, 2005 at 19:42 UTC ( [id://436719]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://436719]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-24 22:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found