1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Giving away my viral email marketing script

Discussion in 'PHP' started by phree_radical, Oct 29, 2006.

  1. phree_radical

    phree_radical Peon

    Messages:
    563
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #21
    I finally was able to buy hosting and incidentally the server I'm on isn't upgraded to PHP 5. So I will have to change the script, and add some password protection (it is different from the crafty books site in that regard), and then I will be able to demo it. :)
    SEMrush
     
    phree_radical, Nov 12, 2006 IP
    SEMrush
  2. opioq

    opioq Banned

    Messages:
    248
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #22
    Thanks for the script. I am trying to test it out but I am getting this error:

    Parse error: parse error, unexpected '&', expecting T_VARIABLE or '$' in /homepages/1/d178155945/htdocs/sesaame/sesaame.php on line 189
     
    opioq, Nov 12, 2006 IP
  3. phree_radical

    phree_radical Peon

    Messages:
    563
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #23
    That error occurs because the '&' is only supported in PHP 5 or later.
     
    phree_radical, Nov 12, 2006 IP
  4. opioq

    opioq Banned

    Messages:
    248
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #24
    oh geez. I guess is was premature to assume my host was up to date on things. oops.

    Well I realy appreciate the script and I am glad to see you are in the same situation so perhaps you will edit it to work with php4.
     
    opioq, Nov 12, 2006 IP
  5. avi8r

    avi8r Peon

    Messages:
    326
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #25
    Is mail() a module available in PHP? I haven't heard of it before...

    -------------------------------------------------------------------------------------------------------------------------------

    Update: Nevermind, I just did a little research on Google and got the answer to my question.
     
    avi8r, Nov 13, 2006 IP
  6. intoex

    intoex Peon

    Messages:
    414
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #26
    hm, to say the truth - some testing thing, not beta, not alpha
    work and work
     
    intoex, Nov 13, 2006 IP
  7. Cyberworkspace

    Cyberworkspace Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #27
    first of all, i would like to thank you very much, phree_radical, for releasing the script to the public. i was just 2 days ago stumbling across dan's site and since then there is only one thing to do: repeat his story ;)

    so, i was looking out for a nice script to do exactly the work we would need for the 3-stage approach:

    1.) subscribe as a gold member
    1.a) support mailing an invite to friends to earn referrals
    2.) get an upgrade to silver by having 3 (or more) referrals
    2.a) get offered platinum for x amount of money
    3.) upgrade user to platinum

    i understand, thta your script takes care of all steps until 2.) and that is fine. i have set the script up, however, there seems to be a problem with the counted referrals.

    here is the test site: http://207.5.16.24/example

    sending out mail works fine, mail itself is fine, HOWEVER, when you reply to that mail by clicking the link in it, no referrals are counted for the original sender !?

    if you have any hint it would be great. and if ou are still into developing this further, i am in as well, as we really want to give it the same try as dan did. thanks for your support!
     
    Cyberworkspace, Nov 14, 2006 IP
  8. phree_radical

    phree_radical Peon

    Messages:
    563
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #28
    I'm glad the mail is being tested finally... but I don't think it's working. I joined at your installation and sent an invite to a separate email address. Haven't received it yet :/

    When I tested it locally I was able to get referrals to count by clicking the link that's supposed to be sent in the email. I just couldn't test the email...

    You say it worked for you? Was the email address you used to send the invite an actual account registered on the same domain? I'm not sure how that works so it may be the difference--the script uses the member's entered email address as the sender address
     
    phree_radical, Nov 14, 2006 IP
  9. Cyberworkspace

    Cyberworkspace Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #29
    hi phree_radical,

    yes, the mail worked for me. but the domain of the sender and receiver was the same. as there is no authentication towards the mailserver, i assume, that the relay-prevention comes into play. as log as the mail stays in the realm of my provider it might be fine, but as soon as you want to sent it anywhere else you would have to authenticate i assume.

    i will give it another try tonite with different mail-adresses.

    cheers.
     
    Cyberworkspace, Nov 14, 2006 IP
  10. FFMG

    FFMG Well-Known Member

    Messages:
    1,093
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    110
    #30
    First of all, thanks for the script.

    I have made changes to get it to work with php4 but I just want to make sure I understand what it is used for.

    1. You somehow get users to visit your site and sign up, (groups, myspace, whatever)
    2. They sign-up and their address are saved.
      1. They are offered to invite a friend.
      2. The friend clicks the link and they ‘parent’ email receives some points.
    So at the end of the day you will have xxxx emails.
    Is that right?

    Where I get confused is what happens next?

    One day you will send a mass email to everybody in the list offering to sell something?

    I have looked at Dans’ blog but I still don’t get what happens next, what is in the email that is sent to all the users. Do you have an example of the email that is sent to the user?

    Or am I missing something, how do you convert emails into sells?

    FFMG
     
    FFMG, Nov 15, 2006 IP
  11. dugu

    dugu Active Member

    Messages:
    1,383
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    90
    #31
    I'd like too see this one too.
     
    dugu, Nov 15, 2006 IP
  12. phree_radical

    phree_radical Peon

    Messages:
    563
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #32
    I couldn't think of a better way to integrate it at the time, but you can call a php function that returns the number of referrals someone has.
    Everyone who ends up on that page would be an email user you're trying to sell something to. The crafty books site offered one level of access for inviting friends, and one or two other levels for cash money. This script was designed to be dropped into a page like an AdSense unit, and then styled with CSS to fit the page. It's up to you to convert the emails into sales :eek:
    I pretty much left everything generic, where the marketing messages would be. I believe it just says "You have been invited to the Sesaame Demo. Click here to verify your email address and get started"
     
    phree_radical, Nov 15, 2006 IP
  13. FFMG

    FFMG Well-Known Member

    Messages:
    1,093
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    110
    #33
    I see, so:
    - The user somehow lands on my page, and enters his/her email address, (because I say something cool on my page to make him want to give me his emails address).
    - That creates an account for them and at the same time asks them to invite yet more friends.
    - Regardless if they choose to invite or not invite anybody they are taken to a 'special offer page'.
    - Giving their address gives them access to their member page where a lot of stuff is free.
    - If they choose to invite friends they still get free stuff but with a little bit more.
    - Before they get to the member area where all the stuff is they are taken to the 'special offer' page, on that page there is an offer to go 'platinum' by buying something that will give them yet a little bit more than 'silver' or 'gold'.

    What I don't get is what the email itself is used for, because because the punter can upgrade right away or not.
    Do we then use the emails once in a while to remind them about the special offer, (until they opt-out of course).
    Where could I get my hands on one of those emails?
    I guess I could sign-up to Dans' but I don't think he sends emails anymore.

    BTW some users have PMed me asking for the changes I made for PHP4, I can host them if you want or I can send them to you.
    Either way I don't want to release them without first asking you.

    FFMG
     
    FFMG, Nov 15, 2006 IP
  14. phree_radical

    phree_radical Peon

    Messages:
    563
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #34
    I'm glad I didn't try to sell this thing, go ahead and re-release it by all means. You mentioned a few more things that that script doesn't do on its own. It doesn't have anything built-in except for a means for a user to join and work on referring people, and a means for another script to retrieve the member's status. I got a marketing email pitching a script for only $27 that is VERY similar to the Free Crafty Books site, and has a wonderful backend interface, and I feel down about my little attempt now...

    I really like the way you laid out what the script should do, though...
     
    phree_radical, Nov 15, 2006 IP
  15. FFMG

    FFMG Well-Known Member

    Messages:
    1,093
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    110
    #35
    Hi,

    Here is the conversion to php4,
    http://www.httppoint.com/downloads/sesaamephp4.zip, I agree with you that there are a few things missing but it is still a great code.

    I am also working on my own viral scripting application.
    I will probably go down a different route as you, (I want to include affiliates, MySQL and so on), but it was still great to get started.

    FFMG
     
    FFMG, Nov 16, 2006 IP
  16. opioq

    opioq Banned

    Messages:
    248
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #36
    thanks a lot
     
    opioq, Nov 21, 2006 IP
  17. kartik786

    kartik786 Well-Known Member

    Messages:
    1,882
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    170
    #37
    What does this script do exactly ?

    Also is there any working demo ?
     
    kartik786, Nov 22, 2006 IP