inertia
Newbie


Joined: May 19, 2008
Posts: 1
|
Posted:
Wed Nov 12, 2008 7:58 pm |
|
hi from me too!
I would like to ask for something quite different...
How can I add headers into the email I send? is there any extra parameters?
What I want to do is:
1)get sender email, sender name (optional), and tell the message via mailheaders to send it as a HTML email
2)also the email must be in a different charset that iso-8859-1, e.g. UTF-8 or iso-8869-2, etc...
Is there any possible way to achieve this goal?
Thanx in advance, wait for any response! |
| |
|
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 965
|
Posted:
Fri Nov 14, 2008 7:47 am |
|
Ok, to send as HTML, you can pass a parameter into the $params variable, such as:
$params = array('html' => '1');
Unfortunately, I do not have support yet for passing a different character set. But, if all your emails are needing this different character set, you could try modifying the tnml_fMailer function in includes/tegonuke/mailer/mailer.php script.
You could try modifying this line here:
| Code: |
$message =& new Swift_Message($subject, $body, (isset($params['html']) and $params['html'] == 1) ? 'text/html' : 'text/plain');
|
To something like this:
| Code: |
$message =& new Swift_Message($subject, $body, (isset($params['html']) and $params['html'] == 1) ? 'text/html' : 'text/plain', null, 'utf-8');
|
Do you see the two additional nodes being passed in the function all?
I do have it in the roadmap for this mailer to allow more configurability. Just haven't found the time. |
| |
|