Page 1 of 1

Please help me with this js code!!! Sneding email!

Posted: Sat Jan 11, 2003 2:27 pm
by Next_Gate
I have this code in a page... so i give the mail variable from php and i need to format the body of the mail... how can i do it??

$body = "Hi how are you"

this is an example of what i want in the body message....

Line 1 = Hi how are You,

Line 2 = Other text bla bla bal

Line 3 = http://www.whatever.com

and so on any numbers of lines..


The deal here is that when i try to format the body to have more thatn one line i cant do it!!!!

i have tried some ways.. $body = Hi how are You <br> other line etc etc

And it doesnt work..

So how to make more than one line!!!!.. please help!!

Code: Select all

function contacto_admin() &#123;
                  correo = '$mail';
	  var contenido =  '$body'
		
			window.location = 'mailto:'+ correo + '?subject=Error en Portal...&body=' + contenido

		&#125;

Posted: Sat Jan 11, 2003 2:37 pm
by Kriek
\n (newline, line break character)

Posted: Sat Jan 11, 2003 2:43 pm
by Next_Gate
where dhould i use it??.. cause i tried it and igive me an error!!.. i did this

var contenido = '$body'

contenido = contenido + '\n OTEHR TEXT'

and it prompts an error .. string character sbla bla bla....