Forum Moderators: phranque
I have a situation that i need solved with a creative idea. Can you help?
I sell memberships on my own site plus a few other channels.
When I sell from my site - its easy. The customer pays and my site gives him access to the content.
The problem is the Other channels.
When i get an order form them I need to give that user access to the membership area of my site.
However the only way that i kow if I get an order is form their confirmation email.
The question is...
Via gmail...when the email arrives- how can i trigger it to send the users email address to my site?
All i need to know is - Can i use google mail to communicate with my site somehow?
If not - any other creative ideas?
I am using Drupal for my site.
Thanks in advance!
Jack
The cron/pop3 trick is a pretty common way of solving this kind of problem, do you really need to check every few seconds? It seems to me that every 5 minutes should be good enough, keep in mind that the mail server itself might be bogged down so if you use email to communicate with affiliate sites, you should always expect some delay in processing.
But you could skip the cron altogether and extend the login script so that it checks the gmail account whenever an unknown user tries to log in. Or get your affiliates to email the client a "click here to complete your registration" link to your site that triggers the POP3 check.
The only other option i can think of is to dump the email interface altogether and provide your affiliates with an automated interface, maybe SOAP or a password-protected script on your server that the Other channels can call to tell your site about new users.
Hope this helps.
I sell digitsal goods. Customer needs access instantly.
This is Very interesing:
"But you could skip the cron altogether and extend the login script so that it checks the gmail account whenever an unknown user tries to log in. Or get your affiliates to email the client a "click here to complete your registration" link to your site that triggers the POP3 check"