Title: CF7 E-Mail use if statement
Last modified: March 23, 2021

---

# CF7 E-Mail use if statement

 *  [dphi](https://wordpress.org/support/users/dphi/)
 * (@dphi)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cf7-e-mail-use-if-statement/)
 * Hello,
 * i couldn’t found any direct solution for my problem so i hope anybody can help
   we with this.
 * It is possible to work with if-Statements for emails in CF7? I need to send a
   specific text if the phone field is empty.
    _In short_: if(phonefield == empty)-
   > Display randomnumber in email instead of phone number
 * Thanks in advance

The topic ‘CF7 E-Mail use if statement’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

## Tags

 * [if statement](https://wordpress.org/support/topic-tag/if-statement/)

 * 0 replies
 * 1 participant
 * Last reply from: [dphi](https://wordpress.org/support/users/dphi/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/cf7-e-mail-use-if-statement/)
 * Status: not resolved