ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Yury Levdansky <avilink@tut.by>
To: community@altlinux.ru
Subject: Re: [Comm] Проблемы с отправкой почты с помощью php-скрипта
Date: Fri, 29 Oct 2004 13:54:39 +0300
Message-ID: <4182216F.1080608@tut.by> (raw)
In-Reply-To: <4182140E.9000507@altlinux.ru>

Ivan Fedorov пишет:

>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 вы
>пишете руками, а кодирвку текста надо знать при составлении письма...
>  
>
Все параметры задаются в скрипте, и кодировка в том числе (текст 
сообщения однозначно 1251). Кодировка указывается тоже 1251, что видно и 
из заголовка письма, но вот где-то еще оно перекодируется :(

-- 
____________
С уважением, 
Левданский Юрий



      reply	other threads:[~2004-10-29 10:54 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
2004-10-29 10:54   ` Yury Levdansky [this message]

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=4182216F.1080608@tut.by \
    --to=avilink@tut.by \
    --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