I want to call function in mail body. I am using Rules modules for sending mail on some event triggers.
anyone have idea, how can i achieve this?
You can alter the mail content using hook_mail_alter
hook_mail_alter() allows modification of email messages created and sent with drupal_mail(). Usage examples include adding and/or changing message text, message fields, and message headers.