Yii Framework Forum: add mail class - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

add mail class

#1 User is offline   dckurushin 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 392
  • Joined: 16-March 11
  • Location:Israel

Posted 07 October 2011 - 09:52 AM

You have Zend_Mail phpmailer swiftmailer...

But all frameworks comes with some mailer...

Maybe integrate some mailer component?

you distribute Yii with htmlpurifier, maybe you can do the same with other mailer ? :rolleyes:

Or just create our own...

I think actually "all frameworks have it" is a good reason itself... because after all want it or not, there is a little competition between the frameworks...

Only newbies concerned about that, but after all thous "total freshers" are the future developers, so better hunt them when they young, and when they grow they will be loyal :D
2

#2 User is offline   Davidhhuan 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 270
  • Joined: 08-September 09

Posted 19 October 2011 - 08:44 AM

a mailer class should as a helper, that is enough
no pain, no gain...

My Blog : http://cnblogs.com/davidhhuan
My website: http://sharefamily.net/
0

#3 User is offline   dckurushin 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 392
  • Joined: 16-March 11
  • Location:Israel

Posted 19 October 2011 - 06:39 PM

say it to the beginners that will say: "Yii s*cks cause it not has even mailer class, I'll better stick to code igniter etc. "

You can say "who need those noobies", but those users are the future framework users... if they will use something else for a long time, less chance they switch to Yii :)

and after all this is about competition....
symphony for example comes with swiftmailer...

So you shouldn't maybe write your own...

If you think it will take to much space... look in all those translations for trillion languages :D
0

#4 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 19 October 2011 - 06:54 PM

CakePHP had that.

And then they removed it.

Because people would always use their own component.


"Less noise - more signal"
0

#5 User is offline   dckurushin 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 392
  • Joined: 16-March 11
  • Location:Israel

Posted 21 October 2011 - 11:25 AM

If people always use their component - why they use frameworks? most of the people actually not want to reinvent the wheal
0

#6 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 21 October 2011 - 11:32 AM

Because the framework makes it really easy to plug things into it.

It provides the infrastructure, that's what a framework should do IMO.

I am looking forward to an even more stream-lined and flexible pluggable architecture in Yii 2.0.




I see way too many frameworks which makes the choices for me.

Most of the time it's due to the frameworks not being pluggable - or should I say: not enough LegoTM ?


If you know what I mean.

A well written framework should help me do whatever I want to do, not choose for me.
"Less noise - more signal"
1

#7 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 21 October 2011 - 11:34 AM

Take unit testing, for instance.

Yii should be pluggable enough to let me choose alternative unit testing frameworks besides PHPUnit.

And so on.

It should be ready for whatever I want it to work with. (Ideally) :)



<edit>

No, I am not on a personal vendetta against you - even though it seems that way. ;D

I am just fighting for freedom - by means of a flexible and lean (mean) Yii framework.


"Less noise - more signal"
1

#8 User is offline   dckurushin 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 392
  • Joined: 16-March 11
  • Location:Israel

Posted 22 October 2011 - 07:27 AM

Sometimes it is good if it exists, take for example Zend Framework, you not forced to anything
0

#9 User is offline   ekerazha 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 524
  • Joined: 10-October 08
  • Location:European Union

Posted 22 October 2011 - 06:38 PM

View Postjacmoe, on 21 October 2011 - 11:32 AM, said:

Because the framework makes it really easy to plug things into it.

It provides the infrastructure, that's what a framework should do IMO.

A framework should provide libraries for common tasks.

View Postjacmoe, on 21 October 2011 - 11:34 AM, said:

Take unit testing, for instance.

Yii should be pluggable enough to let me choose alternative unit testing frameworks besides PHPUnit.

And so on.

Overengineering brings slow code.

Quote

It should be ready for whatever I want it to work with. (Ideally) :)

If you choose a framework, you're already choosing a rail. If you want to do whatever you want, don't use a framework.
Yii user #37
0

#10 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 22 October 2011 - 07:06 PM

I have a feeling that you are bearing a grudge against me. :)
"Less noise - more signal"
0

#11 User is offline   ekerazha 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 524
  • Joined: 10-October 08
  • Location:European Union

Posted 23 October 2011 - 02:59 AM

Honestly, I don't care about people, I care about what people say.
Yii user #37
0

#12 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 23 October 2011 - 04:09 AM

View Postekerazha, on 23 October 2011 - 02:59 AM, said:

Honestly, I don't care about people

It's bloody obvious that you don't. <_<

/* now, where's the 'foe' list? */

Well, you can add email if you want - I don't give a flying fart.B)

"Less noise - more signal"
0

#13 User is offline   dckurushin 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 392
  • Joined: 16-March 11
  • Location:Israel

Posted 23 October 2011 - 09:04 AM

You have CJuiSlider, buy you against mail class lol
0

#14 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 23 October 2011 - 09:16 AM

It's part of Zii components which doesn't count since it's not really Yii core.
The only reason why it's in the repository is due to two reasons: it's developed (and used) by the core team, and (I guess) it serves as an example of how to encapsulate third-party stuff by means of widgets.
I wouldn't rebel if they decided to put an email class in the Zii directory.. But I can't see why they would. :P

<edit>
IIRC, Zii was in a separate repository a while ago..
</edit>
"Less noise - more signal"
0

#15 User is offline   ekerazha 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 524
  • Joined: 10-October 08
  • Location:European Union

Posted 23 October 2011 - 11:53 AM

View Postjacmoe, on 23 October 2011 - 09:16 AM, said:

<edit>
IIRC, Zii was in a separate repository a while ago..
</edit>

Then it was merged to the core ;)
Yii user #37
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users