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
Solved

.asp return email?

Posted on 2003-11-21
7
267 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
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

809 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