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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending a link thru CFMAIL

Status
Not open for further replies.

janette

Programmer
Jun 21, 2002
1
GB
I have an application that needs to send email when a file is updated. I want to send the link of the file as part of the body, when I get the email, and trying to open the link, this is the address the link address shows.

Open the 6-0000000052FC3063C2A4D211A11E00105A65571F0700613A6A6A3F09D311
8F5C00508B2C24FE000000BE0DDA0000E79883AEA37FD411A58C00508BAC
5F4B0000000EEDB40000

instead of <a href=&quot;file/test.doc&quot;>Test.doc</a>

The code I am using is below:

Please try the following:

Open the 6-0000000052FC3063C2A4D211A11E00105A65571F0700613A6A6A3F09D311
8F5C00508B2C24FE000000BE0DDA0000E79883AEA37FD411A58C00508BAC
5F4B0000000EEDB40000

<CFIF ISdefined(form.submit)>

<cfmail to=&quot;jsalazar@nuera.com&quot;
from=&quot;mclay@nuera.com&quot;
subject=&quot;Library Update&quot;
type=&quot;HTML&quot;>
<table>
<tr><td><font face=&quot;arial,helvetica,verdana&quot; size=&quot;2&quot;>
#ParagraphFormat(comments)#</font></td></tr>
</table>
<a href=&quot;file/test.cfm&quot;>test.cfm</a>
</cfmail>


</cfif>

Any ideas what am I doing wrong??

Thanks,

Janette
 
That's really unusual but one problem I see is that your link isn't a fully qualified url. I don't do any work the html formatted messages but I think you'll need something like <a href=&quot; instead of just &quot;file/test.cfm&quot;. That doesn't explain why you have a long series of numbers but I would fix this first and see if the other goes away. It's possible that the e-mail client doesn't like the relative link and is doing something strange with the link.

Hope this helps,
GJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top