|
From: Leo C. & C. H. <le...@cr...> - 2004-11-09 17:17:54
|
<html><body> <font style=3D"font-family: arial,helvetica,sans-serif;" size= =3D"2"><span style=3D"font-family: arial,helvetica,sans-serif;">I have a ol= d version of Rolodap (1.0) running at home in productive env in a RedHat 9.= 0 system and sending mail works.<br> [root@sweetdream caro]# rpm -qa | grep php<br> php-ldap-4.2.2-17.2<br> asp2php-0.76.2-5<br> asp2php-gtk-0.76.2-5<br> php-imap-4.2.2-17.2<br> php-4.2.2-17.2<br> <br> Using OpenLDAP 2.0.23-Release<br> <br> </span>Carolina <br><br> <br> </font><font style=3D"font-family: arial,helvetica,sans-serif;" size=3D"2">= <br>--- Philip Ward <p.g...@st...> wrote:<br><br>From: Philip = Ward <p.g...@st...><br>Date: Mon, 8 Nov 2004 09:01:14 +0000<br= >To: rol...@li...<br>Subject: Re: [Rolodap-develop= ] Email System<br><br>I had a thought yesterday. Could the problem with the= ldapsearch call be that <br>sendmail.phtml uses the php executable, while = the rest of Rolodap uses <br>mod_php.so?<br>Has anyone successfully managed= to send emails from Rolodap, and if so what <br>distro / php version / lda= p version are you using?<br><br>Phil.<br><br>On Friday 05 November 2004 10:= 43, Philip Ward wrote:<br>> Hi All,<br>><br>> The email system has= been a bit of a chore.<br>> I've finally managed to get something runni= ng and sending emails.<br>> I'll go over the problems and solutions for = anyone who is interested.<br>> Firstly I figured that allowing only one = attachment was a tad mean, so I<br>> added the ability to add more attac= hments using "More Attachments" and<br>> "Fewer Attachments" buttons. Th= is meant that mailform.phtml has to be its<br>> own "action", so that cl= icking the buttons brings you back to it. I moved<br>> the functionality= of startmailer.phtml into mailform.phtml inside an<br>> "if($send)" con= dition. Startmailer.phtml is now redundant.<br>> Various changes had to = be made to mailform.phtml and sendmail.phtml in<br>> order to handle an = array of attachments rather than a single one.<br>><br>> My next head= ache was getting sendmail.phtml to run. On my system (Debian<br>> Woody)= the php executable is /usr/bin/php4. I've hard coded it for now.<br>> P= erhaps PHPEXEC should be a setting in rolodap.conf. I'll see about adding<b= r>> this at a later date. Until then make sure that your correct php bin= ary is<br>> referenced.<br>><br>> sendmail.phtml would not run. In= depth analysis showed it crashing on the<br>> ldapsearch call. I've no = idea why it would crash. I've tried looking at the<br>> slapd debug outp= ut but have had no flashes of inspiration as yet. My<br>> interrim fix w= as to pass a list of email addresses rather than a list of<br>> uids fro= m mailform.phtml to sendmail.phtml. This way the ldapsearch is<br>> unne= cessary for determining the email addresses (and therefore commented<br>>= ; out), however it means that placeholders do not work (ie using <firstn= ame><br>> or <homephone> in the email will not result in the ac= tual data being mapped<br>> in - again this has been commented out). I'd= like to get this fixed, but<br>> will have to put it on the back burner= for now.<br>><br>> Finally support/smtp_mail.inc had a REALLY annoyi= ng bug and I had to<br>> monitor smtp traffic to find it. The MAIL FROM = and RCPT TO commands had<br>> spaces before the colons (ie "MAIL FROM :"= instead of the proper "MAIL<br>> FROM:"). Once fixed emails went out. I= don't know if these ever worked, or<br>> if some mail servers could han= dle the error but both my ISP's exim server<br>> and my local postfix se= rver got upset.<br>><br>> So, here are the files affected:-<br>> m= ailform.phtml<br>> startmailer.phtml - now redundant<br>> sendmail.ph= tml - lots of functionality commented out<br>> support/smtp_mail.inc - t= wo minor but very annoying bugs fixed<br>><br>> While I'm here, other= things I'd like to add to the email system are<br>> signatures (set up = via user preferences) and perhaps a more fully featured<br>> html email = editor. Perhaps we can integrate something like Ekit<br>> (http://www.he= xidec.com/ekit.php). Anyone interested in doing these feel<br>> free, as= I'll be working on an email audit trail for the next week or so.<br>><b= r>> Rather than mess around with patches I've attached new versions of t= he<br>> three updated files, since I don't think anyone else is looking = at the<br>> email system at the moment.<br>> All bug reports and fixe= s greatfully received, flames to /dev/null. ;-)<br>><br>> Regards,<br= >><br>> Phil.<br><br>-- <br>The University of Stirling is a universit= y established in Scotland by<br>charter at Stirling, FK9 4LA. Privileged/C= onfidential Information may<br>be contained in this message. If you are no= t the addressee indicated<br>in this message (or responsible for delivery o= f the message to such<br>person), you may not disclose, copy or deliver thi= s message to anyone<br>and any action taken or omitted to be taken in relia= nce on it, is<br>prohibited and may be unlawful. In such case, you should = destroy this<br>message and kindly notify the sender by reply email. Pleas= e advise<br>immediately if you or your employer do not consent to Internet = email<br>for messages of this kind.<br><br><br><br>------------------------= -------------------------------<br>This SF.Net email is sponsored by:<br>Sy= base ASE Linux Express Edition - download now for FREE<br>LinuxWorld Reader= 's Choice Award Winner for best database on Linux.<br>http://ads.osdn.com/?= ad_id=3D5588&alloc_id=3D12065&op=3Dclick<br>_______________________= ________________________<br>Rolodap-develop mailing list<br>Rolodap-develop= @lists.sourceforge.net<br>https://lists.sourceforge.net/lists/listinfo/rolo= dap-develop<br></font><br> <br><hr>Sign up for FREE email from Everyon= e.net email at http://www.everyone.net<br></body></html> |