Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Sending Jmail Multiple Attachments
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Leeman
Starting Member

United Kingdom
3 Posts

Posted - 03 May 2001 :  09:10:13  Show Profile  Send Leeman an ICQ Message
I've just about completed this except for a few details that I will need help with. I want to send files ordered with the confirmation Email of my cart.

This is a line for attachments added to the email.asp file: (I'm using Jmail)
---------------------------------
JMail.AddAttachment attachment
---------------------------------

Here is the email part in the process.asp file:
(See parts relating to attachment=)


---------------------------------
' In order to send an email confirmation, we need to build up the message body containing

' the items and quantity of the order

bodyitems=""

attachment=""
emailtotal=0

'Next we need to store each of the items

for i=lbound(acart) to ubound(acart)

if acart(i,0)<>"" and acart(i,1)<>"" then

'Look up price per unit

set rsprice=db.execute("select price,saleprice,name,serialno from products where

productid=" & acart(i,0))

if rsprice.eof then

response.redirect("error.asp?msg=" & Server.URLEncode("We are

unable to process your request at present."))

end if

if rsprice("saleprice")="" or rsprice("saleprice")=0 then

currentprice=rsprice("price")

else

currentprice=rsprice("saleprice")

end if


attachment=attachment &

"D:\ABSOLUTEPATH\xgfiles\" & rsprice("serialno") & extension


bodyitems=bodyitems & acart(i,1) & " " & rsprice("name") & " " &

chr(13)


grandtotal=session("grandtotal")

------------------------------------------
Sending 1 file is not a problem

Getting this error...
jmail.SMTPMail error '8000ffff'

Cannot open file D:\ABSOLUTEPATH\xgfiles\M155.midD:\ABSOLUTEPATH\xgfiles\403117.mid

/miditracks/email.asp, line 13


How do you seperate the files (commas, semicolons) I don't think you can send multiple files within the same line. If you can then the rest is easy.

If not, some sort of loop will have to be setup in the email.asp file to send each file ordered. Or perhaps take the attachment statement out of the email.asp file and incorporate it into the process.asp near the attachment section.

And that's where I'm stuck.

Any help or ideas.......
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.27 seconds. Powered By: Snitz Forums 2000 Version 3.4.07