Welcome Guest, Not a member yet? Register   Sign In
Email Class: Send dynamic text from file?
#1

[eluser]kabbink[/eluser]
Hello all!

This might be a fairly simple question but I've been working all day so maybe I've just lost it!

All I want to do is be able to send an email (preferably using the built in email library)
which is stored in a separate file but also has some dynamic variables in it.

Here is some pseudo code of what I am trying to do:

I would have a file called email.php containing something similar to:

Code:
Dear {$customer_name},

We appreciate your business!

Then send the email with something like:

$data['customer_name'] = 'Joe';
$this->email->message(email.php, $data);

Hope that made sense!
Thanks for all the help!
Kevin


Messages In This Thread
Email Class: Send dynamic text from file? - by El Forum - 06-11-2008, 11:25 PM
Email Class: Send dynamic text from file? - by El Forum - 06-12-2008, 12:08 AM
Email Class: Send dynamic text from file? - by El Forum - 06-12-2008, 12:27 AM
Email Class: Send dynamic text from file? - by El Forum - 06-12-2008, 10:56 AM
Email Class: Send dynamic text from file? - by El Forum - 06-12-2008, 11:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB