Autor Zpráva
zelenac
Profil *
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=windows-1250">
<META NAME="Generator" CONTENT="Golden HTML Editor 4.8.3">
<TITLE></TITLE>
</HEAD>
<BODY>
<?php
$to = "sima.o@seznam.cz";
$subject = $_POST[text];
$body = "Hi, How are you?";
if (mail($to, $subject, $body)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
?>


</BODY>
</html>
Alphard
Profil
posílá to, neposílá to, vypisuje to chybu, nebo co? jaká chyba?
zelenac
Profil *
tohle to hlasi :

The page cannot be displayed
The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.

Please try the following:
Contact the Web site administrator if you believe that this request should be allowed.
Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.
HTTP Error 405 - The HTTP verb used to access this page is not allowed.
Internet Information Services (IIS)

Technical Information (for support personnel)
Go to Microsoft Product Support Services and perform a title search for the words HTTP and 405.
Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Setting Application Mappings, Securing Your Site with Web Site Permissions, and About Custom Error Messages.
Taps
Profil
zkus doplnit uvozovky
$subject = $_POST['text'];
zelenac
Profil *
tohle to hlasi :

The page cannot be displayed
The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.

Please try the following:
Contact the Web site administrator if you believe that this request should be allowed.
Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.
HTTP Error 405 - The HTTP verb used to access this page is not allowed.
Internet Information Services (IIS)

Technical Information (for support personnel)
Go to Microsoft Product Support Services and perform a title search for the words HTTP and 405.
Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Setting Application Mappings, Securing Your Site with Web Site Permissions, and About Custom Error Messages.
djlj
Profil
Máš nainstalováno php jako extensi k IIS?
Taps
Profil
Já jsem ten tvůj kód zkoušel na stránkách wz a zpráva mi přišla v pohodě na email.
<?php
$body = "Hi, How are you?";
$to = "neco@neco.cz";
$subject = $_POST['text'];
if (mail($to, $subject, $body)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
?>
zelenac
Profil *
taps
ty uvozky nic nemeni

djlj

no mam to na webu takze tam by to melo fungovat ne ?
zelenac
Profil *
taps : aha , dik moc , tak je to hostingem :)
Alphard
Profil
ty chyby nejsou typické pro PHP, zřejmě to bude hostingem

// trochu pozdě, třeba příště :-)
djlj
Profil
no mam to na webu takze tam by to melo fungovat ne ?
Pokud nemáš v nastavení ISS přidánu extensi php.dll, tak ne.
zelenac
Profil *
a nevite jak bych tam pridal kolonku From , jako mail odesilatele ?
Taps
Profil
zelenac
pomocí formulářů -> http://www.jakpsatweb.cz/html/formulare.html
Alphard
Profil
http://tvorba-www.webz.cz/php/php/azphp360.htm

Vaše odpověď

Mohlo by se hodit


Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm:

0