internal > notifications > Feature (done?)

Send mail via SMTP / #2528

Summary

v2.0 - far far away
done?
Oct 17, 2006
10 hours ... 2 days
100%
Oct 18, 2006 / pixtur
May 30, 2007 / xl
pixtur
 

Attached files

No files uploaded
The Zend mailclass isn't supporting SMTP-Auth.

You should check this out:
http://www.phpguru.org/downloads/html.mime.mail/htmlMimeMail5.zip

http://www.phpguru.org/static/htmlMimeMail5.html

The example of htmlMimeMail5 looks quiet well.



also read:

13 Comments

pixtur

Oct 18, 2006

binder

Oct 18, 2006
version 2
for mail, PHP should be configured
sending mail should be configured in php.ini; there you can add also SMTP-auth... or you have to add a smarthost to your network and use it as SMTP.

has nothing to do with streber as an application at all!

pixtur

Oct 18, 2006
ok...
I am not firm on this topic. Maybe someone can write some docu about setting up mail notifications with sendmail / streber...

guest

Oct 18, 2006
version 3
New Comment
Ok. then try configure you php.ini if you have no rights on the system to do so. this way everybody can sent mail with streber. And it doesn't matter if you have a mail server installed on your system. You just need access to one.

guest

Oct 18, 2006
version 5
New Comment
Ok. then try configure you php.ini if you have no rights on the system to do so. this way everybody can sent mail with streber. And it doesn't matter if you have a mail server installed on your system. You just need access to one.

binder

Oct 18, 2006
sending mail via PHP-mail is all we need so far?
I don't think, we should add direct SMTP-Support or install any mail-classes or whatsoever. For status-mail the php mail() is sufficient.

if anyone needs to send via SMTP-auth or another way of exchanging email, he could simply adjust the php.ini. There you have plenty options and can integrate whatever you want.

Perhaps another way for those needs would be using the API

guest

Oct 19, 2006
version 3
New Comment
You can't configure SMTP support in php.ini for Linux systems. I could make the neccessary changes to file easy but I don't want to redo them after every upgrade. It would only be using the class mentioned above plus adding 5 lines of code to the config file.

binder

Oct 19, 2006
version 2
Antwort auf New Comment
but of course you can! ;)
just install the mailer of your choice (exim?) and let the mailer send the mails into the world.

or did I get your question totally wrong? *G*

guest

Mar 21, 2007
I agree about the necessity of SMTP support
First of all I think that streber becomes a very strong solution and becomes better and better.
I agree with "guest" in thinking that having an SMTP support can improve the solution very much.
the php.ini may hold different email account than the one I would like to use with streber as a notifier.
This will also make migration of streber to a different/upgraded/hosted machine a lot more stable and easy, not relying on several different config files but only copying the database.
Keep up the good work, Yogev

guest

Apr 19, 2007
version 2

xl

May 29, 2007
version 3
Uups...
I swear i just wanted to look into the mail code, but some hours later i found myself with working smtp.
You can find a patch in SMTP Patch for v0.08. (Dont know how to svn this yet).

Some comments:
  • first of all: have not coded in php for years and wow, php5 really rocks!
  • Thanks for the htmlMimeMail5 link! I used this as mail engine.
    • unfortunately htmlMimeMail5 triggers some php5-strict errors link "should not be called statically" which i don not understand yet so i switched lower error reporting for a few lines.
    • i expanded htmlMimeMail5: it now collects a smtp transcript and if there is a smtp error, the transcript goes to error log
    • only with that i found anoher issue: at least my provider refuses mails that contain bare lf in the text part. changed all lf to crlf.
  • added appropriate config variables to conf.inc.php and example-of-customize.inc.php (which i enriched a bit)
  • did some cleanup
  • error handling via $g_mail_errors is no longer used, someone may clean this up in errorhandling.
What happens next? I think i can do some more issues on mail.inc.php, which i now know quite well.

pixtur

May 30, 2007
cool stuff...
Hi xl,

I will go through your stuff tomorrow on the train. Do you have a sourceforge account?


xl

May 30, 2007
yep
aexl at sf.net
 

Comment / Update