Today's struggle is wrestling with an old program to get it to CC someone when it sends out emails.

User is in a form, selects "From" and "To". Enters text into a text box. Hits the Send button. This all works.

Trying to CC our Service manager on these things and can't get it to work.

Here's a cut of the code:


        if (isset($in_body))
        {//save the note then close this screen
           $in_body = $in_who . ':   ' . $in_body;
           $headers['From']    = $in_who;

           //$headers['To']      = $in_to . ',[EMAIL PROTECTED]';
           $headers['To']      = $in_to;    //this is the original line

           $headers['CC']      = "[EMAIL PROTECTED]";

           $headers['Subject'] = $in_subject;
           //$params ['sendmail_path'] = '/usr/lib/sendmail';
           $params ['host'] = "whatever.com";
           $params ['port'] = 25;
           $params ['auth'] = false;
           $params ['username'] = '';
           $params ['password'] = '';
           $mail_object =& Mail::factory('smtp', $params);
           $mail_object->send($in_to,$headers,$in_body);
           echo ('<script LANGUAGE="JAVASCRIPT">');
           echo ('close();');
           echo ('</script>');
        }


I've left some snippets in there as examples of what I've been trying, such as appending an email addy to the "To" param, stuffing it in the 'CC' of the header, etc.

The code for the Mail.php says that if addy's come in in a comma seperated list that it parses them out.

No joy....

Any help out there?

--
Matthew S. Jarvis
IT Manager
Bike Friday - "Performance that Packs."
www.bikefriday.com
541/687-0487 x140
[EMAIL PROTECTED]
_______________________________________________
EUGLUG mailing list
[email protected]
http://www.euglug.org/mailman/listinfo/euglug

Reply via email to