Change content of email verification email based on gender provided by user In my website when a user submits the registration form and email verification is sent to them. Is there a way to change the content of the verification email that is sent after the user submits the registration form based on the gender they have selected. I'm trying to make a separate emails for male and female users.

The default email provided by Drupal says


  [user:name],
  
  Your account at [site:name] is created. You may now log in by clicking
  this link or copying and pasting it to your browser:
       [user:one-time-login-url]
  
  This link can only be used once to log in and will lead you to a page
  where you can set your password.
  
  After setting your password, you will be able to log in at
  [site:login-url] in the future using: username: [user:name]
  password: Your password
  
  --  [site:name] team


I want to change this. For example if the user selects "Male" for gender in the registration form so instead of [user:name], it says "Hey Boy!" and if the user selects "Female" in the registration form the email says "Hey Girl!". 

Is it possible to make that change? 

Thank You.
You've got two options:


Create yourself a custom token and use that.
Use the hook_mail_alter function


https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_mail_alter/7

The token approach is the more elegant approach, but needs a bit of head-wrapping to understand the concepts. The hook_mail_alter might be an easier quick hack.