This was putting a blank character as the first letter of each recipient, except for the first. I don't know what the character was as it didn't show up at all when I printed $address out on the HTML page generated by the script. It wasn't whitespace either as it survived this:
However, when I turn $address into an array and do the following to every item but the first:s/^\s+//; s/\s+$//;
It works perfectly. Obviously the HTML puts a weird character between items from the combo box. I was misled by the fact that it doesn't show up when you output the string to HTML. Not as a space, a carrage return or anything.substr($string, 0, 1) = "";
For the record, I tried substituting the 'smtp' command in the Mail::Mailer code with 'test', to produce the email as output, and ran it on the command line. It produced the following:
to: one@example.com
From: sender@example.com
To: one@example.com
Subject: Subject
I don't know if this was what it should have returned, but it doesn't look at all right to me. Maybe this was why the mail server was knocking it back.
I got MIME::Lite to do exactly what I wanted it to (eventually!). It works, it's good, I'm happy.
Cheers,
Andy.
In reply to Re: Mail::Mailer & MIME:Lite On Win2k
by Murf
in thread Mail::Mailer & MIME:Lite On Win2k
by Murf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |