Where to put an email function |
[eluser]CARP[/eluser]
Hi guys I have built an app for government that allow users to request a new e-mail address account related to government. This CI app sends mail notifications to mail server admins when a new user requests an account. I have this code cloned in some controllers Code: $this->load->library('email'); I'd like to build a function somewhere with some parameters for sending mails, for example: Code: send_email($to, $from, $cc, $bcc, $message); Where should I build this function? Inside a controller? How should then I call it from another or the same controller? Thanks a lot in advance. Hope you've understood my question. |
Messages In This Thread |
Where to put an email function - by El Forum - 06-11-2008, 06:58 AM
Where to put an email function - by El Forum - 06-11-2008, 07:08 AM
Where to put an email function - by El Forum - 06-11-2008, 12:47 PM
Where to put an email function - by El Forum - 06-11-2008, 01:13 PM
Where to put an email function - by El Forum - 06-11-2008, 02:11 PM
Where to put an email function - by El Forum - 06-11-2008, 07:43 PM
Where to put an email function - by El Forum - 06-11-2008, 09:24 PM
Where to put an email function - by El Forum - 06-11-2008, 09:29 PM
Where to put an email function - by El Forum - 06-12-2008, 05:11 AM
Where to put an email function - by El Forum - 03-24-2009, 06:15 PM
|