public string GetIndicesAsString( DataTable mergeTable, string tag )
Public Function GetIndicesAsString ( mergeTable As DataTable, tag As String ) As String
This method can be typically used to get the results of mail merge (which rows have been processed successfully, which have been failed, etc). Later, Smtp.AddJobs method can be used to populate Smtp.JobsPending collection with the stored values.
If, for some reason, the developer needs to work with indices of particular jobs, this can be done using SendMailJob.GetIndicesAsString method. The current method internally uses SendMailJob.GetIndicesAsString to get indices for jobs that match the given criteria. See SendMailJob.GetIndicesAsString method documentation for more information on how MailBee returns indices of a single job's data rows.
To place failed jobs back into Smtp.JobsPending collection, it's easier to use Smtp.RetryFailedJobs method. However, Smtp.RetryFailedJobs method cannot be used in the case if the application shuts down after performing mail merge cycle and thus all the information in the Smtp.JobsXXX collections gets lost.
In this case, the developer may want to get the list of failed data rows and then save it into persistent storage such as a file or a database. Later, the application starts again, loads this file and gets the list of data rows to process, and processes them. This scenario can be implemented with Smtp.AddJobs methods.and