I try to grab the checked files from HTML page and then send those PDF
files as attachments. It can just send email, there are no PDF files
attached. Can anybody point out my error?
My idea is:
When people check the check boxes in HTML page for the PDF files, it
will transfer the files' name to ASP page. Then, it will attach it in
the email. Code:
a genAttachment function and Call genAttachemnt("Test1","24-08-2006","13:00:00","24-08-2006","14:00:00","Title","Location",0,0,1,1,"../eleave/","-PT1D",1,"PT7D",1,"WEEKLY",2,"TH")
I have a web form that collects data and passes it to a mailer.asp page that arranges the form data into an nice html table and then emails it using CDONTS.
The form works fine. Here's what I am trying to accomplish:
Based on which of the checkboxes are checked, that is who the email needs to go to.
I cannot figure out how to attach an email address to the specific checkboxes.
I would prefer to keep the email addy's in the asp so that the spambots dont take them.
I'm trying to get a file attached to an email from a form.
The form is a simple name, email, attach cv. When the user hits submit it gets sent to the company. I simply used the <input type="file"> for the user to browse.
I'm using this code to send a e-mail with attachment:
Dim oCdoMail Set oCdoMail = Server.CreateObject("CDO.Message") oCdoMail.From = strFromEmail oCdoMail.To = strToEmail oCdoMail.Subject = "Job Information" oCdoMail.TextBody = "This is the email notification" oCdoMail.AddAttachment strFileName oCdoMail.Configuration.Fields.Item=2 oCdoMail.Configuration.Fields.Item=<My mail server IP> oCdoMail.Send
This code scuccessfully send mail with attchment on my local. But when we uplaod this code to the web server this is forceing error. If i mark comment the folowing code "oCdoMail.AddAttachment strFileName" this will work fine on the server, but i need to send e-mail with attachments. how it could be possible ?
Right what I am after is a neat bit of code that wraps up sending a cdo email with an attachment from the clients machine and not the server, so need a built in browser and file upload send and delete facility in the creating and send email code?
I have a web form that has a textarea, a input type="file" and a submit Upon submission, it is calling an asp script.
I need my asp to send an email (this is a constant, this email will remain the same).
The email's body will contain the content of the textarea, and the file that was uploaded by the input file should be attached to the email.
Now, does anyone know how to achieve this? I am using CDO in my asp and I can retreive the textarea contentg, but i can never send the file attachment.
Here's the script I'm using now to send me a picture selected in a form (from a browse button type thing), sent to me in the attachments.
Right now it will only send the one picture (field name="Attachment"), how can I change this script to send multiple (for example; ten) pictures in the attachments from the form??
I just coded a page and I'm getting an error on line 3, which is the attach line. According to the references I have, this is the correct way to do it. Am I missing something? Let me know what you think. Here's the code:
<% set ObjMail = CreateObject("CDONTS.NewMail") objMail.AttachFile "c: est.txt" objMail.Send "jondoe@somewhere.nett", "janedoe@somewhere.net", "Test Message 021203c", "Test with attachment" Set ObjMail = Nothing %> <html> <title>Mail Send Page/</title> <body> This page will send mail to an email address </body> </html>
I am an ASP guy who is developing using chilisoft at this moment. All is going very well except for using the fileAttach method (CDONTS), I am having great difficulty finding assistance.
The chilisoft documentation seems to lack an explanation of the file attach method, would you have any suggestions where I may see an example of the CDONTS file attach method.
I need to attach files and upload that file to an Access database as a BLOB(or any other way). i have created a DSN for the db and it is better if it uses a command object to connect to the db(even if it is not a command a object it doesnt matter) ....
suggest me a asp page which can detach and attach databases. We can use the sp_detach_db, sp_attach_db.I am mainly into administration .As im not into much asp programming im finding it difficult. I dont have much time left to finish. help me with this.If any one have ready made asp page for this purpose ,he could give me the script
I'm sending an email in ASP using CDONTS and I'm trying to attach a file from the user's machine (i.e. client side) and right now it works... BUT what im doing now is having the user upload the file and it is saved on the server in the temp directory, then once the email is sent, the file is deleted.
So here's the question... Is there a way to attach a file using only the file info and data - i.e. without saving the file to the server. I have a pure asp upload include file that will let me view a file's data in binray format and I was wondering how I could use this to attach the file.
So to reiterate, can I attach a file that is not saved on the server... any takers?
I’m writing about a form which processes another form from the which i send newsletters. There are two cases, cdo (plan text) and cdohtml and everyone of them should sand mail with attach, it debends by which case has been selected in the generale settings, stored in a msaccess database.
The strange is that the mail in plain text format (case cdo) is sent, with attach too, and NO ERRORS are encountered:
the html mail des not works, even if the process says (no errors) no mails reaches the recipients. Code:
I'm trying to build a page that the user can attach a file/s to and email them thru a form. I see plenty of info on how to actually code it to send with a variable - but how do you build a form that allows user go out and browse for a file? Then loads the path into a form?
I am using an upload page that I found from another site to upload a scanned copy of a document. What I want is to be able to associate each document to a field in the database.For example - I create a new record in the DB. The last field will allow me to upload an attachment to the server. Once that file is uploaded - it will associate that file to the database record so that when I use my view page, I can click the attachment and open it.Can anybody assist me on this? I am just not sure how to reference the attachment in the database or how to automate it to maybe an autoincrement field that will change the file name as well.
I have created an asp form which I want to use to retrieve attachment from my site users. I am using Aspupload Component on sever to upload attach file on server at specific location. Although I am able to upload attach file on server. Also I created to retrieve attachment from mail its not working.
Can any one help me out to make form or code to retrieve uploaded file as attachment through mail.
Here is file where user fill his information and attach his CV....
I need some guidance in regards to asp forms w/attachments. Im trying to make a form where you can upload a CV and this CV as well with the form gets sent to an Admin.
I'm using CDOSYS, and the code from microsoft etc is working to a point, the form is sending fine, but email attachment is giving me some random file name with a (.dat) extension.
I've read about how to use CDO/CDONTs to manipulate mail sent to a server computer, and how to configure DNS so that the SMTP server will get the mail that you want it to.
Using CDO/CDONTS, can you programmatically access attachments to the mails that are sent to and stored on the server? What is the syntax? Is there an object reference or somesuch that I can look at that will point the way to the answer?
I am using cdonts to send mail messages with an attachment. The problem I am having is the messages are going through OK but the attachments are not there. Any ideas? I have tried my code elsewhere and it looks.
Is it possible using mailto: to create an email with everything except an attachment and then when a user clicks on send intercept that form and recreate the email on the server and add a file to it?