fix: Fix attribute error in email rendering
This is caused by passing both a dict and an email object to the same function. Due to which, attribute access on dict object caused exception.
Fixes #495
This is caused by passing both a dict and an email object to the same function. Due to which, attribute access on dict object caused exception.
Fixes #495