Solved

.asp return email?

Posted on 2003-11-21
7
280 Views
Last Modified: 2010-05-19
how do i creat a request for Request for Return Authorization in .asp coding????

please help!
0
Comment
Question by:ceuley
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
7 Comments
 
LVL 10

Expert Comment

by:D_M_D
ID: 9801120
Do you need to create a Request for Return Authorization form for users to fill-out?

if so here 's a good example of one...
http://www.coat.com/contact/epiphany2b.shtml

--------
D_M_D
0
 

Author Comment

by:ceuley
ID: 9801194
here is my current code:
its actually a email going to the customer with the values they given. it's an confirmation.
thanks,
------------------------------------------------------------------------------------------------------

<%
custno= request.Form("CUSTNO")
faxno= request.Form("FAXNO")
name= request.Form("NAME")
thedate= request.Form("THEDATE")
email= request.Form("EMAIL")
choice= request.Form("choice")
I1= request.Form("I1")
Q1= request.Form("Q1")
M1= request.Form("M1")
D1= request.Form("D1")
I2= request.Form("I2")
Q2= request.Form("Q2")
M2= request.Form("M2")
D2= request.Form("D2")
I3= request.Form("I3")
Q3= request.Form("Q3")
M3= request.Form("M3")
D3= request.Form("D3")
I4= request.Form("I4")
Q4= request.Form("Q4")
M4= request.Form("M4")
D4= request.Form("D4")
I5= request.Form("I5")
Q5= request.Form("Q5")
M5= request.Form("M5")
D5= request.Form("D5")


bodyCopy = "Request for Return Authorization"  & vbCrLf
bodyCopy = bodyCopy & vbCrLf
bodyCopy = bodyCopy & "This is a Request for Return on " & request("THEDATE")  & " for the following items:" & vbCrLf  & vbCrLf

bodyCopy = bodyCopy & "Invoice number: " & request("I1") & vbCrLf
bodyCopy = bodyCopy  & "Number to return: " & request("Q1")  & vbCrLf
bodyCopy = bodyCopy  & "Model number: " & request("M1") & 
bodyCopy = bodyCopy  & "Description: " & request("D1") & vbCrLf & vbCrLf & vbCrLf

if I2 <> "" then
bodyCopy = bodyCopy & "Invoice number: " & request("I2") & vbCrLf
bodyCopy = bodyCopy  & "Number to return: " & request("Q2")  & vbCrLf
bodyCopy = bodyCopy  & "Model number: " & request("M2") & 
bodyCopy = bodyCopy  & "Description: " & request("D2") & vbCrLf & vbCrLf & vbCrLf
end if

if I3 <> "" then
bodyCopy = bodyCopy & "Invoice number: " & request("I3") & vbCrLf
bodyCopy = bodyCopy  & "Number to return: " & request("Q3")  & vbCrLf
bodyCopy = bodyCopy  & "Model number: " & request("M3") & 
bodyCopy = bodyCopy  & "Description: " & request("D3") & vbCrLf & vbCrLf & vbCrLf
end if

if I4 <> "" then
bodyCopy = bodyCopy & "Invoice number: " & request("I4") & vbCrLf
bodyCopy = bodyCopy  & "Number to return: " & request("Q4")  & vbCrLf
bodyCopy = bodyCopy  & "Model number: " & request("M4")  & vbCrLf
bodyCopy = bodyCopy  & "Description: " & request("D4") & vbCrLf & vbCrLf & vbCrLf
end if

if I5 <> "" then
bodyCopy = bodyCopy & "Invoice number: " & request("I5") & vbCrLf
bodyCopy = bodyCopy  & "Number to return: " & request("Q5")  & vbCrLf
bodyCopy = bodyCopy  & "Model number: " & request("M5") & 
bodyCopy = bodyCopy  & "Description: " & request("D5") & vbCrLf & vbCrLf & vbCrLf
end if


bodyCopy = bodyCopy & "Name: " & request("NAME") & vbCrLf & vbCrLf
bodyCopy = bodyCopy & "Customer Number: "& request("CUSTNO") & vbCrLf & vbCrLf
bodyCopy = bodyCopy & "Email: " & request("EMAIL") & vbCrLf

Dim objMail
Set objMail = Server.CreateObject("CDONTS.NewMail")

objMail.From = "charles_euley@yahoo.com"
objMail.Subject = "Request for Return Authorization"
objMail.To = EMAIL
objMail.cc = "charles_euley@yahoo.com"
objMail.Body = bodyCopy

objMail.Send
set objMail = nothing
%>
0
 
LVL 10

Expert Comment

by:D_M_D
ID: 9801378
Here's what I use

dim objEMail
set objEMail = Server.CreateObject("CDONTS.NewMail")
objEMail.To = EMAIL
objEMail.From = "charles_euley@yahoo.com"
objEMail.subject = "Request for Return Authorization"
objEMail.body = bodyCopy
objEmail.BodyFormat = 0
objEmail.MailFormat = 0
objEMail.send
set objEMail = nothing

Hope this helps

--------
D_M_D




--------
D_M_D
0
 
LVL 10

Accepted Solution

by:
D_M_D earned 125 total points
ID: 9801390
0

Featured Post

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Introduction to Processes

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question