Entries Tagged 'Username & Password' ↓

Troubleshooting Email Delivery

The Basics Of Sending Email Through Your Web Site

DAP is not an email service (like, say, Aweber).

DAP is just a script – a tool, like Microsoft Outlook or Thunderbird – that simply sends out email using your web host’s email server.

It is your web host’s mail server that actually sends out the email to the recipient. So once DAP sends out the email, it has no control over what happens next.

It’s just like when you put your (regular mail) letter in the mailbox (post box). It is then up to the Postal Service to actually pick up your letter, and deliver to the destination address.

So if the emails that DAP sends out don’t get delivered to your recipients, there could be more than one reason for that.

Welcome Emails Not Going Out

See this post: Troubleshooting Welcome-Email Delivery

Autoresponder Emails Not Going Out

If yours is a new site setup, then this is usually because the hourly cron-job has not been setup.

However, if the emails were going out fine previously, and suddenly stopped going out, then it usually is because…

  • Something changed on your host that caused the cron to stop working.
  • There is an error in the job queue, because of which DAP is unable to proceed with the remaining non-error emails. This could have happened if you tried to send out a broadcast to a CSV list, and there was an error in one of the emails from the CSV list.
  • You’re trying to use a third party “SMTP” server to send out the emails, and your server is unable to connect to that server because the authentication settings you’ve configured on “Email > SMTP” are incorrect.

Steps to troubleshoot

  1. Make sure that the hourly cron (dap-cron.php) is still running – you need to look at your web hosting control panel for that.
  2. Go to “System > Job Queue” and scroll through any items there, and see if there are any scheduled messages there with the status “Error”. If yes, then click on the “Delete Jobs In Error” link. That will delete any jobs that can’t be processed because of an error in the email id or in the import process. Also be sure to click on “Delete Successful Jobs (till yesterday)” just to clear up old, sent emails.
  3. Also go to “System > Logs” and empty the logs.
  4. Go to “System > Config” and set “DAP Log Level” to “5″. That will start logging all the details you/we may need for troubleshooting.
  5. Wait for the top of the next hour and then re-visit the queue and see if emails are going out.
  6. If they still aren’t going out, go back to “System > Logs”, copy paste all text there, and open a new ticket with that info, of course, also giving us more details about the problem, what you have tried, etc, along with your login info for: FTP, WP Admin, DAP Admin, and Web Host Control Panel.

Server Blacklisting

If your inexpensive (read as cheap :-) shared web host is hosting a large number of sites on one server, and one of them knowingly sends out spam (or mistakenly gets flagged for spam), that will put the email deliverability of every web site on that server in jeopardy, because your site now shares the same IP address as that of an “alleged” spammer.

So your emails get sent to junk/spam folder by Gmail and Yahoo. Or worse, they just totally disappear into the ether.

Hourly Email-Sending Limits

Almost all shared hosts have hourly email sending limits. For example, DreamHost has an outgoing limit of 300 emails per hour. Which means, a total of only 300 emails can be sent out per hour through any web site hosted on DreamHost. All of the following count towards the 300 limit:

  • Emails sent by any scripts on your site – like DAP
  • Your WordPress blog notification emails
  • Your WordPress admin emails,
  • WP forgot password emails,
  • WP comment notification emails,
  • Forum notification emails,
  • Forum emails sent to each other by your users,
  • Forum-software Admin notification emails,
  • Support software user and admin notification emails
  • Tell-a-friend emails
  • Viral-inviter type emails
  • Emails sent through Outlook or Thunderbird where you have set the outgoing SMTP server to be your web site’s SMTP server
  • Emails sent by others using the same SMTP server to send out emails-  like your business partners, employees, etc
  • DAP User welcome emails, Payment notification emails, Forgot password emails, Autoresponder emails, Broadcast emails, etc

So do you see how quickly you can go over that hourly limit of 300 emails per hour?

But here comes the worst part…

Once you go over that limit, any emails that are actually sent by you or the scripts running on your site, will not actually result in any kind of error. The mail server will respond by saying that the email(s) has been sent successfully, but in reality, on the backend, it quietly “snuffs out” the email. Which means, it doesn’t go anywhere – just gets sent to a “blackhole”. So you keep thinking that you sent out the email. DAP keeps thinking it has sent out the email. But in reality, the emails never actually get sent.

This is the same as you actually putting your letter into the mailbox at the Post Office. But then, imagine this: The postal worker who comes to pick up your mail, quietly goes to the back of the post office and dumps it all into one giant trash can, and destroys all of the mail. So you’re thinking you actually mailed out that important check to pay your utility bill. But the utility company never gets your check, and they slam you with a late fee.

Possible Solutions

1) DAP + Aweber (most expensive, most reliable)

2) DAP + 3rd party SMTP service provider (AuthSMTP.com or SMTP.com) (less expensive than Aweber, slightly less reliable too)

3) DAP + Good web host (cheapest option, but can have mixed results – all depends on your host).

You could always use DAP and external SMTP service provider like AuthSMTP.com or SMTP.com to send out bulk mail through DAP while totally bypassing your web host’s email system. This is probably the next best thing to using a service like Aweber.

And if you can’t afford even that, then simply use DAP on a good web host. We ourselves use just DAP and Dreamhost‘s email servers to send out emails to all of our users.

And DAP also has built-in job queues to schedule outgoing emails while also making sure that you don’t exceed your web host’s hourly email sending limits (dreamhost’s limit is 300 emails/hour, I think). We use multiple SMTP servers from our own other web sites, all combined to be able to send a few thousand emails per hour.

But even with a lot of planning, it is easy to go over the hourly limit.

So the next time you see in your Job Queue that emails were sent out successfully, but the recipient never received it, here are some things to check:

1) It landed in your recipient’s junk/spam folder. Ask them to whitelist or add your email address to their contacts list.

2) You have overshot the limit, so you would have to actually send out the email again.

3) Try to send out broadcasts during a low-traffic time – say like later in the night – when you’re not actively sending out emails, and using up precious email counts from that hourly quota.

How Do Members Get Added To Your Membership Site

(OR) How do members get access to the content

(OR) How does someone become a member?

With DAP, you can add users to your membership site in 3 different ways.

1.  PURCHASE: Someone buys your product or subscribes (“Paid” member with access to both free and paid content)

2.  FORM SIGNUP: Someone signs up through a signup form (“Free” members with access to only free content)

3. ADMIN ADDED: You add them as a member directly through the DAP Admin Control Panel (you can mark them as either “free” or “paid”)

All three are explained in detail below.

1. PURCHASE

*You first create a “Sales Page”.

On your sales page, depending on which payment processor you use, you go to Paypal/1ShoppingCart/ClickBank and create a new product with the EXACT same name as the product you created within DAP, and get the ‘Buy Button’ link from your Payment Processor. Publish this “Buy Button” on your sales page.

* Your visitor goes to your sales page

* They purchase your product

* Your payment process (Paypal/1ShoppingCart/ClickBank) notifies DAP that you have a new purchase.

* If the product names match, DAP automatically creates an account for them, generates a random password, and sends them an email with their email/password. You can customize the contents of this email on the “Templates” screen in your DAP Admin Control Panel. Integration with your shopping cart explained elsewhere (see documentation for setup).

That’s it!

That’s how “buyers” get added to your membership site and get access to the product they just purchased.

2.  FORM SIGNUP:

You wish to give someone a “Free” membership.

NOTE: “Free” members who do not have a payment associated in DAP (which means they have not purchased anything) will have access only to content that you have marked as “Free”.

Once you have created a Product in DAP, and have added content (blog post/page links, links to files, etc), and have saved it, on the Product page, below the Product name list, you will see a link called “Direct Signup HTML”. (See image below). You must first select a Product before you can copy the correct form HTML.

Fig 1. Direct Signup Link on Products page

dap-direct-signup

Fig 2. Form HTML that you get on clicking the Direct Signup Link


dap-direct-signup-onclick

This HTML gives you the full HTML form code that you can publish on any page of your web site. This form only collects an email address and a first name.

Take this HTML code and publish it on page of your web site where you want sign up users. This could be a WP page or post too.

Note: When you see the above HTML code, there’s a field in there that looks like this:

<input type=”hidden” name=”redirect” value=”http://YourSite/Your-login-page-link/?msg=Success!%20Your%20membership account%20has%20been%20created.%20%20Check%20your%20email%20address%20in%20a%20few%20minutes%20for%20your%20password“>

Don’t forget to change the text above, where it says “http://YourSite/Your-login-page-link/?…” to point to your actual domain name and to your actual login page (if you have customized it).

Then, when someone enters their email address and first name and signs up through the signup form, DAP creates an account for them using that email address, creates a random password, and sends them an email with their email/password.

After that, you can drip any content or emails on them that are marked as “Free” (when adding content or emails).

At some later point, if they purchase any of your “Paid” products (see the “1. Purchase” section above), then as long as they use the same email id during purchase, DAP will automatically give them access to all of the “Paid” content in the Product that they just purchased.

3. ADMIN ADDED:

If you wish to directly give someone access to a Product and all its content and emails, you can add them directly from the DAP Admin screen (Users > Add/Edit).

You just need their email id and their first name (both of which they can change subsequently) to add them to a Product.

While adding them, you have the option of marking them as a “Paid” user by checking the “Mark as Paid” checkbox.

If you don’t check this check box, then they will be added as a “Free” user and get access only to “Free” resources (content/emails).

But if you check the “Mark as Paid” checkbox, then they will get access to all “Paid” content and emails, just like someone who is actually a “Paid” member.

Changing A Password

If you want to change the password of a user, then just go to the Users > Manage link, search for either that user (if you know her email id), or search for all users. See more about searching in another post.

Then click on the “Name” of the user, and you will go to the “Edit User” screen. There you can change the user’s password.

If you are the admin and looking to change your own password, then you can do the same as above (as the “admin” is also a user in the system, except with the user type “admin”).

Or you can go to “User Home” and click on “Edit Profile” and change your password there.

Now the “User Home” is the page that all your users would see when they are logged into your members-only area powered by DAP. So, we’ve basically provided you, the admin, a way to see what they see, when you visit the “User Home” page.