Title: Spam Mail   HTTP ERROR 500
Last modified: September 1, 2016

---

# Spam Mail HTTP ERROR 500

 *  [meravjon](https://wordpress.org/support/users/meravjon/)
 * (@meravjon)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/spam-mail-http-error-500/)
 * Hi,
    I’m using the plugin for a year or so, and I get the upgrade notification.
   I didn’t upgarade casue I havwn’t been able to stabilize the forum. I get lots
   of problems with the plugin, altho I love the way it functions (when it is functioning).
   A mounth ago I erased all my site users and start the registraion from scratch(
   as result all the question and answered disapear). For now I have 2 problems:
   1. All mails send from the notification are sent to spam. So actually I don’t
   get any notification in real time when somebody writes question nor answer. 2.
   I can’t reply to questions I get HTTP ERROR 500 (Just when I’m using this plugin,
   all the rest on my site works great).
 * [https://wordpress.org/plugins/dw-question-answer/](https://wordpress.org/plugins/dw-question-answer/)

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

 *  Plugin Author [DesignWall](https://wordpress.org/support/users/designwall/)
 * (@designwall)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/spam-mail-http-error-500/#post-7709206)
 * Hi meravjon,
 * Please reach us at **[moderator note: please do not ask for off-forum contact]**
   _and I can help you solve this issue._
 *  Thread Starter [meravjon](https://wordpress.org/support/users/meravjon/)
 * (@meravjon)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/spam-mail-http-error-500/#post-7709252)
 * Sorry, didn’t get where to reach you
 *  Plugin Author [DesignWall](https://wordpress.org/support/users/designwall/)
 * (@designwall)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/spam-mail-http-error-500/#post-7709253)
 * Hi meravjon,
 * 1. All emails are sent to spam box maybe it came from your server or from your
   email address was reported as spam. Please try to use [wpMandrill](https://wordpress.org/plugins/wpmandrill/)
   to send the email.
 * 2. Please try to enable debug by replacing the code at `wp-config.php` form
 *     ```
       define( 'WP_DEBUG', false )
       ```
   
 * to
 *     ```
       define( 'WP_DEBUG', true )
       ```
   
 * then reply the question again and you can get the error message. Paste this error
   message here and I will help you solve this problem.
 * Warm Regards,
    Kevin.
 *  Thread Starter [meravjon](https://wordpress.org/support/users/meravjon/)
 * (@meravjon)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/spam-mail-http-error-500/#post-8147842)
 * When I just open the forum:
    Deprecated: Methods with the same name as their 
   class will not be constructors in a future version of PHP; WP_Object_Cache has
   a deprecated constructor in /home/easychem/domains/easy-chemistry.co.il/public_html/
   wp-content/object-cache.php on line 110
 * Deprecated: Methods with the same name as their class will not be constructors
   in a future version of PHP; DatabaseBrowser has a deprecated constructor in /
   home/easychem/domains/easy-chemistry.co.il/public_html/wp-content/plugins/database-
   browser/database-browser.php on line 26
 * Deprecated: Methods with the same name as their class will not be constructors
   in a future version of PHP; Plugin_Register has a deprecated constructor in /
   home/easychem/domains/easy-chemistry.co.il/public_html/wp-content/plugins/database-
   browser/plugin-register.class.php on line 26
 * Deprecated: Methods with the same name as their class will not be constructors
   in a future version of PHP; Paginator has a deprecated constructor in /home/easychem/
   domains/easy-chemistry.co.il/public_html/wp-content/plugins/database-browser/
   pagination.class.php on line 6
 * When I answer a question
 * Deprecated: Methods with the same name as their class will not be constructors
   in a future version of PHP; WP_Object_Cache has a deprecated constructor in /
   home/easychem/domains/easy-chemistry.co.il/public_html/wp-content/object-cache.
   php on line 110
 * Deprecated: Methods with the same name as their class will not be constructors
   in a future version of PHP; DatabaseBrowser has a deprecated constructor in /
   home/easychem/domains/easy-chemistry.co.il/public_html/wp-content/plugins/database-
   browser/database-browser.php on line 26
 * Deprecated: Methods with the same name as their class will not be constructors
   in a future version of PHP; Plugin_Register has a deprecated constructor in /
   home/easychem/domains/easy-chemistry.co.il/public_html/wp-content/plugins/database-
   browser/plugin-register.class.php on line 26
 * Deprecated: Methods with the same name as their class will not be constructors
   in a future version of PHP; Paginator has a deprecated constructor in /home/easychem/
   domains/easy-chemistry.co.il/public_html/wp-content/plugins/database-browser/
   pagination.class.php on line 6
 * Fatal error: Uncaught phpmailerException: Invalid address: in /home/easychem/
   domains/easy-chemistry.co.il/public_html/wp-includes/class-phpmailer.php:946 
   Stack trace: #0 /home/easychem/domains/easy-chemistry.co.il/public_html/wp-includes/
   pluggable.php(352): PHPMailer->setFrom(”, ‘\xD7\x9B\xD7\x99\xD7\x9E\xD7\x99\xD7\
   x94 \xD7\x91\xD7\xA7…’) #1 /home/easychem/domains/easy-chemistry.co.il/public_html/
   wp-content/plugins/dw-question-answer/inc/Notifications.php(459): wp_mail(‘ronilatov50@gma…’,‘\
   xD7\xA4\xD7\x95\xD7\xA8\xD7\x95\xD7\x9D \xD7\x9B\xD7\x99…’, ‘<div style=”bac…’,
   Array, Array) #2 /home/easychem/domains/easy-chemistry.co.il/public_html/wp-content/
   plugins/dw-question-answer/inc/Notifications.php(174): DWQA_Notifications->send(‘
   ronilatov50@gma…’, ‘\xD7\xA4\xD7\x95\xD7\xA8\xD7\x95\xD7\x9D \xD7\x9B\xD7\x99…’,‘
   <div style=”bac…’, ‘MIME-Version: 1…’) #3 /home/easychem/domains/easy-chemistry.
   co.il/public_html/wp-includes/plugin.php(524): DWQA_Notifications->new_answer_nofity_to_follower(
   8558) #4 /home/eas in /home/easychem/domains/easy-chemistry.co.il/public_html/
   wp-includes/class-phpmailer.php on line 946
 *  Plugin Author [DesignWall](https://wordpress.org/support/users/designwall/)
 * (@designwall)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/spam-mail-http-error-500/#post-8153351)
 * Hi,
 * Please replace the code in `wp-content/plugins/dw-question-answer/inc/Notifications.
   php` at line 442
 * From
 *     ```
       public function get_from_address() {
       	$from_email = get_option( 'dwqa_subscrible_from_address' );
       	if ( !$from_email ) {
       		$from_email = get_bloginfo( 'admin_email' );
       	}
   
       	return sanitize_email( $from_email );
       }
       ```
   
 * to
 *     ```
       public function get_from_address() {
       	$from_email = get_option( 'dwqa_subscrible_from_address' );
       	if ( !$from_email || empty( $from_email ) ) {
       		$from_email = get_bloginfo( 'admin_email' );
       	}
   
       	if ( !$from_email || empty( $from_email ) ) {
       		$from_email = 'noreply@' . str_replace( 'www.', '', $_SERVER['HTTP_HOST'] );
       	}
   
       	return sanitize_email( $from_email );
       }
       ```
   

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

The topic ‘Spam Mail HTTP ERROR 500’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/dw-question-answer_fefdf9.svg)
 * [DW Question & Answer](https://wordpress.org/plugins/dw-question-answer/)
 * [Support Threads](https://wordpress.org/support/plugin/dw-question-answer/)
 * [Active Topics](https://wordpress.org/support/plugin/dw-question-answer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dw-question-answer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dw-question-answer/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [meravjon](https://wordpress.org/support/users/meravjon/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/spam-mail-http-error-500/#post-8147842)
 * Status: not resolved