Yii Framework Forum: Can Yii do this? - Yii Framework Forum

Jump to content

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

Can Yii do this? Rate Topic: -----

#1 User is offline   richkroc 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 10-September 11

Posted 10 September 2011 - 03:35 AM

Hi Group

I'm not a programmer so forgive me if this a "duh" sorta question. I want to develop a web app which at a set date and time, can automatically send a mass email shot using either Amazon Simple Email Service or Postmark.

Can Yii do this?
Thanks
R
0

#2 User is offline   Haensel 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 444
  • Joined: 14-January 11
  • Location:Vienna (Austria)

Posted 10 September 2011 - 03:44 AM

Of course you can do that with Yii (in fact - depending on your needs - Yii could be total overkill too ;-)).
There are two ways:
1. You can create a simple console app, so no user interface, where yo have to type in your date and the app does everything quietly in the backround
2. You could create a fancy pants webapp with UI and lots of buttons too.

The only part I can't speak for is the Amazon Simple Email Service as I don't know the API but I am 99% sure that it is a trivial task to talk to this service via Yii (i bet they use a REST service or something like that).
0

#3 User is offline   Haensel 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 444
  • Joined: 14-January 11
  • Location:Vienna (Austria)

Posted 10 September 2011 - 03:47 AM

Addition: There seems to be an official PHP library to talk to SES
0

#4 User is offline   Coksnuss 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 142
  • Joined: 14-May 09

Posted 10 September 2011 - 04:18 AM

Yii won't provide you a solution for your problem. Most probably you need to setup a Cronjob to execute the desired action at a specific time.
You still can build that application (console- or webbased) with Yii - But it does not natively provide functions for setup cronjobs or execute actions at a specific time because this is something that needs to be done at system level (PHP is not designed for that).
0

#5 User is offline   richkroc 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 10-September 11

Posted 10 September 2011 - 04:42 AM

Ok thats awesome! Thanks you guys :) Now to find a Yii developer! :)
0

#6 User is offline   Haensel 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 444
  • Joined: 14-January 11
  • Location:Vienna (Austria)

Posted 10 September 2011 - 04:46 AM

You should be able to create cronjobs via UI from within the app with a bit of hacking (see http://www.yiiframew...ension/webshell). You could call a shell script that receives the date and creates a cron which would trigger a Yii action sending data to Amazon's Service. With ipFilters it should be quite secure too. As I said, total overkill if you don't need some sort of web presentation (UI or something) ;)

Here's an interesting link: http://net.tutsplus....obs-with-php-2/
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