The events field in the Mail Events form is a multi-value field. You will need to loop through all the values and repeat your writing to file for each value.
For instance with a simple routine like this:
x=0 Do While x<Ubound(doc.events) myContent=doc.Events(x) 'do your thing here x=x+1 Loop
This will allow you to keep printing to your file, until the last value is reached of the events field.
This was first published in May 2003