$40 to the person that can fix my email problem. My registration email is going to the spam or bulk folder. I installed SMTP with phpmailer. When i try to run a test emial I get a error message.

Fatal error: require_once() [function.require]: Failed opening required 'sites/all/modules/smtp/phpmailer/class.phpmailer.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/exxcom/public_html/sites/all/modules/smtp/smtp.module on line 252

Looking for someone to fix my email issue.

Comments

bwv’s picture

Did you install the phpmailer package per the instructions?

See this:

http://drupal.org/node/711676

And this:

http://drupal.org/node/279264#comment-2916028

And maybe this:

http://drupal.org/node/311151#comment-1878042

jvizcarrondo’s picture

Hi
I believe that you don't put PHPMailer for PHP5/6 into subdirectory 'phpmailer' (class.phpmailer.php and class.smtp.php) or your web server can't load this. The first thing you do is read the README.txt in phpmailer module, there explain how to install this.

Hope that helps

Juan

lorinpda’s picture

Hi,
You are describing two separate issues.

First Issue:

"Fatal error: require_once() ...." refers to an installation/configuration issue. Your installation requires the phpmailer package to be installed in a subdirectory of "sites/all/modules/smtp". That subdirectory should be called "phpmailer".

You need to use the correct version of "phpmailer". I've used the following version 2.2.1 located here: http://sourceforge.net/projects/phpmailer/files/phpmailer%20for%20php5_6...

Your installation should include the following:

sites/all/modules/smtp/phpmailer/class.phpmailer.php
sites/all/modules/smtp/phpmailer/class.pop3.php
sites/all/modules/smtp/phpmailer/class.smtp.php

You should also have a sites/all/modules/smtp/phpmailer/language subdirectory (as well as docs, examples, phpdoc, test).

The second issue is "my registration email is going to the spam or bulk folder". You have not supplied enough information here to properly diagnose the issue.

Are you running your Drupal installation on a home computer? Or do you have it installed on a web hosting service? If you are using a web hosting service (which comes with your own email server) you don't need the smtp module.

In lieu of any details, my guess is your Drupal installation is sending emails from one domain (e.g. sbcglobal) but has the "from" email address in another doman (e.g. mydrupal site). If the 2 domains don't match or fails a reverse dns lookup, your message will be flagged.

Try resetting your Drupal "Site Information" settings. Use the Drupal Admin functions, "Site Information". If using the smtp module, change the "E-mail address: " so that it matches the domain in the smtp module settings. For example, if you are going through "sbcglobal" as your smtp server, make sure your site's email address also uses "sbcglobal".

The issue of "why a set of email are flagged as spam" is broad. There are many many different possible reasons. You really need to elaborate before anyone can help you.

Hope that helps.

younggun’s picture

I went to check my email client on my c panel and I noticed that my ssl certificates are named after my old domain. 316ex.com I recently upgraded to d6 and changed my domain name.

Server
Issuer: C=US, ST=Unknown, L=Unknown, O=Unknown, OU=Unknown, CN=exxcom.316ex.com/emailAddress=ssl@exxcom.316ex.com
Not Before: May 21 05:20:51 2010 GMT
Not After: May 21 05:20:51 2011 GMT
Subject: C=US, ST=Unknown, L=Unknown, O=Unknown, OU=Unknown, CN=exxcom.316ex.com/emailAddress=ssl@exxcom.316ex.com
Self Signed: YES

Courier (POP3) Mail Server
Issuer: C=US, ST=Unknown, L=Unknown, O=Unknown, OU=Unknown, CN=exxcom.316ex.com/emailAddress=ssl@exxcom.316ex.com
Not Before: Aug 4 03:07:48 2009 GMT
Not After: Aug 4 03:07:48 2010 GMT
Subject: C=US, ST=Unknown, L=Unknown, O=Unknown, OU=Unknown, CN=exxcom.316ex.com/emailAddress=ssl@exxcom.316ex.com
Self Signed: YES

cPanel/WHM/Webmail Service
Issuer: C=US, ST=Unknown, L=Unknown, O=Unknown, OU=Unknown, CN=exxcom.316ex.com/emailAddress=ssl@exxcom.316ex.com
Not Before: Aug 4 03:07:48 2009 GMT
Not After: Aug 4 03:07:48 2010 GMT
Subject: C=US, ST=Unknown, L=Unknown, O=Unknown, OU=Unknown, CN=exxcom.316ex.com/emailAddress=ssl@exxcom.316ex.com
Self Signed: YES

Courier (IMAP) Mail Server
Issuer: C=US, ST=Unknown, L=Unknown, O=Unknown, OU=Unknown, CN=exxcom.316ex.com/emailAddress=ssl@exxcom.316ex.com
Not Before: Aug 4 03:07:46 2009 GMT
Not After: Aug 4 03:07:46 2010 GMT
Subject: C=US, ST=Unknown, L=Unknown, O=Unknown, OU=Unknown, CN=exxcom.316ex.com/emailAddress=ssl@exxcom.316ex.com
Self Signed: YES

Ftp Server
Issuer: C=US, ST=Unknown, L=Unknown, O=Unknown, OU=Unknown, CN=exxcom.316ex.com/emailAddress=ssl@cpanel.net
Not Before: Mar 11 03:05:59 2009 GMT
Not After: Jul 26 03:05:59 2036 GMT
Subject: C=US, ST=Unknown, L=Unknown, O=Unknown, OU=Unknown, CN=exxcom.316ex.com/emailAddress=ssl@cpanel.net
Self Signed: YES

younggun’s picture

Based on my last post that was the problem. I contacted my host provider and they changed my SSL certificate configurations to my new site. I created a test account to gmail and it went straight to my inbox.

Thanks hope this helps someone else.

lorinpda’s picture

Hi,
As I stated, a mismatch in domain names is one of the first things to check.

The reverse dns lookup on your mail server is not correct. See http://www.mxtoolbox.com/SuperTool.aspx?action=a%3asoshion.com . Click on "mx lookup", the click on "SMTP Test". It shows:
Warning - Reverse DNS does not match SMTP Banner

When someone registers for your site, they get an email from "exxcom.316ex.com" not "soshion.com". Most email clients will mark such a message as spam or bulk. Look at all the email headers or email source if you aren't sure what I am referring to (see below, I am sure your hosting service will understand:)).

I recommend you contact your hosting company and have them fix up your email settings.

younggun’s picture

Thanks Lorinpda I thought my problem was fixed I sent a request to my host provider. I should be getting some feedback soon.

younggun’s picture

I just wanted to post a update about the registration. Gmail works just fine yahoo is still go into the bulk folder not sure why.

da_solver’s picture

If you are using a web hosting service (which comes with your own email server) you don't need the smtp module.

I agree with lorinpda. If you have a hosted email server, you don't need the smtp module.

Are you still using the smtp module? If so why? If you don't need it, why complicate your setup even further?

If the email is coming from a different domain (as lorinpda points out), most email servers and clients are likely to mark it as spam (or bulk). The domains must match. That's your fix.

lorinpda’s picture

Hi,
Just tested with the yahoo email client. Right click to "VIew Full Headers" (same as viewing the source).

Received: from exxcom.316ex.com ([208.116.36.208] helo=soshion.com)
	by exxcom.soshion.com with esmtpa (Exim 4.69)
	(envelope-from <help@soshion.com>)

The messages must come from "soshion.com", not "exxcom.316ex.com".

If you have multiple MX records, make sure that soshion.com is set to the highest priority. Can you ask your hosting service about the MX records?

lorinpda’s picture

From the command line:

$ nslookup
set type=mx
server.soshion.com
Mail still shows it is originating from gmail not the web hosting mail server

Non-authoritative answer:
*** Can't find server.soshion.com: No answer

Authoritative answers can be found from:
soshion.com
        origin = ns1.soshion.com
        mail addr = yoursale.gmail.com
        serial = 2010052302
        refresh = 86400
        retry = 7200
        expire = 3600000
        minimum = 86400

To complicate matters, the a subdomain (server.sushion.com) is being used instead of simply "sushion.com".

Again, mail's originating server must match the "from" email address. Why is "SMTP" being used to route through gmail? Why are you using a sub-domain (server.sushion.com) instead of the actual domain?

Why not disable the smtp module? Get your hosting service to set up the email server at "sohion.com", not a sub-domain.

"server.soshion.com" is not the same as "soshion.com". Why make this extra complicated??

This should be a simple configuration. Please work with your hosting service to set:

Email server: soshion.com
Site Email Address: help@soshion.com

What is with the SMTP configuration, gmail and subdomain????