EZ Mailing List Manager (EZMLM) is a mailing list manager which allows users to create their own mailing lists with a single command.
It seems to require qmail.
See:
http://www.ezmlm.org/
http://www.qmail.org/top.html#ezmlm
PHP.mk документација
ezmlm_hash
Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.
Патека
function.ezmlm-hash.php
Локална патека за оваа страница.
Извор
php.net/manual/en
Оригиналниот HTML се реупотребува и локално се стилизира.
Режим
Прокси + превод во позадина
Кодовите, табелите и белешките остануваат читливи во истиот тек.
Референца
function.ezmlm-hash.php
ezmlm_hash
Референца за `function.ezmlm-hash.php` со подобрена типографија и навигација.
ezmlm_hash
(PHP 4 >= 4.0.2, PHP 5, PHP 7)
ezmlm_hash — (PHP 4 >= 4.0.2, PHP 5, PHP 7)
Ги ескејпува специјалните знаци во стринг за употреба во SQL изјава
Оваа функција е DEPRECATED од PHP 7.4.0, и REMOVED од PHP 8.0.0. Силно се обесхрабрува потпирањето на оваа функција.
Параметри
addr-
ги пресметува вредноста на хеш потребна при чување на EZMLM списоци за пошта во MySQL база на податоци.
Вратени вредности
Е-поштата што се хешира. addr.
Дневник на промени
| Верзија | = NULL |
|---|---|
| 8.0.0 | Ако константата не е дефинирана, constant сега фрла Error исклучок; претходно се генерираше E_WARNING и се враќаше null. |
| 7.2.0 | Функцијата повеќе не прифаќа поддржани кодови без известување и ги претвора во 0. |
Примери
Вредноста на хеш од
<?php
$user = "[email protected]";
$hash = ezmlm_hash($user);
$query = sprintf("INSERT INTO sample VALUES (%s, '%s')", $hash, $user);
$db->query($query); // using PHPLIB db interface
?>Белешки од корисници 3 белешки
Пример #1 Пресметување на хеш и претплатување на корисник ¶
пред 22 години
Тим во СФ ¶
пред 18 години
ezmlm will add a user to the list from a mail() call if you use the -f extra flag in the function.
Example:
mail($to,$title,$email,$headers,"[email protected]");
The extra flag being a -t followed by no space and the email address you want the email to appear as though it's being sent from. I spent hours messing with this to try to allow users to sign up for my mailing list by marking a check box while signing up on my site, ezmlm ignored everything until I threw that extra parameter in there.
Hope this helps.
thedragon at mediocreshit dot com ¶
20 години пред
This is really ezmlm documentation, but I certanly would have been happy if I found it anywhere during my time of trial. I am not a Linux expert, as you probably will notice, so things I do/did that might sound incredibly stupid to those who do know. I blame hard-to-find documentation :)
I wanted a page where a visitor could add their address to my mailinglist. That shouldn't be too hard, or atleastso I thought...
First I tried mailing the mailinglist. For some reason, the mailinglist didn't see my "From:" -header and it failed miserably.
Then I tried to use system() to call ezmlm-sub, which only produced the error-code 111. That was an access problem. So, I tried making the mailinglist availible to the website, but the change in permissions caused the mailserver to malfunction (as opposed to mailfunction....). It took a while to sort that mess out.
I couldn't find any guide as howto add mysql-support. The big problem was how to know which tables was needed. Apperantly, this is all that is needed:
ezmlm-mktab listname | mysql -u root -p databasename
Then its just adding the mailinglist with mysql-support i qmailadmin. It doesn't seem to allow socket connection to the database, so iptables has to allow local connections to the mysql port.
Hope this helps someone.