+ Reply to Thread
Results 1 to 9 of 9

Thread: Email PHP Issue

  1. #1
    jshollis is offline x10Hosting Member jshollis is an unknown quantity at this point
    Join Date
    Aug 2009
    Posts
    3

    Email PHP Issue

    Hello,

    My ISP apparently does not support PHP so I had a guy create the following files (config.php, contact.css, sendform.php, and contactusnow.htm)

    He loaded these files on my ISP personal site and within the contactusnow.htm file had the following:

    <formmethod="post" name=form onsubmit="return validateSend()" action="http://www.mp3dots.com/sendform.php" enctype="multipart/form-data">

    I tried to change it by altering only the "action=" to "http://xxxxxxx.x10hosting.com/sendform.php

    However, when I changed it I am no longer getting email messages.

    I must not have made a change somwhere else.

    Can anyone assist?

  2. #2
    Twinkie is offline Banned Twinkie is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Ft. Lauderdale, Florida
    Posts
    1,389

    Re: Email PHP Issue

    Sure, but the ISP has nothing to do with the support of PHP. It is the provider of your internet (comcast, bellsouth, ect) and stands for Internet Service Provider. I think you meant your host.

    1) You need a space between form and method.
    2) That enctype is only used for sending uploaded files. Remove it and that script should work.

    Code:
    <form method="post" name=form onsubmit="return validateSend()" action="http://xxxxxxx.x10hosting.com/sendform.php">
    Also, this is a programming help issue. Technically, yes it is a third party script, but this thread is mostly reserved for wordpress and SMF type scripts
    Last edited by Twinkie; 08-01-2009 at 08:20 PM.

  3. #3
    jshollis is offline x10Hosting Member jshollis is an unknown quantity at this point
    Join Date
    Aug 2009
    Posts
    3

    Re: Email PHP Issue

    The code had a space in the place indicated did it not? I removed the part you mentioned but the mail is not arriving.

    On the other hand, at no time am I recieving error messages either when the send but is clicked. Also at X10 no entries are shown in the error logs.

    Any ideas?

  4. #4
    Twinkie is offline Banned Twinkie is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Ft. Lauderdale, Florida
    Posts
    1,389

    Re: Email PHP Issue

    You have to post a link, and the PHP code so I can see whats wrong. I just fixed what you posted.

    btw, name=form should be in double quotes name="form".

    First thing is to verify that the form is going to the right location. That will tell you is your HTML and JavaScript is correct. Then, we can get to the PHP.

  5. #5
    jshollis is offline x10Hosting Member jshollis is an unknown quantity at this point
    Join Date
    Aug 2009
    Posts
    3

    Re: Email PHP Issue

    I sent the code via PM. What you should know is that this form worked flawlessly before I made one change. In the file contacyjerry.html all I did was change mp3dots.com to the X10 hosting.com address.

    Apart from that nothing was changed so I am not sure what broke the chain.

  6. #6
    robocards is offline x10Hosting Member robocards is an unknown quantity at this point
    Join Date
    Aug 2009
    Posts
    3

    Re: Email PHP Issue

    I got the code to work with no problem

  7. #7
    adamfek is offline x10Hosting Member adamfek is an unknown quantity at this point
    Join Date
    Sep 2009
    Posts
    8

    Re: Email PHP Issue

    i found that using gmail as the sender in the mail function doesn't deliver anymore as soon as i switched it to another one it worked.

  8. #8
    xgreenberetx is offline x10Hosting Member xgreenberetx is an unknown quantity at this point
    Join Date
    Oct 2009
    Posts
    57

    Re: Email PHP Issue

    if you can not use php use value="mailto:youremail@email.com"

  9. #9
    jaygreenly is offline x10Hosting Member jaygreenly is an unknown quantity at this point
    Join Date
    Dec 2009
    Posts
    21

    Re: Email PHP Issue

    Here's a simple mail script.. http://jaygreenly.com/phpmymaileasy.rar

    Step 1:
    In your html page contaning your form, go to the beginning of the form code paste the code below... Edit the redirect and subject values to your own.

    <form id="Contact Form" name="Contact Form" method="post" action="phpmyformmail.php">
    <input type=hidden name="redirect" value="http://www.yourdomain.com/thanks.html">
    <input name="Subject" type="hidden" value="New Email From yourdomain.com"/>



    Step 2:
    open the script and edit line 37: Edit the recipient and redirect values to your own.

    if ((!$recipient = "you@yourdomain.com") && (!$redirect = "http://www.yourdomain.com/thanks.html") && (!$subject == "") && (!$recipient_domain == "$allowed_domain")



    Step 3:
    upload the file to the root directory of your domain. Give it Permissions 755



    Step 4:
    Create a thanks.html page if you wish the script to redirect the user after submitting a form.


    This script currently works on free x10 hosting accounts..
    Last edited by jaygreenly; 12-14-2009 at 05:45 PM. Reason: Automerged Doublepost

+ Reply to Thread

Similar Threads

  1. Send email using PHP
    By virus05 in forum Programming Help
    Replies: 9
    Last Post: 08-09-2008, 09:03 AM
  2. Replies: 3
    Last Post: 03-10-2008, 12:22 PM
  3. email issue
    By bwinkler in forum Free Hosting
    Replies: 2
    Last Post: 03-06-2008, 06:49 AM
  4. Failed sending email PHP
    By N2PGames in forum Free Hosting
    Replies: 2
    Last Post: 06-18-2006, 06:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers