Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default form Mail help...

    Hi

    I am using this script on my website...

    $msg = array($name, $address, $town, $county, $postcode, $email, $phone,
    $comments);
    $name = 'name';
    $address = 'address';
    $town = 'town';
    $county = 'county';
    $postcode = 'postcode';
    $email = 'email';
    $phone = 'phone';
    $comments = 'comments';

    Using
    mail($to, $subject, join("\n", $msg), $mailheaders);
    works fine
    the $to is my email address.
    if i then try to email the person who filled the form out i.e mail($email,
    $subject);
    doent work!!!

    Any ideas...

    Regards


    ---
    Outgoing mail is certified Virus Free.
    Checked by AVG anti-virus system ([url]http://www.grisoft.com[/url]).
    Version: 6.0.525 / Virus Database: 322 - Release Date: 09/10/2003


    Seroxat Mad Guest

  2. Similar Questions and Discussions

    1. Need help with Mail Form and ASP
      Can someone assist me in getting my contact form on my Flash site working. I have a name, email, phone and a comments field and I want to submit...
    2. Form to Mail
      Anyone familiar with this extension? I downloaded Form to Mail from HDW. I installed it, and then restarted Dreamweaver (I'm running Dreamweaver...
    3. mail to form php
      Greetings , i have been working on DW for a while now , and i have just discovered the magic of extensions =\ I got a Qustion though , Is there...
    4. mail form with attachment
      I bought the extension from FelixOne that allowed me to create a form and then have it mailed with an attachment to an email address of my choosing....
    5. Mail form...
      Dear allknowing experts ( ;-), i have a challenging question for you guys wich i hope someone can answer. I wont get fired if i cant get it to...
  3. #2

    Default Re: form Mail help...


    "Seroxat Mad" <seroxatmad@hotmail.com> wrote in message
    news:HLsjb.11105$kA.2746098@wards.force9.net...
    > Hi
    >
    > I am using this script on my website...
    >
    > $msg = array($name, $address, $town, $county, $postcode, $email, $phone,
    > $comments);
    > $name = 'name';
    > $address = 'address';
    > $town = 'town';
    > $county = 'county';
    > $postcode = 'postcode';
    > $email = 'email';
    > $phone = 'phone';
    > $comments = 'comments';
    >
    > Using
    > mail($to, $subject, join("\n", $msg), $mailheaders);
    > works fine
    > the $to is my email address.
    > if i then try to email the person who filled the form out i.e mail($email,
    > $subject);
    > doent work!!!
    >
    > Any ideas...
    >
    > Regards
    >
    [SNIP]

    Have you tried moving the following line to after you have set the 8
    variables:
    $msg = array($name, $address, $town, $county, $postcode, $email,
    $phone,$comments);

    If you dont $msg will be a blank array if that.

    Hope that helps

    Paul


    Paul Kirby Guest

Posting Permissions

  • You may not post new threads
  • You may 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 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139