|
| |
|
|
DaveKstl
Posts: 551 Joined: 4/21/2004 Status: offline
|
Help with a line break in email link - 1/13/2005 8:52:57
I have created the email link: <a href="mailto:myMail@domain.net?subject=Request for Transportation Change&Body=Class\Student Information: <br> ClassID <%=rs("ClassID")%> Course <%=rs("Course")%> StartDate <%=rs("StartDate")%>Location <%=rs("Location")%> District <%=rs("DistDB")%> <%=rs("LName")%> <%=rs("LName")%>"><%=rs("LName")%></a> which works as one long string of characters. But I want to force line breaks and I cannot figure out the syntax. Please look for <br> in the above line. Thanks
|
|
|
|
BeTheBall
Posts: 6385 Joined: 6/21/2002 From: West Point Utah USA Status: offline
|
RE: Help with a line break in email link - 1/13/2005 9:47:23
I am not positive on this but believe you cannot force breaks into links. However, you can insert breaks into what is displayed to the user. Why would you need a break in the link itself?
_____________________________
Duane Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.
|
|
|
|
DaveKstl
Posts: 551 Joined: 4/21/2004 Status: offline
|
RE: Help with a line break in email link - 1/13/2005 12:00:24
The email is a self populating list of information that our users are too la.. to enter on their own. So this way I get all the inital information I need to generate a conversation. Thanks for the input.
|
|
|
|
DaveKstl
Posts: 551 Joined: 4/21/2004 Status: offline
|
RE: Help with a line break in email link - 1/13/2005 12:24:05
quote:
vbCrlf It is plain text: So if the Subject=&Body=Class\Student Information: vbCrlf ClassID <%=rs("ClassID")%>... How do I use the vbCrlf ? I think this may work. Thanks
|
|
|
|
DaveKstl
Posts: 551 Joined: 4/21/2004 Status: offline
|
RE: Help with a line break in email link - 1/13/2005 12:36:02
I want to forcr a break between Information: and ClassID
|
|
|
|
rdouglass
Posts: 9280 From: Biddeford, ME USA Status: offline
|
RE: Help with a line break in email link - 1/13/2005 12:52:42
quote:
Subject=&Body=Class\Student Information: vbCrlf ClassID <%=rs("ClassID")%>... Something like this: <%Response.write("Subject=&Body=Class\Student Information:" & vbCrlf & "ClassID" & rs("ClassID"))%>... But Duane waas correct. I don't think you want them inside your A href tag; I think you want them just before the closing tag (</a>). I think if you break the stuff in the URL itself, it'll fail. You want to break them in the text that the browser sees, correct? Or am I mistaken?
_____________________________
Don't take you're eye off your final destination. ASP Checkbox Function Tutorial.
|
|
|
|
DaveKstl
Posts: 551 Joined: 4/21/2004 Status: offline
|
RE: Help with a line break in email link - 1/13/2005 12:56:42
This is for the user to click a name in a list and then an email (in our case Lotus Notes) generates populating the To, Subject and Body with information populating in the body. This works as a single line on information in the body, readable but I thought I could create a line break for each items making it pretty.
|
|
|
|
BeTheBall
Posts: 6385 Joined: 6/21/2002 From: West Point Utah USA Status: offline
|
RE: Help with a line break in email link - 1/13/2005 13:00:35
I am now following you, but not sure whether it can be done. You want the body of the email to be populated by the click of the link but also want line breaks in the body. Right? I'll let you know if I can find something, but have had no luck so far.
_____________________________
Duane Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.
|
|
|
|
DaveKstl
Posts: 551 Joined: 4/21/2004 Status: offline
|
RE: Help with a line break in email link - 1/13/2005 13:03:03
Yes that' it. So for it works good, but the body information is hard to follow (a lot of info) in a single line Thanks
|
|
|
|
DaveKstl
Posts: 551 Joined: 4/21/2004 Status: offline
|
RE: Help with a line break in email link - 1/13/2005 13:05:45
I have tried this Information:<%Response.Write" & vbCrlf & "%ClassID but the & cuts off the remainder of info. If I can get this to work there is huge time savings and data integrity.
|
|
|
|
DaveKstl
Posts: 551 Joined: 4/21/2004 Status: offline
|
RE: Help with a line break in email link - 1/13/2005 13:08:45
However if I use Information: ClassID there is no dropped info. I was hoping there was a simialr command to the space that would force a break.
|
|
|
|
BeTheBall
Posts: 6385 Joined: 6/21/2002 From: West Point Utah USA Status: offline
|
RE: Help with a line break in email link - 1/13/2005 13:13:36
Think I got it. In your original code, replace <br> with %0D%0A I gleaned that from this article: http://www.faqs.org/rfcs/rfc2368.html Look under Paragraph 5 titled, "Encoding" Hope that does it for you.
_____________________________
Duane Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.
|
|
|
|
DaveKstl
Posts: 551 Joined: 4/21/2004 Status: offline
|
RE: Help with a line break in email link - 1/13/2005 13:17:57
quote:
%0D%0A I think this is a way to chase I inserted as Information:%0D%0AClassID and got Information: || ClassID Does it needs to be inserted with "" or <> or the like?
|
|
|
|
BeTheBall
Posts: 6385 Joined: 6/21/2002 From: West Point Utah USA Status: offline
|
RE: Help with a line break in email link - 1/13/2005 13:25:42
I think it will only work for a html-encoded email. Not sure if there is an alternative for text-based.
_____________________________
Duane Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.
|
|
|
|
DaveKstl
Posts: 551 Joined: 4/21/2004 Status: offline
|
RE: Help with a line break in email link - 1/13/2005 13:27:41
Thanks!
|
|
|
|
BeTheBall
Posts: 6385 Joined: 6/21/2002 From: West Point Utah USA Status: offline
|
RE: Help with a line break in email link - 1/13/2005 13:38:58
I think this will be very hit and miss for you. If I am not mistaken, by using a mailto link, the mail will be generated in the user's default mail client. When I try to include a body attribute, it won't work as intended when my default client is web-based, ie, gmail or hotmail. With those, the body didn't populate at all. When I used Outlook or Eudora, the body was populated including the desired line break.
_____________________________
Duane Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.
|
|
|
|
DaveKstl
Posts: 551 Joined: 4/21/2004 Status: offline
|
RE: Help with a line break in email link - 1/13/2005 13:46:43
I'm going for the longest thread - just kidding. That's interesting! When I cut my code and pasted into a reply, I got a line break and thought I did something wrong. I believe this is the solution in one sense as you describe but is email aplication specific as you state. I can control the email app. We HAVE to use Lotus Notes. A bit more testing. Thanks
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|