Tomas Kuliavas wrote:

Hi,


I have been trying to add an attribute mailReplyText for an LDAP entry.
The message I was trying to store is a multiline message so I was
referring to

http://www.nrg4u.com/qmail/QLDAPINSTALL
LDAP_REPLYTEXT (default: "mailReplyText")


I tried to use base64 encoded message for that attribute but it did not
work. I got autoreply with encoded message string. But if I set it in plain
text (even multiline, but not encoded), it works.

I am encoding this using PHP function as I am building a web application
for mail users.

I used functions like this base64_encode($mymessage) and
chunk_split(base64_encode($mymessage)) but both base64 strings failed.

If anyone have any Ideas what I am doing wrong? Did anyone managed to
use multiline autoreply message using base64 encoding?

Vacation code in PHP?

Nope, take values from HTML form and store it in LDAP using PHP (I am using qmail-ldap). But for that I need to be sure about other things, like what I am storing in LDAP works..

So I am first trying to set up Vacation mail using LDIF. I am able to store it using PHP as well but as I said, only base64 encoding is not working as explained on nrg4u.com. Means I get literal string which is a base64 encoded message in autoreply mail body.

I got other things working using PHP, like creating users, managing attributes etc. in LDAP.

But I am stuck with vacation mail (multiline messages).

Regards,

--
Sameer N. Ingole
/*****************************************************/
Better to light one candle than to curse the darkness.
/*****************************************************/

Reply via email to