Welcome Guest, Not a member yet? Register   Sign In
Formmail
#4

[eluser]Derek Allard[/eluser]
You can set config options for email right before you send it.

Code:
$config['protocol'] = 'smtp';
$config['smtp_host'] = 'smtp1.mailserver.ca';
$config['smtp_user'] = 'username';
$config['smtp_pass'] = 'password';
$config['smtp_port'] = '25';
$this->email->initialize($config);

Another trick that I like to use is to create a file in application/config called "Email.php" and include it in there. Then it gets autoloaded, and no need for inititalize()?

I'm writing up a tutorial about this - I'll try to remember to put it back here, but it'll be on my blog if you want to watch that.


Messages In This Thread
Formmail - by El Forum - 11-09-2007, 06:07 AM
Formmail - by El Forum - 11-09-2007, 06:25 AM
Formmail - by El Forum - 11-21-2007, 02:42 AM
Formmail - by El Forum - 11-21-2007, 06:49 AM
Formmail - by El Forum - 11-23-2007, 10:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB