
February 17th, 2011, 12:08 AM
|
|
Registered User
|
|
Join Date: Feb 2009
Posts: 7
Time spent in forums: 2 h 24 m 11 sec
Reputation Power: 0
|
|
|
ASPEmail- Can I pass parameters using AppendBodyFromFile
I have an application where I need to email an order confirmation to the customer. I use Persits ASPMail for basic emails and in this case, I want to use the # AppendBodyFromFile method to send my standard Order Confirmation. It is an ASP form with VB script that connects to an SQL Server 2008 table to pull the order info.
Problem is, I need to pass the parameters of Customer Number and Order Number to the Order Confirmation. I can't use session variables to pass the info since the email is no longer associated with this session. So, I thought I would do so via URL Parameters such as:
strBodyPath = Server.MapPath(".") & "\Order_Confirmation.asp"
?Login_Contact_ID=" & Customer_Contact_ID _
& "&client_id=" & client_id _
& "&role=" & role _
& "¤t_emailer=" & allocation_code
Mail.AppendBodyFromFile strBodyPath
Mail.Send ' send message
However, it seems like you are not allowed to pass params in ASPMail. Since there are thousands of applications that are emailing order confirmations, there must be a method to passing along necessary info to the email form but I am at a loss how to do so. Please help.
Regards,
Steve
|