Thanks for the info. I can see how that would work and it sounds very similar to the way I proposed in the original post i.e.
AM2010:One possibility I can think of is sending the email first then
submitting to sharepoint, so that any properties can be set between
these two actions.
My issue with doing it this way is that if there is any problem/error with the Sharepoint site or form library, I could end up in a situation where the email is sent but the form is not saved to Sharepoint. Whilst this may not be a big problem in functional terms as the email is still there for users, it is an issue for audit and traceability purposes as the submitted form has to be in sharepoint for future reference.
The users of my application will primarily be interested in the email confirmation of the submission and it is only administrators that will be looking at submitted forms via sharepoint. I understand that there could just as easily be errors with the SMTP server and the email may never get delivered to the users, but in this instance the user would be aware there had been a problem as they would know they hadn't received an email, which wouldn't be the case if it failed to save to Sharepoint.
I'm a newbie to MOSS and InfoPath so I'm a little cautious about how stable sharepoint will be and how reliable the submission mechanism actually is in a production environment where there may be hundreds of submissions within a single day. I guess this may be an issue I'll have to learn to live with. I just wondered whether anyone had stumbled across a similar issue before and if there were any proposals for getting around this.
Thanks again for the tips.