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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Next_Gate
Forum Newbie
Posts: 15
Joined: Fri Dec 20, 2002 4:54 pm

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

Post 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;
User avatar
Kriek
Forum Contributor
Posts: 238
Joined: Wed May 29, 2002 3:46 am
Location: Florida
Contact:

Post by Kriek »

\n (newline, line break character)
Next_Gate
Forum Newbie
Posts: 15
Joined: Fri Dec 20, 2002 4:54 pm

Post 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....
Post Reply