SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    SitePoint Member
    Join Date
    Aug 2011
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Automatic email generation.

    Hello,

    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.

  2. #2
    Chive On FFCus's Avatar
    Join Date
    Feb 2006
    Location
    Connecticut
    Posts
    542
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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?

  3. #3
    SitePoint Member
    Join Date
    Aug 2011
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by FFCus View Post
    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?
    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.


  4. #4
    Chive On FFCus's Avatar
    Join Date
    Feb 2006
    Location
    Connecticut
    Posts
    542
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here is a link to a tutorial for send email with PHP:

    PHP Mail

    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.

    Happy coding!

  5. #5
    SitePoint Member
    Join Date
    Aug 2011
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks mate!! I'll let you know how I go with it.

  6. #6
    Non-Member vampiro's Avatar
    Join Date
    Jul 2011
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looking forward for the results of your coding buddy.


  7. #7
    SitePoint Member
    Join Date
    Aug 2011
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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!!

  8. #8
    Chive On FFCus's Avatar
    Join Date
    Feb 2006
    Location
    Connecticut
    Posts
    542
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Nick777 View Post
    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!!
    Glad to hear it! It's a great feeling to learn something new and see it work correctly, isn't it?

  9. #9
    SitePoint Member
    Join Date
    Aug 2011
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by FFCus View Post
    Glad to hear it! It's a great feeling to learn something new and see it work correctly, isn't it?
    Very nice indeed. Thanks again!!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •