ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Ivan Fedorov <ns@altlinux.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Проблемы с отправкой почты с помощью php-скрипта
Date: Fri, 29 Oct 2004 18:57:34 +0900
Message-ID: <4182140E.9000507@altlinux.ru> (raw)
In-Reply-To: <41820EE2.3070909@tut.by>

[-- Attachment #1: Type: text/plain, Size: 1367 bytes --]

Yury Levdansky пишет:
> 
> При отправке почты с помощью скрипта на PHP (почта с данными из формы) с
> помощью функции mail сообщение перекодируется в UTF-8 и затем
> кодируется в BASE64. Хотя в дополнительной строке с параметрами для
> функции mail прямо говорится, что "Content-Type: text/plain;
> charset=windows-1251". Фрагмент заголовка и начала тела письма
> приводится ниже.
> 
> 
>>> ======================================================================
>>
>>  
>>
> Subject: ???????? ???????????? ?????????????????? "??????????
> ????????????"
> From: pupkin@gde-to.com
> MIME-Version: 1.0
> Content-Type: text/plain; charset=windows-1251
> Status: RO
> Content-Length: 1050
> Lines: 17
> 
> Mime-Version: 1.0
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: BASE64
> 
> w4TDpcOyw6DDq8OoIMOnw6DDqsOgw6fDoDoKIC0gw4TDoMOyw6Agw6LDusO............
> ICAzMCDDrsOqw7LDv8Ohw7DDvCAyMDA0CiAtIMOKw67Dq8Oow7fDpcOxw7L............
> ....................................................
> 
>>> ======================================================================
>>
> 
> Есть большое подозрение, что это мутит именно php, а не sendmail,
> поскольку при отправке почты из скрипта на Perl-е такой лажи нет.

Почему-то у меня есть большое подозрение, что заголовок Content-Type вы
пишете руками, а кодирвку текста надо знать при составлении письма...


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2004-10-29  9:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-29  9:35 Yury Levdansky
2004-10-29  9:57 ` Ivan Fedorov [this message]
2004-10-29 10:54   ` Yury Levdansky

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=4182140E.9000507@altlinux.ru \
    --to=ns@altlinux.ru \
    --cc=community@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