I told you where that happens already, between lines 431 and 523.
To tell you the truth, I read your response about five times and never saw that there. Sorry, it's been a very long week, and it's only Wednesday.
I agree that setting up the fields as dynamic and feeding an array to gravity forms would work great, except that the dataset we are using begins life as a spreadsheet. Your plugin already parses the data in the csv file, and puts it in all the same tables as gravity forms does, the only thing it doesn't do is trigger the notification emails, so it is the perfect basis for the additions I need to make.
What I have decided to do is add all the $_field_num=>$_valu pairs generated by the switch on line 437 to an array, then I can take those values, replace them in the notification email set up in wysiwyg editor for gravity forms form and then use mail() to send the emails to people that should be receiving them.
Since you are accusing me of creating spam (ahem) I'll let you in on what we are doing. This religious organization that we work with is trying to connect high school students in local church youth groups with the church youth group of the college that they are planning to attend.
On the front end a high school student can enter their information in a form and when that info is submitted a notification email is sent back to the student welcoming them and giving them information about the youth group. Another email is sent to the youth group leader at the college informing them of a student interested in joining their group and provide contact info for the student so that they call the student and welcome them personally to the group.
At high school youth group gatherings the youth group leaders/ministers sometimes collect the same information about the students, with their knowledge, then send a spreadsheet to the organization running the website. We use your awesome plugin (the only one of its type in the WordPress univers) to get that batch of student information into the database, but by default, there are no notifications sent to the student or youth group minister at the college. Sure, the owner of the website could select all those new records in the admin and choose to "re-send" notifications to the relevant parties, but they want it to be automatic. That's where I come in, and it's the reason we are having this conversation about adding notifications to the parsecsv.lib.php file. :)
Thanks for your help.
P.S. It just dawned on me that I might just be able to put the IDs of each of the new records into an array and then trigger Gravity Forms' built-in resend_notifications() function on each of those entries that way. Or better yet, just take the last $rowcount number of records in the lead_id column and "resend" the notifications to them.
I am glad we had this talk.