Hi Brainard.
But now a get the error (variable CDOSENDMAILADDRESS not found).
How to set this variable?It works better if you include this before the rest of your code:
#DEFINE cdoSendEmailAddress "http://schemas.microsoft.com/cdo/configuration/sendemailaddress"
Sorry about the oversight.