I am bulding a site in symfony1.3.8 where user can invite their friends to 
join by sending them a unique URL (which is logged in DB along w member_id 
and email_to address).  I enabled user to send email to many people at 
once.  I have 

...
$email_to_array = preg_split("/[\s,]+/", $form->getValue('email_to'));
foreach ($email_to_array as $email_to):
...
$message = Swift_Message::newInstance()
...
$form->save();
end foreach;

Emails go out separately but the problem comes in saving the form.  It saves 
ALl email addresses in email_to field as one record and then fails to save 
the next one.  
I am trying to change my $form email_to field value but 
$form->setValue('email_to', $email_to) does not exist.  I tried setDefault 
but that did not work either.  

Any suggestions?  Thank you very much for any advice.  

Dmitry

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to