"petemuir" wrote : ooops, my english went wrong there!
|
| Just use #{facesContext.externalContext.requestContextPath} and you get the
whole path of the server - http://www.example.com:8080/app/blah.seam - when you
are rendering mail.
I tried that and I now get the application name, but none of the protocol, port
or server.
New emailverification.xml
| <m:message xmlns="http://www.w3.org/1999/xhtml"
| xmlns:m="http://jboss.com/products/seam/mail"
| xmlns:s="http://jboss.com/products/seam/taglib"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:h="http://java.sun.com/jsf/html">
|
|
| <m:from name="Support" address="[EMAIL PROTECTED]" />
| <m:to name="#{user.name}">#{user.email}</m:to>
| <m:subject>Email Verification</m:subject>
| <m:body>
| <p><h:outputText value="Dear #{user.name}" />,</p>
| <p>Thank you for registering for a new account.
| In order to use your account,
| you must complete your registration by clicking on the link
below.</p>
| <p><a
href="#{facesContext.externalContext.requestContextPath}/validate.seam?tk=#{outtoken}">#{facesContext.externalContext.requestContextPath}/validate.seam?tk=#{outtoken}</a></p>
| <p>Regards,</p>
| <p>Glenn</p>
| </m:body>
| </m:message>
|
New generated email source:
| From: Support <[EMAIL PROTECTED]>
| To: Glenn <[EMAIL PROTECTED]>
| Subject: Email Verification
| Mime-Version: 1.0
| Content-Type: multipart/mixed;
boundary="----=_Part_30_12739979.1178034355270"
| Date: Tue, 1 May 2007 11:45:55 -0400 (EDT)
|
| ------=_Part_30_12739979.1178034355270
| Content-Type: text/html; charset=ISO-8859-1
| Content-Transfer-Encoding: 7bit
| Content-Disposition: inline
|
|
| <p>Dear Glenn,</p>
| <p>Thank you for registering for a new account.
| In order to use your account,
| you must complete your registration by clicking on the link
below.</p>
| <p><a
href="/fresh/validate.seam?tk=jrnncz">/fresh/validate.seam?tk=jrnncz</a></p>
| <p>Regards,</p>
| <p>Glenn</p>
| ------=_Part_30_12739979.1178034355270--
|
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042139#4042139
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042139
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user