473,385 Members | 1,806 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Jak zakodowac temat e-maila?

Witam,

Wysylam sobie maile ze skryptów php najprosciej
jak mozna:

$to="mo******@ok.pl";
$subject="Temat listu";
$body="Tresc listu";
mail($to, $subjest, $body);

I wszystko było pieknie, dopóki na serwerze pocztowym
nie zainstalowali filtra antyspamowego.

Teraz takie maile sa czesto odsiewane, a powód:
SUBJ_ILLEGAL_CHARS - Subject contains too many raw illegal characters.

Chodzi oczywiscie tylko o maile, gdzie w tytule są polskie litery,
a niestety być muszą.

Poglądnąłem jak wyglądają nagłówki mailu wysylanych
przez programy pocztowe i widze, ze polskie znaki w temacie
są zakogowane, np temat "ABCĘ" wygląda tak:

Subject: =?iso-8859-2?B?QUJDyg==?=

Nie wiem co to za standard kodowania.
Czy w PHP sa funkcje, ktore to automatycznie obslużą,
dla polskich liter?

Dzieki,

latet
Jul 17 '05 #1
1 3200

"latet" <bl*@bla.bla.pl> wrote in message
news:ct**********@host102-ursus.spray.net.pl...
Witam,

Wysylam sobie maile ze skryptów php najprosciej
jak mozna:

$to="mo******@ok.pl";
$subject="Temat listu";
$body="Tresc listu";
mail($to, $subjest, $body);

I wszystko było pieknie, dopóki na serwerze pocztowym
nie zainstalowali filtra antyspamowego.

Teraz takie maile sa czesto odsiewane, a powód:
SUBJ_ILLEGAL_CHARS - Subject contains too many raw illegal characters.

Chodzi oczywiscie tylko o maile, gdzie w tytule są polskie litery,
a niestety być muszą.

Poglądnąłem jak wyglądają nagłówki mailu wysylanych
przez programy pocztowe i widze, ze polskie znaki w temacie
są zakogowane, np temat "ABCĘ" wygląda tak:

Subject: =?iso-8859-2?B?QUJDyg==?=

Nie wiem co to za standard kodowania.
Czy w PHP sa funkcje, ktore to automatycznie obslużą,
dla polskich liter?


Istotna informacje znajdziesz w RFC 2049:

Generally, an "encoded-word" is a sequence of printable ASCII
characters that begins with "=?", ends with "?=", and has two "?"s in
between. It specifies a character set and an encoding method, and
also includes the original text encoded as graphic ASCII characters,
according to the rules for that encoding method.

[...]

encoded-word = "=?" charset "?" encoding "?" encoded-text "?="

Dla jezyku polskiego charset jest iso-8859-2. Encoding "B" to base64. Wiec
mamy:

function encodeSlowo($s) {
return "=?iso-8850-2?B?" . base64_encode($s) . "?=";
}
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: JZ | last post by:
Szukam jakiegoś odpowiednika fcntl na win32. W manualu napisali że os.open() z odpowiednią flagą jest bardziej uniwersalne od fcntl. Niestety zero informacji na temat tej flagi oraz brak...
2
by: Ania | last post by:
Moze troche nie na temat... Szukam nakładek na Excela do analizy danych... Cobyście mi polecili?
3
by: kromek | last post by:
Hello, my problem is that after I wrote application uses ImageList with enabled .manifest file I cannot run the application on windows 2000. When i removed *.manifest file from the VS directory...
6
by: Leszek Gruszka | last post by:
How to get static IP adresses from DHCP? I haven't seen it anywhere... :(
2
by: pmz | last post by:
Dear Group, I've got a problem with decoding e-mail message subject, which has been read within usage of Pear_Mail_Mime library. There are some elements unwelcome in my subject string, such...
0
by: Mark Tempe | last post by:
Hello, I've been trying to get Polish characters in my pdf which is generated using dompdf class... Well, I've got them finally, but they aren't displayed correctly. I know that it is a problem...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.