Digital Access Pass is a highly equipped, WordPress Membership plugin.
There are stacks of WordPress membership plugins out there but I keep returning to Digital Access Pass for its versatility and simplicity.
…and there’s always a but when it comes to membership sites – Digital Access Pass isn’t perfect. But the problems can be easily overcome.
In this article, I will show you how to get past the tricky problem DAP presents when you want to use a custom SMTP service, or even your Gmail or Google Apps account.
Digital Access Pass has emailing and auto-responder functionality
The ability to use Digital Access Pass as a start-up email newsletter and mailing list service is a perk that few WordPress membership systems have.
An excellent feature associated with this unique ability is the option to setup multiple SMTP (email) service providers, so that you don’t over extend the allowances on given servers or service providers.
Great! But what about “normal” email. I.e. How about emails sent to welcome a new user to your site? Or when you resend user account details, or double opt-in confirmation emails?
These emails aren’t catered for with the “autoresponder” SMTP configuration unfortunately. Rather, DAP uses the local server’s PHP mail function.
What does this mean?
This means that if your server, for example, isn’t specified in the SPF sender list, emails sent to your shiny new clients are going to go their SPAM/Junk folders in all likelihood. At least, when I send to Gmail accounts, they do so 100% of the time.
This is no good.
If you’re certain 100% of your “Welcome” emails are lost in the SPAM folder, you’re likely going to need another solution.
My solution: reconfigure the local SMTP settings for Digital Access Pass
I paid a hefty chunk of change for Digital Access Pass, and I’m not interested in moving to another solution just yet. So I found a fix.
The fix is simply to change the setting that DAP has configured for its SMTP, and assumes the following:
- I use Google Apps for 99% of my emailing so the instruction below will show you how to do it specifically for Gmail/Google Apps. Replace the SMTP configuration with yours.
- I’m using the latest version of Digital Access Pass at the time of writing: v4.2.1
Here’s how you do it:
- FTP to your website where Digital Access Pass is installed and browse to the folder:
/dap/inc/tp/Then download to your computer the file: class.phpmailer.php. (Make a backup copy of this file somewhere so if you find you’ve broken your DAP email altogether you can restore your original settings.
- Open this file up in your favourite text editor (I often use Notepad++)
- Go to line: 124. Change the value within quotes from ‘mail’ to ‘
- Go to line: 178. Change the value within quotes to ‘
- Go to line: 184. Change the value within quotes to ‘
- Go to line: 197. Change the value within quotes to ‘
- Go to line: 203. Change the value within quotes to
- Go to line: 209. Change the value within quotes to your Gmail/Google Apps email address or other smtp username (within quotes)
- Go to line: 215. Change the value within quotes to your Gmail/Google Apps or other smtp password (within quotes)
- Save the file, and upload this file to replace the existing
Now test your email – for example add a new user to a product that sends out an email upon registration.
Give it a go and see how it works for you.
Notes on compatibility with future releases of DAP
If you upgrade your version of DAP you will loose your customizations.
A good idea is to create a copy of the file and store it in the same folder. This way you can overwrite it once again after the upgrade.
After contacting the authors of Digital Access Pass about the limitation of not being able to specify the SMTP server for email other than bulk and autoresponders, they informed they will be releasing this functionality in a near-future release.
If you can hold out until then, you may as well. I prefer to have my email sent using my DKIM-signed Google Apps account and also being able to see the email trail if I need to.
Let me know what you think of this guide in the comments below.
I also wrote a quick guide about how I setup the Digital Access Pass membership system for this website. It’s no longer represent this website’s membership system because I’ve changed it to individual accounts, but it’s still useful if you want to go that route.
And, if you don’t have Digital Access Pass, you can grab it here.