ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Sergey Krivulja <skrivulja@erec.ru>
To: Dmitry Levashov <mandrake-russian@altlinux.ru>
Subject: Re[2]: [mdk-re] PHP.ini
Date: Wed Feb  6 09:44:00 2002
Message-ID: <1515273822.20020206095357@erec.ru> (raw)
In-Reply-To: <20020205215631.11C992150@dima.home>

Hello Dmitry,

Wednesday, February 06, 2002, 12:56:30 AM, you wrote:

>>   Исходные данные - установлен Apache php postfix procmail
>>   Как можно в этом случае отослать сообщение при обработке формы.
>>   При указании <form method="POST" action="mailto: eee@yyy.xx .....>
>>   Ничего не происходит. Где что подкрутить, куда рыть ?????? !!!!
DL> И не будет происходить - HTTP этого не умеет. Надо в action указать имя
DL> скрипта который будет отправлять данные формы на мэйл. 
DL> Пример на PHP

DL> <!---- file fom.html --->
DL> <form action=mail.php method=POST>
DL> Name: <input type=text name=fields[name]><br>
DL> Last Name: <input type=text name=fields[last_name]>
DL> .... <input .. name=fields[...]>
DL> </form>


DL> <!----  file mail.php------>
DL> <?php
DL> foreach ($fields as $f) {
DL>         $msg .= $f . '\n';
DL> }

DL> $headers = "From: Your site <yoursite@yoursite.com>\n";
DL> $headers .= "Content-Type: text/plain; charset=\"KOI8-R\"\n";

DL> if (mail("address@mail.com", "Here subject", $msg, $headers))
DL>         echo "Mail send OK";
DL> else
DL>         echo "Failed";

?>>
С консоли отправляет а вот в нашем примере - "Failed" ;((((((

-- 
Best regards,
 Sergey                            mailto:skrivulja@erec.ru





  reply	other threads:[~2002-02-06  9:44 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
2002-02-06  9:44   ` Sergey Krivulja [this message]
2002-02-06  9:49     ` Re[2]: " 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=1515273822.20020206095357@erec.ru \
    --to=skrivulja@erec.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