Title: php mail function
Last modified: August 21, 2016

---

# php mail function

 *  [luckytanuki](https://wordpress.org/support/users/luckytanuki/)
 * (@luckytanuki)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/php-mail-function-1/)
 * Hi, I had a problem with the email headers not properly with qmail. I was able
   to fix this by changing all instances of the php mail() function to the wordpress
   wp_mail() function. This is a very easy fix, simply add wp_ to the front of all
   mail functions.
 * eg change
    `mail($to, $subject, $theMessage ,$headers);` to `wp_mail($to, $subject,
   $theMessage ,$headers);`
 * cheers
 * John
 * [https://wordpress.org/plugins/td-ticket-system/](https://wordpress.org/plugins/td-ticket-system/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [transcendev](https://wordpress.org/support/users/transcendev/)
 * (@transcendev)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/php-mail-function-1/#post-4805300)
 * Thanks for sharing that. I should’ve known WordPress provided an email wrapper
   function. I’ll switch it to that by default in a future update.
 *  [ashishrevar](https://wordpress.org/support/users/ashishrevar/)
 * (@ashishrevar)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/php-mail-function-1/#post-4805439)
 * Where to change?
    I have installed plugin and from front end, I am able to create
   tickets which are being shown in backend. Unfortunately I am not getting any 
   ticket ID or message ID. So I end users are not able to login again to check 
   the status of tickets.
 * Within my site, mail functionality is not working.
 * Please provide your suggestions.
 *  [emartinez1302](https://wordpress.org/support/users/emartinez1302/)
 * (@emartinez1302)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/php-mail-function-1/#post-4805456)
 * I have the same issue, I am not geting a ticket ID or message ID. None of the
   mail functionality is working.
    Please help! :/

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘php mail function’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/td-ticket-system.svg)
 * [TD Ticket System](https://wordpress.org/plugins/td-ticket-system/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/td-ticket-system/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/td-ticket-system/)
 * [Active Topics](https://wordpress.org/support/plugin/td-ticket-system/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/td-ticket-system/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/td-ticket-system/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [emartinez1302](https://wordpress.org/support/users/emartinez1302/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/php-mail-function-1/#post-4805456)
 * Status: not resolved