This is a discussion on "Adding Attachments with JMail" within the Classic ASP section. This forum, and the thread "Adding Attachments with JMail are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Adding Attachments with JMail
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Adding Attachments with JMail
Okay,
Here’s the problem. I’m creating an application that uses JMail to send email. And it works great!! as longs as I don’t try to add an attachment. However, I really need to have my users be able to add attachments; otherwise the purpose of this application is null and void. I know that the file that is attached needs to be uploaded to a file share folder via FTP then encoded before being sent. My problem is that I don’t know how to code it. This is the JMail code that I am working with: I need some help in getting the code other than (Jmail.addAttachment) for adding the attachment. Can someone please help ? Dim Jmail Set JMail = Server.CreateObject("JMail.SMTPMail") JMail.ServerAddress = "MAILSERVER" Jmail.AddRecipient("CylPriceList@parker.com") Jmail.AddRecipient("wrattliffe@parker.com") Jmail.Sender = Session("CustEmail") Jmail.SenderName ="Quote Requestor" Jmail.Subject = "Quote Request" Jmail.Priority = 1 Jmail.Body = MailBody JMail.AddAttachment("filename") Jmail.Silent = false Jmail.Execute |
|
|
|
#2
|
|||
|
|||
|
Re: Adding Attachments with JMail
I beleive you are going to need to go and get an upload component because that is where your problem resides. If you are not trying to upload files then the JMail.AddAttachment would be:
JMail.AddAttachment ("Path to file located on the webserver") |
|
#3
|
|||
|
|||
|
Re: Adding Attachments with JMail
Quote:
Wanda |
|
#4
|
|||
|
|||
|
Re: Adding Attachments with JMail
www.aspin.com search for upload
|
|
#5
|
||||
|
||||
|
Re: Adding Attachments with JMail
To be honest, I would go for a pure ASP file upload, negating the need for any third party objects. Obviously however, if your server already has an upload object, then use that as it's compiled, and hence quicker.
Most hosts however wont install COM objects over and above what they initially offer..... so better check with them before buying anything. My advice is to ask them if they already have an upload component and take it from there. If all else fails, then a Pure ASP Upload class could be dug out of the closet for you, I'm sure.
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#6
|
|||
|
|||
|
Re: Adding Attachments with JMail
Quote:
I have found the code for a Pure ASP UpLoad, but I'm having a problem integrating the code into my application. Do you think you'd be able to guide in the right direction if I provided you with my code |
|
#7
|
||||
|
||||
|
Re: Adding Attachments with JMail
Well, just let us know exactly what upload script you are using, and what part you are having trouble with....
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#8
|
|||
|
|||
|
Re: Adding Attachments with JMail
Quote:
I'm back and here is the situation... I am using Pure ASP Upload 2.2.1 which is a dreamweaver extension. I've got the code inserted where it should be...but I keep getting the error message "Cannot call BinaryRead after using Request.Form collection". I know that I need to use the ObjUploadRequest in place of Request.form and only after the upload executes. However, I do not know where to add the code...I'm attaching the code. I hope you can help me. Thanks in advance I've attached the code for the form I'm trying to add the code to... Maybe it would be easier if I just created a popup box that is used to upload and after the files are uploaded it returns to the verification page to submit? Does that sound do-able? Hi Rob, Are you able to help me? Last edited by wacara; May 23rd, 2006 at 16:01. |
|
#9
|
|||
|
|||
|
Quote:
I'm using 20/20 Applications Pure-ASP Upload. It works great as far as uploading the files to my server. Now I have another question. Can you tell me how to attach the file from my server to the email. What I need to happen is when a user attaches a file, the files is uploaded to the server and then when they click on finish the email is sent with the file attached to it. I'm using the JMail funcion.
|
![]() |
| Tags |
| adding, attachments, jmail |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem sending Multiple Attachments w/Email | wacara | Classic ASP | 0 | Aug 9th, 2007 19:50 |
| jmail for dummie's | frankc | PHP Forum | 1 | Jun 13th, 2007 20:01 |
| JMail | ClaireB | Classic ASP | 9 | Sep 12th, 2005 12:02 |