|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
In the cfmail function, I am trying to give the user (in the letter) a webaddress which has their name attached (which is the field #username#). Right now I have this and in the email it is not highlighting it or making it underlined. If the person is an alumna then it goes to one page, if not then it goes to another page. This is on a validate page which is taking the username from a form on the register page.
<cfif form.aStatus EQ "Yes"> http://websiteaddress/alumnaregister?#form.username#.cfm <cfelse> http://websiteaddress/studentregister?#form.username#.cfm </cfif> Thanks for your help! |
|
#2
|
||||
|
||||
|
Because the default MIME type for cfmail is text.
Read the docs You'll need to change the type to HTML or multi-part and write everything out in code. |
|
#3
|
|||
|
|||
|
Quote:
OK, I already had the type as html...so for the url do I need to put a href tags around it?? Cause when i tried that earlier it didn't work- but maybe I mistyped something. thanks |
|
#4
|
||||
|
||||
|
Yes. Valid HTML is required. Be advised also that stylesheets only work on some clients and JavaScript never works. You can include images however, but have to put the full URL, not just the URI.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > cfmail...including a web address and attaching a username field |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|