Advertisement

10.01.2008 at 07:38AM PDT, ID: 23778108 | Points: 500
[x]
Attachment Details

URGENT  -  need to using a variable in mailto: statement

Asked by ohmetw in Oracle 10.x

Tags: ,

I need to create an automated email that will load this information into a new email in the user's default email app.  ....this is working fine....until I try to add a variable into the body of the email.  I am guessing this is a pretty standard things to do, but I can't seem to get the syntax correct


I define the userName variable towards the top of my code

String userName = ""+session.getValue("user");


then I have the mailto:  statement later

<div id="apDiv4"><a href="mailto:johndoe@compemail.com?cc=janedoe@compemail.com&subject=Request for login and password&body=Please create a user account so I can have access%0A%0Auserid:  '+userName+'%0A%0A(Expect a response within 24 hours)" class="style5">Click Here to get a username and password</a></div>

it works fine when I exclude the  '+userName+'   not sure if I am supposed to use ""  or \" \"    ....or what to get the variable to appear in the text in the email.  please help thanks!


Start Free Trial
 
Keywords: URGENT - need to using a variable in…
 
Loading Advertisement...
 
[+][-]10.01.2008 at 09:48AM PDT, ID: 22616339

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.01.2008 at 09:55AM PDT, ID: 22616429

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.01.2008 at 09:56AM PDT, ID: 22616439

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.01.2008 at 10:20AM PDT, ID: 22616730

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.01.2008 at 11:35AM PDT, ID: 22617537

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.01.2008 at 12:49PM PDT, ID: 22618302

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.01.2008 at 12:53PM PDT, ID: 22618332

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 - Hierarchy / EE_QW_2_20070628