Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inserting Breaks to a Mail To:

Status
Not open for further replies.

Ianpen

Technical User
Jul 1, 2003
45
0
0
GB
Hi

I Have created this mail to and would like to break the body up a bit and put each response.write onto a different line.

I realise this is probably realy simple but i have tried using <br> and <p> </p> but this is treated as plain text.

Can Anyone help

<td> <div align="center"><span class="style1"> <a href="mailto:anon@anon.com?subject=Request for File From Policy Range <%response.write objrs ("policy")%>
&body= No Range= <%response.write objrs ("policy")%>
Dse Ref= <%response.write objrs ("file")%>
Location= <%response.write objrs ("location")%>
Date= <%response.write objrs ("poldate")%>
Type= <%response.write objrs ("type")%>
Enter Details Here =" >E-Mail Request</a></span></div></td>
</tr>


Thank you
 
Fester

I just tried that after reading the post below but this stopped the rest of my response.writes from displaying.

Is there a possiblity I'm using it wrong. I'll show you where i put it

&body= No Range= <%response.write objrs ("policy")%> & VbCrLf
Dse Ref= <%response.write objrs ("file")%>
Location= <%response.write objrs ("location")%>
Date= <%response.write objrs ("poldate")%>
Type= <%response.write objrs ("type")%>
Enter Details Here =" >E-Mail Request</a></span></div></td>

Thanks
 
how about

Code:
<%
strbody="subject=Request for File From Policy Range " & objrs ("policy") &_
      "&body= No Range=" & objrs("policy") & _
      "Dse Ref=" & objrs("file") & _
      "Location=" & objrs("location") & _
      "Date=" & objrs("poldate") & _
      "Type=" & objrs("type") & _
      "Enter Details Here =" 
%>

<td> 
<div align="center"><span class="style1"> <a href="mailto:anon@anon.com?<%=strbody%>">E-Mail Request</a></span></div>
</td>
</tr>
 
Steve

Tried that, the output just looks like this

No Range=00 90Dse Ref=87000601Location=Date=Jun-03Type=deed endorsementEnter Details Here =

In one line.

Anymore thoughts
Thanks

 
sorry i meant
Code:
strbody="subject=Request for File From Policy Range " & objrs ("policy") &_
      "&body= No Range=" & objrs("policy") & vbcrlf &_
      "Dse Ref=" & objrs("file") &vbcrlf & _
      "Location=" & objrs("location") & vbcrlf &_
      "Date=" & objrs("poldate") & vbcrlf &_
      "Type=" & objrs("type") & vbcrlf &_
      "Enter Details Here ="
 
Sorry mate

Same results again????

Am I missing something?
-------------------------------
<%
strbody="subject=Request for File From Policy Range " & objrs ("policy") & vbcrlf &_
"&body= No Range=" & objrs("policy") & vbcrlf &_
"Dse Ref=" & objrs("file") & vbcrlf &_
"Location=" & objrs("location") & vbcrlf &_
"Date=" & objrs("poldate") & vbcrlf &_
"Type=" & objrs("type") & vbcrlf &_
"Enter Details Here ="
%>

<td>
<div align="center"><span class="style1"> <a href="mailto:anon@anon.com?<%=strbody%>">E-Mail Request</a></span></div></td>
</tr>
-----------------------------------------

Thanks
 
Ianpen -- it looks like you want this to be all in one line. you're passing the body of the message to the mailto part of an href...it's going to be on one line like that regardless. you'll have to figure out a way in your mail client to strip that argument into a "body."

or....you could change the manner in which you're trying to accomplish this. you could send from the server since you're using asp to begin with instead of client-side with the mailto: event.
 
Thanks ethorn10,

I'll look into that!

Thanks People.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top