Form Mail Problem


I have a problem with my email form. It works fine but now seems to have problem. I couldnt fix it, any idea? Iam sending the code.


        <table width="100%"  border="0" cellspacing="0" cellpadding="2">
            <td colspan="2" bgcolor="#FFFFFF" class="style5"><strong>Mail Formu<strong></td>
            <td width="26%" bgcolor="#FFFFFF" class="style5">Ad?n?z Soyad?n?z </td>
            <td width="74%" bgcolor="#FFFFFF" class="style5"><input name="ad" type="text" id="ad" size="40"></td>
            <td bgcolor="#FFFFFF" class="style5">Mail Adresiniz </td>
            <td bgcolor="#FFFFFF" class="style5"><input name="email" type="text" id="email" size="40"></td>
            <td bgcolor="#FFFFFF" class="style5">Telefon Numaran?z </td>
            <td bgcolor="#FFFFFF" class="style5"><input name="tel" type="text" id="tel" size="40"></td>
            <td bgcolor="#FFFFFF" class="style5">Mesaj?n?z</td>
            <td bgcolor="#FFFFFF" class="style5"><textarea name="mesaj" cols="40" rows="5" id="mesaj"></textarea></td>
            <td colspan="2" bgcolor="#FFFFFF" class="style5"><div align="center">
                <input type="submit" name="Submit" value="Formu G?nder">[/php]


 Iletisim Formu
Adi - Soyadi $ad
Telefon Numaras? $tel
E-Mail Adresi $email
Mesaj $$mesaj
"; $headers = "From: ............... <.......@...............>n"; $headers .= "Return-Path: <......@..........>n"; $headers .= "Content-Type: text/htmln"; $recipient="........@.............."; $konu="...................... - $ad"; $sonuc = @mail($recipient, $konu, $mail_text, $headers); if ($sonuc) { echo "Mail formunuz gönderildi. Tesekkür ederiz.

"; } else { echo "Mail Formunuz gönderilemedi. Lütfen bir önceki sayfadan tekrar deneyiniz.

«geri dönmek için tiklayiniz."; } ?> [/php]

And in install.php
case “mailsend”
: include “send.php”;break;[/php]

Mod Edit: Added [php] Tags for readability.


We need to know what is or isn’t doing that it should or should be doing. Do you get any errors?


After pressing the submit buton the adres line changes like this. Icant get the email form and the send.php page didnt start.

http://www…com/index.php?sea … u+G%F6nder


First line of the first page:

<form name="form1" method="POST" action="mailsend"> 

The action attribute demands an extention :wink:

<form name="form1" method="POST" action="mailsend.php"> 

Not sure if that’ll solve your problem, but it’ll sure clear some things up.


I tried before mailsend.php but thats not the answer.


instead of action=“mailsend” try action=“send.php”


and try a capital S (action=“Send.php”)


Both action=“send.php”, action=“Send.php” didnt solve the problem.


It kind of feels like you’re requesting a quickfix, and we’re not here to do that. If you want us to help you, you’re going to have to give us some more information:

  • Are you getting any errors? Even with error_reporting(E_ALL) in your script?
  • Are you requesting the right page (send.php) in your form?
  • Are your form values being carried over (correctly)? Use Debugging.
  • Is the email sending at all? Why are you suppressing errors from the mail() function?
  • What’s the install.php doing? Is it relevant?


Iam sorry, I have to write them clearly.

No errors the adress line changes like ı wrote before and index.php take place.

Pressing the submit button in iletişim.php it must go to send.php.

I got no email, no blank form, no value nothing comes.

İnstall.php function > switches pages to request urls.


Can you give us the URL to the webpage so we can see it in action?


The url,


Ah, now I see:

Click here

The problem is a total mess of HTML. I’d suggest to comb that out first. Firefox didn’t even pick up on the second form, and the first doesn’t have an action attribute.


İs it becouse of the doctype?”>

Ican get email when ı use the form from my computer.
I would be happy if anbody tell me how to fix it.


your html needs enormous cleaning up:

some hints:
a minimal html-document must be:


all opening tags must have matching cosing tags
there are some exceptions but that is just
, and some more

your html looks like:

  • the doctype is the smalled prob (there was just a ‘>’ to much ‘…/EN">’ must be ‘…/EN"’)
  • if u include a file with php the included file must not have a -, - or -tag and no DTD. just the content that goes inside the body.
  • as Zyppora said your first -tag is never closing
  • there is a lot more (reported by the validator).

about the email prob: i guess u haven’t set up a smtp.