On Fri, 10 Sep 2004, Reinhold Riedersberger wrote:
> Are all the variables, particularly $zieladdressen, defined ?
Yes
Hmm.
Well, for debugging, you could try inserting the variables you're using into the message body in an attempt to show exactly what's there:
print MAIL <<EOMAIL; TO: [EMAIL PROTECTED] Cc: $zieladdressen Subject: $thema-Anfrage From: $email Reply-to: $email
Textline1 Textline2
Debugging: \$zieladdressen '$zieladdressen' \$email '$email' \$thema '$thema' \$mailprog '$mailprog'
EOMAIL
Note also that this merges all your print statements into one, which should be easier to read, less likely to introduce subtle typos, and
may even be slightly faster to execute.
As another poster noted, if the To and Cc addresses are the same mail box, the mail server software may merge things. It would be worth testing this with accounts on different mail systems.
And if you really have spaces before & after the Cc line in the headers, that's broken -- but it looks like you just did that for illustration.
-- Chris Devers [EMAIL PROTECTED] http://devers.homeip.net:8080/blog/
np: 'Christopher Lydon' by The Dresden Dolls from 'A Is For Accident'
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>