Title: Email Random Code on New Post
Last modified: August 19, 2016

---

# Email Random Code on New Post

 *  [html-css](https://wordpress.org/support/users/html-css/)
 * (@html-css)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/email-random-code-on-new-post/)
 * I am using a classified plugin and it uses custom post type for classified ads
   so when a user submit a classified ad on the site which is actually a custom 
   post the status is changed to pending till the admin don’t approve it.
    What 
   i want to do is to email a random code to the ad submitter when he create a new
   ad/post. And when he put that code in a box at the site the status of his posts
   is changed to publish from pending automatically. (We can store that random code
   in a custom field but i am not sure how to create the whole process)
 * So any suggestion how to make it possible? Thanks in advance

Viewing 1 replies (of 1 total)

 *  Thread Starter [html-css](https://wordpress.org/support/users/html-css/)
 * (@html-css)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/email-random-code-on-new-post/#post-1895524)
 * any reply?

Viewing 1 replies (of 1 total)

The topic ‘Email Random Code on New Post’ is closed to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [custom post type](https://wordpress.org/support/topic-tag/custom-post-type/)
 * [pending](https://wordpress.org/support/topic-tag/pending/)
 * [published](https://wordpress.org/support/topic-tag/published/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [html-css](https://wordpress.org/support/users/html-css/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/email-random-code-on-new-post/#post-1895524)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
