Yii Framework Forum: Automatic e-mail sender - Yii Framework Forum

Jump to content

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

Automatic e-mail sender Rate Topic: -----

#1 User is offline   Praferosa 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 12-August 12

Posted 12 August 2012 - 09:23 PM

Can you please help me, I'm currently working on a Scholarship Tracking System and our client wants us to have a automatic e-mail sender in the system. Our problem is how are we going to do that. Any suggestions?
0

#2 User is offline   bennouna 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,166
  • Joined: 05-January 12
  • Location:Morocco

Posted 13 August 2012 - 12:10 AM

Well it depends on what you mean by automatic... There is a bunch of mailing extensions over here in addition to the php mail function.
0

#3 User is offline   alirz23 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 890
  • Joined: 08-August 12
  • Location:Durban, South Africa

Posted 13 August 2012 - 01:12 AM

check out yii-mail its pretty good

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

#4 User is offline   yugene 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 513
  • Joined: 08-August 09

Posted 14 August 2012 - 12:07 AM

Yes, agree with bennouna - please clarify your requirements.
On the last project I used modified version of http://www.yiiframew...on/simplemailer with my own Swift Mailer implementation (instead of mail() function in that extension) in conjunction with Observer class (which handles events that require email-sending jobs) and like this approach so far.


0

#5 User is offline   Praferosa 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 12-August 12

Posted 22 August 2012 - 08:43 PM

Our client wanted us to create a function that will automatically send e-mail to them when the sponsored child's scholarship will end. This is the example that our client provided:


After counting 10 months, his/her sponsorship will expire on March 2012.
We must therefore receive an automatic e-mail reminder by the end of January 2012 that the sponsorship of this particular child will expire on March 2012.
Sample e-mail text: “This is to inform you that the sponsorship of ______ will soon expire on March 2012.”
Once we receive this e-mail reminder, we will contact the sponsor ASAP.
If sponsor decides to renew the sponsorship, then the 10-month countdown begins on June 2012 (we exclude April and May).
The next time we will receive another e-mail reminder for this child will be on March 2013.
0

#6 User is offline   waitforit 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 390
  • Joined: 09-February 11

Posted 23 August 2012 - 08:21 AM

Use one of the mail extensions as suggested.

Create a console app and a cronjob that runs it daily. In your console app, search the DB for records expiring and build your email template for any that meet your rules.
0

#7 User is offline   Praferosa 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 12-August 12

Posted 24 September 2012 - 01:17 AM

View Postwaitforit, on 23 August 2012 - 08:21 AM, said:

Use one of the mail extensions as suggested.

Create a console app and a cronjob that runs it daily. In your console app, search the DB for records expiring and build your email template for any that meet your rules.


Can you please give me some other options? Our project is hosted by our professor, I don't know how will I deal with him about the console app.
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