Need help with E-mail submission script!

Discussion in 'PHP' started by lamelime, Dec 6, 2008.

  1. #1
    Hey guys,

    I am creating an email submission script and I need to be able to send e-mails from it. I have made the basics but there is a problem in the code. I have inplimented the code at:

    http://www.fliplogs.com/email.php.

    Any help would be appricated.

    The script is conposed of two files that I will attach below.
    I think the error is because I put

    $sendto_email = "$email";

    and defined $email as a value in a different file, and they can't connect. When you try and send the script it says "No recipient addresses found in header ".
    I want a user to be able to enter a recipients e-mail in the text box, and be sent to that user.

    Thanks :).
     

    Attached Files:

    lamelime, Dec 6, 2008 IP
  2. najafali

    najafali Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    $email value is in another file then thats probably where you're going wrong. Your script appears to be offline, but I'm guessing you could send the contents of the email variable to other file via $_GET or $_POST.

    Though, I'm not sure why you'd have that variable in another file to begin with. There might be a way to do all of the email submission on one page...:confused:
     
    najafali, Dec 7, 2008 IP