The code you have provided does not insert a blank line between the header data (from, to, cc, subject, etc) and the message body.
This seems to cause your mailer to treat the whole message a 'message body' which is why the recipient gets an email with the 'CC' line separated from the header by a blank line. consider inserting print MAIL "\n"; after the reply-to line. On Fri, 10 Sep 2004 01:47:56 +0200, Reinhold Riedersberger <[EMAIL PROTECTED]> wrote: > Hello once more :-), > > why does the CC-line not send any mail? > The To-Line is well. And the CC-Line appears in the first mail. But > there will not send any mail to the cc-address. > > What is there wrong? > > open ( MAIL , "|$mailprog -t") || die "Kann $mailprog nicht öffnen!\n"; > > print MAIL "To: [EMAIL PROTECTED]"; # Dummy-Empfänger > print MAIL "Cc: $zieladressen\n"; > print MAIL "Subject: $thema-Anfrage\n"; > print MAIL "From: $email\n"; > print MAIL "Reply-to: $email\n"; > print MAIL "Textline1\n\n"; > print MAIL "Textline2\n\n"; > > -- > Mit freundlichen Grüssen > > Reinhold > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>