Automatic email

Hello,
I need to know how to code something that when I get paid through paypal, will send them an automatic email with a password in it. Whoever could help me out would be greatly appreciated.
LVL 3
orbie1234Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

strickddCommented:
Are you talking about a link on your site that people use to pay you through or are you talking about when someone actually goes to paypal? if it is the latter of the two, you would have to write a script that would automatically connect to PayPal every so many minutes and check if the transactions have changed and then kick off and e-mail.

What is this going to be used for?

Are you sending yourself your own password?
0
barnesd1Commented:
I'm not sure I understand you either.
If you want to accept payments by paypal on your site look at the "3 powerful solutions" outlined in https://www.paypal.com/uk/cgi-bin/webscr?cmd=_merchant.  Buy Now Buttons are probably want you need.
HTH
0
barnesd1Commented:
The way you setup Buy Now buttons, you don't need users to have or need any password other than their own Paypal one!
You should also update you paypal account to a business one if you haven't already done this.
The default is that when you receive a new paypal payment you will get emailed, but it's optional.
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

strickddCommented:
So you are managing all the code for processing the payments and sending the information to PayPal? I'm sorry I haven't worked a whole lot with PayPal, but I'm sure if I can understand your predicament a little better I'll be able to help you.
0
orbie1234Author Commented:
No, No,
They buy through the buy now button, and then I need something to send an email to them once I recieve a payment. The email will contain a download password for the ebook product.
0
barnesd1Commented:
Oh, couldn't you use Outlook, setup a rule of some kind
0
barnesd1Commented:
They will get an email anyway from Paypal I think so maybe you don't need to do anything???!!!
0
strickddCommented:
Okay, so what you would probably want to do is write a script that will either:

Scan your e-mail and send an e-mail off when you have recieved payment. It would have to parse the e-mail and look for keywords.

or

Log into your paypal account find any new, approved transactions and the e-mail address for them and then send the e-mail.
0
orbie1234Author Commented:
So what script would I use that would send of an email when I recieve a payment?
0
aninkCommented:
I dont think you can write any customised mail from paypal itself.
Paypal uses two URLs:
1)For successfull transaction
2)For unsuccessfull transaction
we can supply the successfull transaction return URL and unsuccessfull transaction return URL from the page which is sending control from your website to paypal.
To do that you have to take 2 hidden fields-
1)<input type="hidden" name="return" value="<%=return_url%>">
2)<input type="hidden" name="cancel_return" value="<%=cancel_url%>">
If return URL does not work this way you can write the return url in the paypal also.

I am assuming you already have the username and password of the user in session,or a cookie which you have stored in [server/client] before going to paypal.
Now you write the mailing code in the success URL page and then redirect the control to desired page from there.

Hope it will solve your problem.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.