So long as you can see the correct info it is fine to use the php variables to print this out rather than the recordsets. If you would like me to look into it further I would need body of the message. You can get this by editing the Universal Email server behavior and on the body tab edit in DW. From here go to code view, select all, then copy and paste into a new file.