I'm using the Developer API to add new leads using the insertRecords() method.
I have an email template and I want to trigger sending it to the new lead the same way I can trigger it when the lead is added through the Web-to-Lead Form.
How can I do this?