in reply to Re: Re: Sending email with Net::SMTP
in thread Sending email with Net::SMTP

If you've got your email addresses from CGI.pm, then they should be concatenated into one long string with the \0 character in between items, unless I'm crazy.

So you can make an array out of that param with

@addressees = split('\0' $q->param($m_EmailGroups))

or whatever.

But it also sounds like you only ever expect them to choose one addressee? In that case you need Radio Buttons, not checkboxes, and you don't need to process it at all.



“Every bit of code is either naturally related to the problem at hand, or else it's an accidental side effect of the fact that you happened to solve the problem using a digital computer.”
M-J D

Replies are listed 'Best First'.
Re: Re: Re: Re: Sending email with Net::SMTP
by Anonymous Monk on Jul 15, 2003 at 00:58 UTC
    Yes, they should be able to choose more than one email address to sent to. The radio button will only limit to one. I will try to concatenate the address into one long string and pull it from there.
    @addressees = split('\0' $q->param($m_EmailGroups)) $smpt->recipient(@addressess);
      Well that should do it.

      Just to point out though, they're already concatenated. CGI.pm does that for you.



      “Every bit of code is either naturally related to the problem at hand, or else it's an accidental side effect of the fact that you happened to solve the problem using a digital computer.”
      M-J D