how to setup dynamic email string for setTo
Posted: Wed Aug 04, 2010 10:28 am
basically that what i wanna do but i can't seem to do it nor have i found anyone that tried it before.
basically im receiving a string with emails as so
john@gmail.com, maria@gmail, etc@gmail.com
and i want to use those emails and place them in the setTo field but i can't
ive tried creating a string with each email delimited with ', like
'john@gmail.com', 'maria@gmail', 'etc@gmail.com'
placing it in a variable and setting that variable in the setTo field but that fails.
so, how would i go about and doing it?
basically im receiving a string with emails as so
john@gmail.com, maria@gmail, etc@gmail.com
and i want to use those emails and place them in the setTo field but i can't
ive tried creating a string with each email delimited with ', like
'john@gmail.com', 'maria@gmail', 'etc@gmail.com'
placing it in a variable and setting that variable in the setTo field but that fails.
so, how would i go about and doing it?