roxen.lists.roxen.general

Subject Author Date
email tag attributes appending David Hunter <dhunter[at]pauanui[dot]net[dot]nz> 11-03-2007
when using the below code (same applies to using source="sql" in the
emit tag),
the cc address appends to the one from the previous emit (in the
resulting email only, not if i output the value in the called page).
I also get duplication of the content type.


The first email is fine but the second email the headers contain

Cc: emailaddress1, emailaddress2

Content-Type: text/html; charset=US-ASCII,text/html;
charset=US-ASCII;charset="iso-8859-1"


This does not happen if i set the content-type in the administration
interface for the email tag.

how can i set the content type to html for only some of my email tag
usage without having to set it for the whole site?
or is this a bug?.

<emit source="values" values="emailaddress1,emailaddress1" split=",">
<email from="emailaddress" to="&_.value;" cc="&_.value;" separator=","
server="mymailserver" subject="Test &_.value;">
<header name="Content-type" value="text/html; charset=US-ASCII" />
Test only
</email>
</emit>


David Hunter.