Announcement

Collapse
No announcement yet.

Auto Responders

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Re: Auto Responders

    OK... I just found out the original posts have been deleted.

    Make a page and save it as action, go to page properties and change them to php. You can title it THANK YOU and put whatever you want on the page itself.

    Go to page html--start of page-- and copy and paste this code in:

    <?PHP
    if($_SERVER['REQUEST_METHOD'] == 'POST')
    {
    $mailto = "youremail@yourdomain.com";
    $email = $HTTP_POST_VARS['email'];
    if ($email == "") {
    $email = $mailto;
    }
    $mailsubj = "Email from Our Contact Form";
    $mailhead = "From: $email\n"
    . "MIME-Version: 1.0"."\r\n"
    . "Content-Type: text/plain; charset=utf-8"."\r\n"
    . "Content-Transfer-Encoding: 8bit"."\r\n"
    . "X-Mailer: PHP v".phpversion();

    reset ($HTTP_POST_VARS);

    $mailstart = "Values submitted from website form :\n";

    while (list ($key, $val) = each ($HTTP_POST_VARS))
    {
    if ($key!="submit")
    {
    $mailbody .= "$key : $val\n";
    }
    }
    $mail_message = $mailstart.$mailbody;
    mail($mailto, $mailsubj, stripslashes($mail_message), $mailhead);

    $responder_start = "Thank you for submitting your info.
    Here is a copy of your submission";

    $mailhead = "From: Your Site Title <$mailto>\n"
    . "MIME-Version: 1.0"."\r\n"
    . "Content-Type: text/plain; charset=utf-8"."\r\n"
    . "Content-Transfer-Encoding: 8bit"."\r\n"
    . "X-Mailer: PHP v".phpversion();
    $responder_subject = "Thank you for contacting us!";
    $responder_message = $responder_start.$mailbody;

    mail($email, $responder_subject, stripslashes($responder_message), $mailhead);
    }
    ?>



    Make sure that on the form page, which is a different page you title the form box "email' in lower case. You can edit the parts in red, You change the email address of couse and in the form properties you change the action to action.php . Use multiform/data and post.

    You can probably change/edit the form you currently have. This will email your client.

    Send all thanks to NavalDesign as he gave me the codes.

    Karen

    VodaHost

    Your Website People!
    1-302-283-3777 North America / International
    02036089024 / United Kingdom
    291916438 / Australia

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

    Top 3 Best Sellers

    Web Hosting - Unlimited disk space & bandwidth.

    Reseller Hosting - Start your own web hosting business.

    Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)


    Comment


    • #17
      Re: Auto Responders

      Hi, Karen

      My name is Frank. I have a question regarding the autoresponder code
      and what I want the autoresponder to do for me.

      I've set up the autoresponder already and I do get the imputed text
      in the fields on the forms of my website so that's ok.

      My question is, how do i get a sample message when I enter my own
      info on the forms? I want to get my own created message to see if I
      did the email correct with formating and such.

      When i did this on another website I was also getting the sample
      message sent to me along with the entered text of the prospect and
      now I can't make it send me my messages for my approval!

      What could I be doing wrong?

      P. S.
      I did try your version about inserting the code in the start page and all
      I got was a confirmation that I filled the form and that's ok but I would
      prefer my prepared message that I created in the control panel under
      autoresponder, by the way i created also a main email account with that
      autoresponder address as instructed, so I don't know no mo!

      Here is my website, it's a two field form at the bottom of every page.
      http://www.TheFiveStarMarketingGroup.com and the contact us page.

      I want to thank you ahead of time just in case you can make this happen
      for me, I'm just out of ideas! I just wanted to see my own email first
      before I sent it out.

      Thank you
      Francisco Tinoco Jr

      Opps!

      I forgot I do have this code in my contact us thank you page

      page html - beginning of body -

      <?PHP
      $mailto = "franktjr@thefivestarmarketinggroup.com";
      $email = $HTTP_POST_VARS['email'];
      if ($email == "") {
      $email = $mailto;
      }
      $mailsubj = "From the Contact us Page";
      $mailhead = "From: $email\n";
      reset ($HTTP_POST_VARS);
      $mailbody = "Values submitted from web site form :\n";
      while (list ($key, $val) = each ($HTTP_POST_VARS))
      {
      if ($key!="submit")
      {
      $mailbody .= "$key : $val\n";
      }
      }
      mail($mailto, $mailsubj, $mailbody, $mailhead);
      ?>


      That's it!
      Thanks
      Last edited by FTinocoJr; 02-05-2009, 12:46 PM. Reason: Just wanted to get notified
      Frank
      Home Shoppers Club
      Mobi Designz
      Mobile VIP Services

      Comment

      Working...
      X