Title: From adding quotes
Last modified: August 31, 2016

---

# From adding quotes

 *  [IvanRF](https://wordpress.org/support/users/ivanrf/)
 * (@ivanrf)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/from-adding-quotes/)
 * I’m using Comment Mail with this plugin. The `From` is adding an extra quotation
   when using the `From` passed by the other plugin. The Headers have:
 * `From: "'Name'" <mail@mail.com>`
 * So, the email client shows a mail from `'Name'`. Those `'` are extra 🙂
 * For now, I will use the option: “Prevent plugins and themes from changing this”
   for the Name. Nevertheless, the simple quotes should be handle by Postman.

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

 *  Plugin Author [Jason Hendriks](https://wordpress.org/support/users/jasonhendriks/)
 * (@jasonhendriks)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/from-adding-quotes/#post-7155948)
 * Hmm… automatically remove any single quotes surrounding a name?
 * Ya, maybe..
 * This has come up before and as far as I can remember, it’s not Postman that adds
   the double quotes. It’s the mail server. You can verify in the session transcript.
 *  Thread Starter [IvanRF](https://wordpress.org/support/users/ivanrf/)
 * (@ivanrf)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/from-adding-quotes/#post-7155953)
 * In the session transcript, this only appears in the `DATA` section
 *     ```
       ...
       235 Authentication succeeded
       MAIL FROM:<mail@mail.com>
       250 OK
       ...
       DATA
       354 Enter message, ending with "." on a line by itself
       X-Mailer: Postman SMTP 1.7.2 for WordPress (https://wordpress.org/plugins/postman-smtp/)
       ...
       From: "'Name'" <mail@mail.com>
       ...
       ```
   
 *  Plugin Author [Jason Hendriks](https://wordpress.org/support/users/jasonhendriks/)
 * (@jasonhendriks)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/from-adding-quotes/#post-7155954)
 * You’re quite correct then… Postman (the zend_mail library) has added the double
   quotes, probably because it detected an invalid character (the single quote).
   I’ll make the fix to remove the single quotes.
 *  Thread Starter [IvanRF](https://wordpress.org/support/users/ivanrf/)
 * (@ivanrf)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/from-adding-quotes/#post-7155956)
 * ok, thanks!
 *  Thread Starter [IvanRF](https://wordpress.org/support/users/ivanrf/)
 * (@ivanrf)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/from-adding-quotes/#post-7155975)
 * The option “Prevent plugins and themes from changing this” didn’t work as a workaround
   for this issue. I just receive an email notification from Comment Mail and it
   still has the single quotes. 🙁
 *  Thread Starter [IvanRF](https://wordpress.org/support/users/ivanrf/)
 * (@ivanrf)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/from-adding-quotes/#post-7156062)
 * To give more details, I found that Comment Mail plugin is adding double quotes
   in the From name:
 * `From: "Name" <mail@mail.com>`
 * According to examples in [WP reference](https://developer.wordpress.org/reference/functions/wp_mail/),
   it shouldn’t. I opened an issue [here](https://github.com/websharks/comment-mail/issues/258).
 * Nevertheless, is up to you to decide if you want to control this cases or not:).
   I think you should, it’s simple and there could be more plugins using double 
   quotes. Single quotes were added on your side 🙂
 *  Plugin Author [Jason Hendriks](https://wordpress.org/support/users/jasonhendriks/)
 * (@jasonhendriks)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/from-adding-quotes/#post-7156089)
 * I’ll install the plugin and try and reproduce your issue and get back to you 
   🙂
 *  Thread Starter [IvanRF](https://wordpress.org/support/users/ivanrf/)
 * (@ivanrf)
 * [10 years ago](https://wordpress.org/support/topic/from-adding-quotes/#post-7156217)
 * Developers of the other plugin came to the conclusion that is a problem on your
   end (single quotes).
 * You can read their analysis [here](https://github.com/websharks/comment-mail/issues/258#issuecomment-222865263).
 *  Plugin Author [Jason Hendriks](https://wordpress.org/support/users/jasonhendriks/)
 * (@jasonhendriks)
 * [10 years ago](https://wordpress.org/support/topic/from-adding-quotes/#post-7156218)
 * I’ll check it out.
 *  [aktm](https://wordpress.org/support/users/isosquare/)
 * (@isosquare)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/from-adding-quotes/#post-8441631)
 * Any progress on this issue? I’m facing the same problem with notifications sent
   through Gravity Forms. Single quotes being added to the From header for no apparent
   reason.

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

The topic ‘From adding quotes’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/postman-smtp_7c7b78.svg)
 * [Postman SMTP Mailer/Email Log](https://wordpress.org/plugins/postman-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/postman-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/postman-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/postman-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/postman-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/postman-smtp/reviews/)

 * 10 replies
 * 3 participants
 * Last reply from: [aktm](https://wordpress.org/support/users/isosquare/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/from-adding-quotes/#post-8441631)
 * Status: not resolved