From: Dmitry Levashov <dima@glagol.ru>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] PHP.ini
Date: Wed Feb 6 03:57:01 2002
Message-ID: <20020205215631.11C992150@dima.home> (raw)
In-Reply-To: <1117834725.20020205214342@erec.ru>
Приветствую!
On Tuesday 05 February 2002 21:43, you wrote:
> Hello mandrake-russian,
>
> Исходные данные - установлен Apache php postfix procmail
> Как можно в этом случае отослать сообщение при обработке формы.
> При указании <form method="POST" action="mailto: eee@yyy.xx .....>
> Ничего не происходит. Где что подкрутить, куда рыть ?????? !!!!
И не будет происходить - HTTP этого не умеет. Надо в action указать имя
скрипта который будет отправлять данные формы на мэйл.
Пример на PHP
<!---- file fom.html --->
<form action=mail.php method=POST>
Name: <input type=text name=fields[name]><br>
Last Name: <input type=text name=fields[last_name]>
.... <input .. name=fields[...]>
</form>
<!---- file mail.php------>
<?php
foreach ($fields as $f) {
$msg .= $f . '\n';
}
$headers = "From: Your site <yoursite@yoursite.com>\n";
$headers .= "Content-Type: text/plain; charset=\"KOI8-R\"\n";
if (mail("address@mail.com", "Here subject", $msg, $headers))
echo "Mail send OK";
else
echo "Failed";
?>
next prev parent reply other threads:[~2002-02-06 3:57 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-05 21:34 Sergey Krivulja
2002-02-05 22:08 ` Michael Bykov
2002-02-06 3:57 ` Dmitry Levashov [this message]
2002-02-06 9:44 ` Re[2]: " Sergey Krivulja
2002-02-06 9:49 ` Korshunov Ilya
2002-02-06 9:56 ` Re[4]: " Sergey Krivulja
2002-02-06 10:07 ` Sergey Krivulja
2002-02-06 10:09 ` Korshunov Ilya
2002-02-06 11:49 ` Re[2]: " Dimitri Schlecht
2002-02-06 12:17 ` Korshunov Ilya
2002-02-06 13:26 ` Re[4]: " Sergey Krivulja
2002-02-06 14:51 ` [mdk-re] Странное поведение telnet`а alex
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020205215631.11C992150@dima.home \
--to=dima@glagol.ru \
--cc=mandrake-russian@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git