Hi,

I am trying to theme the email that webform sends but i can not use any design with HTML just plain text.

Have u tried to send the webform email with html code? please let me know if you guys have done something like this

When I either print it with PHP or embed it with the PHP code it comes out the HTML code and not the design, I guess that it may be a problem of the X-Mailer and comes out the bare code:

any ideas please?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html> <head> <title>Requisicion de Personal</title> <meta http-equiv="Content-Style-Type" content="text/css" /> <style type="text/css"> <!-- .style2 {font-size: 24px} --> </style> </head><body><table width="581" border="1"> <tr> <td colspan="2"><div align="center" class="style2">Requisicion de Personal</div></td> </tr> <tr> <td width="250" bgcolor="#339999"><div align="right">Fecha de Env&iacute;o: </div></td> <td width="315" bgcolor="#339999">2006-10-07 00:12</td> </tr> <tr> <td bgcolor="#339999"><div align="right">De la maquina con IP</div></td> <td bgcolor="#339999">131.178.31.195</td> </tr> <tr> <td colspan="2"><hr></td> </tr></table><table width="580" border="1"> <tr> <td width="233">Unidad de negocio solicitante:</td> <td width="171"> SCALMAC Huichihuayán, S.L.P.</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> </tr></table><p>&nbsp;</p></body></html>

Comments

quineto’s picture

I got this recomendation from a forum:

I think you may be right about the email headers being the problem. You might have to put something like the following into the headers somehow:

Content-Type:multipart/mixed; boundary=message;
--message
Content-Type:text/html

My Message.
--message--

I don't how to get it into the header section, though. You might have to create a new module with a form_alter function. Sorry I can't be of more help.

quicksketch’s picture

Status: Active » Closed (fixed)