ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 17th, 2011, 12:08 AM
dariggy dariggy is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2009
Posts: 7 dariggy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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 _
& "&current_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

Reply With Quote
  #2  
Old February 17th, 2011, 09:25 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Jun 2003
Posts: 14,237 Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 4 Weeks 14 h 43 m 55 sec
Reputation Power: 4445
I've never used persits, but they have support that could probably help you out.

Why don't you just build the message body with the request variables inserted in the string?
__________________
======
Doug G
======
It is a truism of American politics that no man who can win an election deserves to. --Trevanian, from the novel Shibumi

Reply With Quote
  #3  
Old February 18th, 2011, 01:36 AM
dariggy dariggy is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2009
Posts: 7 dariggy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 24 m 11 sec
Reputation Power: 0
Quote:
Originally Posted by Doug G
I've never used persits, but they have support that could probably help you out.

Why don't you just build the message body with the request variables inserted in the string?


Doug,

Thanks for the response. I think you are on the right track. I can't use static text, it needs to be it's own form but like you mentioned, I can insert the info into the source code.

Thanks for taking the time to answer the question, you are always a great help.

Regards,
Steve

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > ASPEmail- Can I pass parameters using AppendBodyFromFile

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap