I was trying to generate one csv file dynamically for each recipient in AC server for the group of recipients.
After that tried to deliver the email to the group of 700+ people and attached this generated csv files. Then I face the following error for 70+ people out of 700+ ..
"Cannot open file '<file name>' with read access (errno=2, No such file or directory)"
But actually csv files are there for this 70+ people also. When the delivery job retried again after 1 hour later it was successfully go through for this 70+ people. Any idea why the error happen on first attempt? The file size is not more than 1 MB for each file.
I generated the files first. Checked and make sure files are there. Few hours later I send out the email so it is not possible that files are not there on delivery.
And I cannot test with 200 or 300 recipients. I can only see the result when I send out the email. I cannot send to 200 or 300 real user or if it's send only to me my mail box may blacklist sender address assuming it is the spam mail. Is there anyway that I can test without sending actual email?
Oh by the way the attachment file name are dynamically computed during delivery. The files are created earlier yes but for each recipient which file to attach from the list of csv file is decided during delivery. The file name includes the recipient code so each recipients suppose to receive their own file only. So when I attached the file in the delivery template I choose 'File name is computed during the delivery for each message.(it can depend on the recipient profile)'. Is there any problem computing the file name for 700+ recipients? If that's the case error msg cannot be able to show the file name. But now error msg show 'File not found' with the correct file name but actually the files are there.