Hello all,

I got a problem with the sendmail.py-script from the /bin-directory:

Wenn I try to send a mail to two TO-recipients from a PHP-Script, only
the first one will be delivered :-(

<?PHP mail("[EMAIL PROTECTED],[EMAIL PROTECTED]", "hallo", "moep", "From: 
[EMAIL PROTECTED]", "[EMAIL PROTECTED]"); ?>

(yes, sendmail-option "-t" is set: phpinfo() -> "sendmail_path: 
/usr/sbin/sendmail -t")

I'm no Python-guy, but this doesn't look like there's a extraction of multiple 
(comma-seperated) recipients:

[...]
        if header.startswith("To:"):
            if extract:
                to = header[3:]
                to_addrs.append(to[("<" + to).rfind("<"):(to + ">").find(">")])
[...]


Any Python-guru who can fix this?


And there's another isue:

This line:

    from_addr = os.environ['USER'] + '@' + socket.getfqdn() 


caused my mail-delivery to crash. I think it's an permission-thing, but didn't 
went any further.
I just changed it to

    from_addr = "[EMAIL PROTECTED]" 

(since the sender is pased by "-f") and now it works (for one recipient :-( ).


Thanks a lot in advance!
Stephan


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to