Question: I have this mail notification for new post.

All the new post contain arround 100 words and no pictures, so I would like to include in the notification the post content and if is possible, the number of words in the post.

Anybody could help me? 

Thanks for all

```
    /* avisar al admin*/
function submit_send_email ($post) {

        $user_info = get_userdata ($post->post_author);
        $strTo = array ('mail@mail.com');
        $strSubject = 'Your website name: ' . $user_info->user_nicename . ' submitted a post';
        $strMessage = 'A post "' . $post->post_title . '" by ' . $user_info->user_nicename . ' was submitted for review at ' . wp_get_shortlink ($post->ID) . '&preview=true. Please proof.';
        wp_mail( $strTo, $strSubject, $strMessage );

}
add_action('future_to_pending', 'submit_send_email');
add_action('new_to_pending', 'submit_send_email');
add_action('draft_to_pending', 'submit_send_email');
add_action('auto-draft_to_pending', 'submit_send_email');

```

Answer: 
This question had me scratching my head. Yeah, how come WordPress doesn't support this natively? And then I found out. 

You asked how to upload SVG in WordPress 4.9.8 (the current version at the time of writing). You mention that you "tried uploading after installing different plugins". You don't say which plugins, nor whether they relate to SVG.

As I understand the situation, the safest, most appropriate, answer at this time is to use [SVF Safe](https://wordpress.org/plugins/safe-svg/) (a plugin written for this very purpose) by Darrell Doyle. If this plugin doesn't work for you, then I'd suggest that you have a conflict elsewhere, and you should follow the usual procedures for resolving that. Personally, if this plugin didn't work for me then I'd give up on the notion of uploading SVGs.

If you haven't already done so, may I suggest reading "[SVG Uploads in WordPress - the inconvenient truth](https://bjornjohansen.no/svg-in-wordpress)" by Bjorn Johansen and/or "[How to Safely Enable WordPress SVG Support - 2 Simple Clicks](https://kinsta.com/blog/wordpress-svg/)" by Brian Jackson. At least you should know what you are letting yourself in for.
After adding **upload\_mimes** action still anyone facing issue then add this in your wp-config.php file

```
define( 'ALLOW_UNFILTERED_UPLOADS', true );

```