Invoice document is not working with the output medium "email"
I have copied the standard output type RD00 into my custom output type. It is printing successfully if I print it with any printer. But it is not working fine if I use the print medium as "email".
I have used the output medium "email" for other documents and output types. For them it is working as expected. I am getting the emails also. But for this output only it's not working.
what might be the problem. Help needed asap.