Yii Framework Forum: Swift Mailer - Yii Framework Forum

Jump to content

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

Swift Mailer Wrapper extension for Swift Mailer Rate Topic: -----

#1 User is offline   sAe 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 51
  • Joined: 18-May 09
  • Location:Sweden, Karlstad

Posted 19 May 2010 - 02:03 PM

Hi everyone,

I've found a great library for sending mail which in my opinion beats php mailer by a lot, to easy access it with Yii
i made this wrapper with some helper methods added to it. Easy to use and so far seems very robust.

Quoting the authors page
Swift Mailer integrates into any web app written in PHP 5, offering a flexible and elegant object-oriented approach to sending emails with a multitude of features.

* Send emails using SMTP, sendmail, postfix or a custom Transport implementation of your own
* Support servers that require username & password and/or encryption
* Protect from header injection attacks without stripping request data content
* Send MIME compliant HTML/multipart emails
* Use event-driven plugins to customize the library
* Handle large attachments and inline/embedded images with low memory use


Hopefully more people than me will find this useful.

I appreciate all kinds of feedback!

/Martin
0

#2 User is offline   jonah 

  • Advanced Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 733
  • Joined: 27-November 08
  • Location:California (US)

Posted 19 May 2010 - 07:35 PM

Fyi: http://www.yiiframew...extension/mail/

I plan on also trying out your implementation
http://php-thoughts.cubedwater.com - my bloggings about Yii
0

#3 User is offline   sAe 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 51
  • Joined: 18-May 09
  • Location:Sweden, Karlstad

Posted 20 May 2010 - 10:03 PM

Crap! :(

How could i've missed that. After tying mine out, you make the call if we even need mine in repo.
Better off removing it if there's no real difference, i don't see the purpose of maintaining two of the
same extensions. :)

/Martin
0

#4 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,428
  • Joined: 17-January 09
  • Location:Russia

Posted 21 May 2010 - 04:09 AM

sAe
Probably it's good idea to review jonah's extension to merge your code or optimize existing code.
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
0

#5 User is offline   sAe 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 51
  • Joined: 18-May 09
  • Location:Sweden, Karlstad

Posted 22 May 2010 - 08:49 PM

View Postsamdark, on 21 May 2010 - 04:09 AM, said:

sAe
Probably it's good idea to review jonah's extension to merge your code or optimize existing code.


I've reviewed Jonah's code and my approach is just a simple wrapper with a few helper methods to the Swift classes whilst Jonah
did a more thorough job adding a couple of other helpers and debug component etc. I myself will stick to my implementation
because i don't need all that Jonah has, but on the other hand if i knew it was available in the first place i wouldn't have cared and
used it so you are free to delete this thread and my component if you see it useless being as it is. I don't mind at all! B)
0

#6 User is offline   jonah 

  • Advanced Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 733
  • Joined: 27-November 08
  • Location:California (US)

Posted 23 May 2010 - 12:56 AM

I haven't gotten a chance to try this yet but.. We're not going to delete this thread or this extension, unless you want us to (but I don't think you should, you did a great job)

Regards,
Jonah
http://php-thoughts.cubedwater.com - my bloggings about Yii
0

#7 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,428
  • Joined: 17-January 09
  • Location:Russia

Posted 23 May 2010 - 07:26 AM

I think it should be either merged or deleted. Two extensions doing the same thing is the bad situation.
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
0

#8 User is offline   sAe 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 51
  • Joined: 18-May 09
  • Location:Sweden, Karlstad

Posted 23 May 2010 - 10:36 AM

View Postjonah, on 23 May 2010 - 12:56 AM, said:

I haven't gotten a chance to try this yet but.. We're not going to delete this thread or this extension, unless you want us to (but I don't think you should, you did a great job)

Thanks.

View Postsamdark, on 23 May 2010 - 07:26 AM, said:

I think it should be either merged or deleted. Two extensions doing the same thing is the bad situation.

I have to agree, i don't really see the need for my extension when Jonah's exist, feel free to delete this as i
couldn't find any way of doing it myself. :)
0

#9 User is offline   jonah 

  • Advanced Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 733
  • Joined: 27-November 08
  • Location:California (US)

Posted 23 May 2010 - 05:57 PM

Ok. I'm going to take a good look at this once my school finals end , next week (right now I don't have much time)
http://php-thoughts.cubedwater.com - my bloggings about Yii
0

#10 User is offline   yiibie 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 20
  • Joined: 06-July 12

Posted 06 July 2012 - 01:42 PM

Is it possible just to update the SwiftMailer lib files to always have the latest version or did you make any changes in the SwiftMailer files?
This question refers to both Yii Swift Mailer extensions.
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