Forum Moderators: phranque

Message Too Old, No Replies

How can I solve this webmaster issue?

         

JackThomspon

11:31 pm on Aug 2, 2009 (gmt 0)

10+ Year Member



Hello to all webmasters!

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

bill

4:49 am on Aug 3, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Welcome to WebmasterWorld JackThomspon.

Is it possible to have multiple mails sent out when the order form is sent? Many form processors will allow that.

janharders

6:04 am on Aug 3, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You could setup a cronjob that fetches the email via pop3 and hands them to a script that reads and processes them. That's much easier than having a script be run on mail-arrival (which will only work if the script is sitting on the machine taking the mail).

JackThomspon

3:30 pm on Aug 6, 2009 (gmt 0)

10+ Year Member



Hi Guys, thanks for the feedback.

Multiple emails - How will that help me?

Cron - If I set up a cron job, it would have to check every few seconds for the mail. That will be inneficient.

Does gmail itself have any tools or some way i can make a tool and integrate it?

Leosghost

3:54 pm on Aug 6, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



If I set up a cron job, it would have to check every few seconds for the mail. That will be inneficient

Unless you are on a dedicated server your hoster would probably point you at their TOS and then boot you off the box if you set up cron like that ..

Leosghost

3:54 pm on Aug 6, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



what is it with the antiflood these days ?

idfer

11:29 pm on Aug 6, 2009 (gmt 0)

10+ Year Member



I don't know of anything in gmail that would let you do that, and i don't see why they would have such a capability...

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.

JackThomspon

3:07 pm on Aug 11, 2009 (gmt 0)

10+ Year Member



Reason why I need to check every few seconds...

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"

JackThomspon

3:07 pm on Aug 11, 2009 (gmt 0)

10+ Year Member



Does Gmail have a API interface for me to check the mail like that?

JackThomspon

5:16 pm on Aug 11, 2009 (gmt 0)

10+ Year Member



Whats this I hear about yahoo have PUSH? Sounds like what I need. What do you think?