Hi
if you run the report rsconn06 than you can set the radio button to 'save the MIME for outbound mail'
Than you have to create sendrequest for both cases, hard coded values and when you pass the value.
After sending the mails the mime can be downloaded in tr sost. You can than compare the 2 mimes and see the differences where it is going bad.
Best regards
Jozsef