Forum Moderators: open

Message Too Old, No Replies

Email form writing to different row?

i need help :)

         

Gero_Master

5:27 pm on Jan 29, 2005 (gmt 0)

10+ Year Member



I have made tell a friend -form script. It writes body to mail, but how can i tell it wich things need to but to different row. My form puts everything on one chapter that it rows depending on screen width.

mcibor

10:47 pm on Jan 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You should change all <br> into "/r/n" Or force the field to send you the end of line char. However only text area has that possibility, as I recall. It was sth like: <textarea style="wrap: hard;"> But better check sb or some tutorial for wrapping. There were 3 possibilities.

Best regards!
Michal Cibor

Gero_Master

2:31 pm on Feb 3, 2005 (gmt 0)

10+ Year Member



im gona try that. I had to add 'custom message' that will be edited to sending mail by user filing forms like name.

normal = 'Hi there. Your friend like to refer you a good site'

After 'friend name' & 'sender name' has been edited, it sends mail like this = 'Hi there *friendsname*. Your friend *sendername* like to refer you a good site'.

It works, but i needed to get those to sentences to different rows

Gero_Master

2:52 pm on Feb 3, 2005 (gmt 0)

10+ Year Member



window.location = "mailto:"+document.eMailer.email.value+"?subject="+document.eMailer.subjecti.value+ ' By: ' +document.eMailer.sname.value+"&body="+'Hi there \r\n' +document.eMailer.fname.value+ '! Your friend ' +document.eMailer.sname.value+ ' wants to recommend you a cool website called Gero Media (http://www.URL FORBIDDEN.htm). You can contact your friend using this E-mail address: ' +document.eMailer.smail.value+ '. Your friend ' +document.eMailer.sname.value+ ' also wanted to send you his own message: "' +document.eMailer.bodi.value+ '"'

That is the part of the script that forms up the message from those fields.

Could you show where to put that script by making that 'bodi' -value (at end) to be on different row than that text before it.

mcibor

11:41 am on Feb 5, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



To say the truth it was hard to find the code. I'm not sure if \r\n does the trick, but if it does then you need to put it here:

window.location = "mailto:"+document.eMailer.email.value+"?subject="+document.eMailer.subjecti.value+ ' By: ' +document.eMailer.sname.value+"&body="+'Hi there' +document.eMailer.fname.value+ '!\r\n Your friend ' +document.eMailer.sname.value+ ' wants to recommend you a cool website called Gero Media (http://www.URL FORBIDDEN.htm).\r\n You can contact your friend using this E-mail address: ' +document.eMailer.smail.value+ '.\r\n Your friend ' +document.eMailer.sname.value+ ' also wanted to send you his own message: "' +document.eMailer.bodi.value+ '"';

Best regards
Michal Cibor

SpaceFrog

2:00 pm on Feb 7, 2005 (gmt 0)

10+ Year Member



%0A will do the job for email body ...