+ Reply to Thread
Results 1 to 10 of 10

Thread: Help with tell a friend PHP
      
   

  1. #1
    stenotome is offline Corporal
    Join Date
    Apr 2006
    Posts
    10

    Default Help with tell a friend PHP

    I saw your written tutorial for the tell a friend script. I made the html form. I downloaded the tellafriend.php, phpmailer.php and the smtp.php thru ftp manager. I tested it on my website and come up with the following message:

    Message was not sent
    Mailer Error: Language string failed to load: recipients_failed

    my webpage is www.stenotome.com in case you need to look at it.

    Thanks,

    Michele

  2. #2
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    Default Re: Help with tell a friend PHP

    1. My instructions about modifying the script were about VISUAL changes. Not abour renaming the filelds, nor about adding fields. You have done both.
    2. You have added also more Hidden fields, other than the ones i have inserted in the script. Why?
    3. You have also changed the titles of the hidden fields: changed the lowercase initial letters in Uppercase, and changed the "youremail" in Your email"
    4. You have not provided the "youremail" hidden field value in the form. You should provide your real email address there, otherwise the script doesn't know which email account to use in order to send the email to the friend. This, together with changing the hidden field name from "youremail" to "Your Email" is your main problem.

    Please redo the job, following EXCACTLY the instructions. Php scripts are very sensitive in changes. If you ghange the form, as you did, you must also schange the script.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  3. #3
    stenotome is offline Corporal
    Join Date
    Apr 2006
    Posts
    10

    Default Re: Help with tell a friend PHP

    Sorry, the first time I unzipped this file and opened the Blue Voda tell a friend, I didn't see the box that I see now so I thought I had to make it up myself. I just deleted the zip file and rezipped it to start from scratch and now I opened up the tell a friend BV file and see the box. So now I see what you are saying. I'll can now go through the steps exactly as you have them.

  4. #4
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    Default Re: Help with tell a friend PHP

    Glad you solved the problem.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  5. #5
    stenotome is offline Corporal
    Join Date
    Apr 2006
    Posts
    10

    Default Re: Help with tell a friend PHP

    I guess I spoke too soon.

    I did a test email, sending it to my home email at michlegeurts@sbcglobal.net and it came up with this error:

    Message was not sent
    Mailer Error: Language string failed to load: recipients_failedmichlegeurts@sbcglobal.net

  6. #6
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    Default Re: Help with tell a friend PHP

    You have mistaken the "youremail" hidden field value: you have put m..@stentome.com instead of stenotome
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  7. #7
    stenotome is offline Corporal
    Join Date
    Apr 2006
    Posts
    10

    Default Re: Help with tell a friend PHP

    Okay, thanks. Got that part fixed.

    When I hit "tell a friend" button, it takes me to unknown page. Can I redirect it back to my home page? And how?

    Thank you.

  8. #8
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    Default Re: Help with tell a friend PHP

    Change the

    header("Location: returnpage.html"); // returnpage is the same page of the form or another of your choice.

    line of the tellafriend.php script. Replace the "returnpage.html" with the actual page you want the script to go to after submitting the email.

    You may also want to change the page name: don't think you want "Navaldesign Tell a Friend Script" to appear as your page name
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  9. #9
    stenotome is offline Corporal
    Join Date
    Apr 2006
    Posts
    10

    Default Re: Help with tell a friend PHP

    PERFECT!!!

    Thank you so much.

    The one and only (hopefully last) thing that I want to tweak is the email sent out. I want the sender's name in there somewhere so when people get this referral email, it shows a familiar name in the email somewhere. Maybe they'll be less likely to delete it right away if they see it is truly being referred by a person they know.

  10. #10
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    Default Re: Help with tell a friend PHP

    After the lines in red
    $mail->Body = "Hi $friendname\n"
    . "$message\n "


    add this line:


    . "Bye, $name\n";

    Attention: delete the ";" at the end of the second line in red
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49