on 02-18-2009 4:53 PM
Hello Everybody,
I have a need to make subject of the e-mail descriptive for the recipient when I am sending and interactive form (in my case insert RFQ and Requisition Numbers). I have all required information in the body of the e-mail already, but not sure if it possible to pull some data from the form's input parameters into the subject of the e-mail when I setup my e-mail template.
Please advise,
Thanks,
Felix Rubinshtein
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is the code to be used (in JavaScript) when sending an e-Mail. Instead of putting text here, you can of course retrieve the values from data fields or textfields or w/ever ...
If it gets too confusing, make a variable using 'var tmp = "" + etc.' and collect everything you want in there before putting it in the submitForm.
event.target.submitForm({cURL:"mailto:em ail@i sp.co m?subject=Whatever subject you want&body=Whatever body text you want, or a variable for example",cSubmitAs:"PDF",cCharset:"utf-8"});
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your reply, but I am not exactly sure what you mean when you say "Java Script" .
We have a Guided Procedure Setup and the e-mail is being sent from "Callable Object for execution" and subject and body of the e-mail are being picked up from the e-mail template. Here is the HTML code that I used in the body of the e-mail and I am wondering if something similar can be used in the subject:
<html>
<head>
<title>Request for Quotation - TMMC</title>
</head>
<body>
<p> Please find attached RFQ
`{
writeln(ctxt.SubformRFQ.QuoteNo);
}
` for Purchase Requisition
`{
writeln(ctxt.SubformRFQ.Requisition);
}
` issued to
`{
writeln(ctxt.SubformTO.to2);
}
`(
`{
writeln(ctxt.SubformRFQ.SupplierCode);
}
`).
</p>
<p> Part Number
`{
writeln(ctxt.SubformQuotationData.partnumber);
}
`(
`{
writeln(ctxt.SubformQuotationData.description);
}
`).
</p>
<p>Best regards,</p>
<p><i>Purchasing Team</i></p>
</body>
</html>
Thanks,
Felix
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.