Welcome Guest, Not a member yet? Register   Sign In
Email HEADERS with "Email" class
#1

[eluser]thesocialhacker[/eluser]
How does one set the Headers for an email sent via the Email class ($this->email->)?
#2

[eluser]jmadsen[/eluser]
I believe one looks in the manual?

http://ellislab.com/codeigniter/user-gui...email.html

I think "Setting Email Preferences" is what you are looking for, or have I misunderstood?
#3

[eluser]thesocialhacker[/eluser]
[quote author="jmadsen" date="1285421185"]I believe one looks in the manual?

http://ellislab.com/codeigniter/user-gui...email.html

I think "Setting Email Preferences" is what you are looking for, or have I misunderstood?[/quote]

thanks... i didn't know that the SERVER CONFIG could do that? btw- your attempt at satire is ALMOST as obnoxious as my questions Smile
#4

[eluser]CMCDragonkai[/eluser]
Can you explain further? I don't see how one sets the message headers.
#5

[eluser]InsiteFX[/eluser]
If you need to set your own headers please read the following!

CodeIgniter User Guide - Output Class

InsiteFX
#6

[eluser]CMCDragonkai[/eluser]
Yes, but does that work for emails? If so, how does one do that?
#7

[eluser]InsiteFX[/eluser]
The Email Library sends it's own headers!

You do need o set the config values for it.

Best place to learn is look at the Email class php file.

InsiteFX
#8

[eluser]CMCDragonkai[/eluser]
The userguide doesn't mention anything about email headers. But I will have a look at the class file itself.
#9

[eluser]skattabrain[/eluser]
I know it's a ways back now, but wondering if anyone has made any progress on this, looks like I'll need to extend the core, or am I missing something?
#10

[eluser]skattabrain[/eluser]
Here, maybe of value for someone... very simple though...

Place in application/libraries/MY_Email.php

Code:
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class MY_Email extends CI_Email {

public function set_custom_header($header_name='', $header_value = '')
{
  if($header_name=='') {
   return FALSE;
  }

  $this->_set_header($header_name, $header_value);

  return $this;
}

}




Theme © iAndrew 2016 - Forum software by © MyBB