sending emails & creation pdf