Hi Chris, thanks for your reply. Maybe I didn’t explained it clearly enough. As I get how that works, it is super basic GF stuff. I have implemented highly customized form handling already.
So let me try to explain differently. The form has 1 notification set. In this example it is sent to 10 out of 100 available receivers (via selected checkboxes updated by ajax). These 10 email copies of the same notification are sent by BCC (as I do not want people to see who else receives the notification).
Now the problem: the BCC emails are sent at all once by the BCC header ($email[‘headers’][‘Bcc’]) so they are all the same. I’d like to ‘intercept’ the notification emails (just) before they are sent so I can personalize the content of each one of them. Maybe by using something simple as str_replace(‘FIRSTNAME’, ‘$firstname’, $email[‘message’]) or something. But this would affect all messages so they would all have the same first name. So to be able to customize them all I think I need to send them 1 by 1? Correct?
So maybe I’m just looking for a way to send the notification emails manually and above all separately.
Which function does the sending of the notification, and in which hook do i place the sending code? gform_pre_send_email ?
Hope this explains! Thanks!