nick777 — 2011-08-07T01:46:55-04:00 — #1
I've been having some trouble finding some information on how to set up a automatic email generating script.
Basically what I am trying to achieve, is when a website visitor submits their email (into a form) - they automatically get sent an email that contains a downloadable link (the link doesn't need to change).
The main purpose of this is to retain the email addresses of anyone who wants to download this file.
So in short, someone visits the website - puts their email address into a form and automatically receives an email with a link in it.
Does anyone have any sources on how to go about this? Any help is appreciated.
Thanks a lot.
ffcus — 2011-08-07T13:09:38-04:00 — #2
For starters, what language is your site running? PHP? ASP.NET?
Is your desire to log these email addresses in a database or just send you a message that gives you the address to store internally?
nick777 — 2011-08-07T21:09:59-04:00 — #3
Yeah it runs PHP, and I have optional ASP.
As far as storing the addresses goes, I don't expect to get swarmed with them, so I would be happy to store them manually. I just need a way of knowing who is downloading the file for future reference.
ffcus — 2011-08-07T21:55:11-04:00 — #4
Here is a link to a tutorial for send email with PHP:
You can send one message to the visitor with the info and link and then send one message to yourself that gives you the info you want to collect.
nick777 — 2011-08-07T22:36:04-04:00 — #5
Thanks mate!! I'll let you know how I go with it.
system — 2011-08-07T23:07:46-04:00 — #6
Looking forward for the results of your coding buddy.
nick777 — 2011-08-08T04:55:32-04:00 — #7
The code works perfectly! I had to play around with it for a while, but now when a user puts in their address - they get sent an email containing the link, and I receive an email with the user's address - perfect!!
Thank you so much for your help!!
ffcus — 2011-08-08T11:21:35-04:00 — #8
Glad to hear it! It's a great feeling to learn something new and see it work correctly, isn't it?
nick777 — 2011-08-08T21:16:51-04:00 — #9
Very nice indeed. Thanks again!!