Sending Attachment With Mail
I use the following code to attach a file to my mail
Dim objMail
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.From = Request("email")
objMail.Subject = "subject"objMail.AttachFile Server.MapPath("./Uploads/"&file_name)
objMail.To = "xyz@xyz.com"
objMail.MailFormat = 0
objMail.BodyFormat = 0
strBody="hai"
objMail.Body = strBody
objMail.Send
I attach files from the folder uploads which r uploaded there by the user. The problem is that when i recieve the attachment i get a .dat extension with it for eg ;if i attach a.txt i recieve a.txt.dat....
View Replies
ADVERTISEMENT
I have problem sending attachment (word document) using JMail. Here is my asp file: Code:
View Replies
View Related
I'm using ASP to generate an e-mail with attached files and send them out to
clients. Typically, when we send out e-mail through our mail server, there
is a disclaimer that is auto appended to the end of our e-mails. I don't
know how this is set up (not a network guy and a relatively new employee).
For some reason, this disclaimer is attached as a text file to any e-mails
that I send programmatically. Any idea what's causing this or how to solve
this problem?
View Replies
View Related
Does anyone know of a product that would allow me to create a PDF from an ASP page on the fly, but instead of displaying the PDF to the user, simply write the PDF to a file?
(My goal is to subsequently pick up the PDF and attach it to an e-mail to the user.)
I�ve been unable to find a product that can achieve this.
View Replies
View Related
I want to create a form with Fields of Name/ Email ID/ Comments/ and Attachment.I want to receive mail with single attachment through that form.Is anybody have an idea how to create such ASP code form.
View Replies
View Related
Im using CDO to send a message. This message includes an attachment file which the user locates on their system system using a browse button. The location of this file is then stored in a variable which is later called upon when it comes to sending the email.
The problem is that instead of trying of attaching the file from the clients computer, it checks for the file on the server........ I was wondering if there was an equiv to the server.mappath which i could use in this instance? Code:
View Replies
View Related
I'm trying to send out emails but the body of it keeps sending as an attachment so with some email services, such as yahoo, puts the email into the bulk mail. I was wondering if there was a way to stop it from sending the body as an attachment.
View Replies
View Related
I am trying to send an email attachment using an asp VBscript from a .asp form. The script appears to be working fine however no email comes through to the recipient. I have tried the script without the attachment and it works fine. Code:
View Replies
View Related
how to create a form with attachments?
View Replies
View Related
I have an ASP script that send mail to recipients:
inside it have:
1. link to a document stored on my server
2. same document as attachment
Problem:
sometimes the when you try to open the attachment it opens as gebberesh, and word ask you to choose encoding (offcourse no encoding fits).
In the same time when you try to open this document via link to a server it opens fine....
View Replies
View Related
I just need a form that sends to an email address and sends an attachment.
1. I have tried php: matt wrights script and jacks form mail.
(set to multipart form data: they send the mail, but still dont send the form attachment.)
2. I have tried using pure asp upload and the cdont mail object.
and that wont work with the imail smtp. ( i think I need to use cdo's or .net?)
If anyone has a form with attachment script that works with iis and imail email server.
View Replies
View Related
Can anyone get me started or point me to a resource for some help?
I have an ASP page that displays various boxes, tables, and information. I want to be able to click an "Email" button and have the asp page save the page as an attachment (html?) and then launch Outlook and automatically attach the page to it and enter the email address of the person I want to send it to.
I can't just send a link because the page is generated on an Intranet and I need to send it to people outside the network. So, I need to save a print screen of the page and then have Outlook grab that and the recipient's email address and put those into Outlook so the sender can review and send out.
View Replies
View Related
I'm using CDO SYS to send email messages. I can attach a file just fine.
However, I need to attach an HTML page that's generated on the fly by my
ASP code. The attachment source code gets assembled into a VB string. How
do I attach this? I think there was an easy way in CDONTS but that's no
longer an option.
View Replies
View Related
Here's the scenario. I'm currently using cdosys/asp to send mail to
our SMTP server. We use a product called MailFilter to check for SPAM.
It doesn't work very well. If MailFilter isn't working cdosys also has
problems and emails don't get sent. As these email are confirmations
for customer's bookings this means lots of customers calling to see
where their confirmation emails have gone. The root of the problem is
MailFilter but that here to stay. So I had this thought of sending the
message to a queue of some sort so at least they will get to the
customer eventually rather than being lost for good. So here's the
question:
Can I/How do I send messages to a mailbox on our exchange server using
cdo.message?
View Replies
View Related
How I send e-mail with attachement image. I send e-mail with cdo.message. but I have deffiecult to send attachment image.
Here is my code: ....
View Replies
View Related
<FORM id=FORM1 name=FORM1 action=Upload.asp method=post
encType=multipart/form-data>
File 1:<INPUT type=file name=FILE1>
Description 1:<INPUT name=DESCR1><BR>
<INPUT type=submit value=Upload!>
</FORM>
How to attach the file selected in Input type=file .
how to attach that file & send mail using CDO in ASP..
View Replies
View Related
How I send e-mail with attachment image. I have made 2 file test.asp and test1.asp
test.asp called test1.asp en attachement 2 images. It does not work because the attachment image.
How I can solve this problem. herewith my code (test.asp and test1.asp) ....
View Replies
View Related
I have already made the form to save itself in an online database. I need to mail it to myself too, what do you recommend me to do?
Some people recommended me ASPEmail, but I didnt understood how to make it works....
View Replies
View Related
I' m using opertion system XP PRO,i have instelled the IIs 5.1. im trying to simulate sending email to my outlook express but it'snt working,somebody can tell me if i need to install any other componente?
how to conigurate my smtp(what is my host name,how can i find it)?
I dont want to use external component.
View Replies
View Related
i use a personal web server and i'd like to send a mail into an ASP page.
Usually, i use CDONT component but it seems it does not work on Personal Web
Server.
Could anyone tell me what i could use instead?
View Replies
View Related
Our server is a Windows 2000 Server with Service Pack 3, IIS 5 with Lockdown
Wizard applied.
My first problem is related to CDONTS.NewMail.
Up until recently, I had no problems sending e-mail with this little
utility. Our current development efforts are moving to .NET so it didn't
matter to us that this is something that won't be supported anymore by MS.
However, while we are in the process of flipping to .NET, this is something
we're still using for the time being.
The problem I'm having is that the e-mail is not getting sent at all! I
don't get any errors or anything like that, and when I look at our IIS 4
relaying SMTP mail server, and then look at our big outgoing mail server, I
can't find the e-mail anywhere in there. It's like it vanishes. Can anyone
give any insights?
Secondly, we have an older Access based training application that again, up
until recently was working just fine. I don't know if the IIS lockdown
wizard did something I'm not aware of, but now on the line in the ASP file
where the server goes to open the database using the DSN, I get an
"Unspecified Error"
I checked www.aspfaq.com and found the article about this and tried all of
the tricks mentioned there for this error message. Granting the
IUSR_machinename account read/write access toe the TEMP directory got me
further into the file, but it didn't get me far enough to finish it because
later on in the file, when the server goes to open another connectio nthe
the database, I get he same problem. I cannot modify the source code on
this page without killing our support contract or warranty on the product.
Can anyone give me any thoughts on this one?
View Replies
View Related
I am trying to send an email from ASP and get the following error
jmail.Message error '8000ffff'
The message was undeliverable. All servers failed to receive the message
/accountDetails2.asp, line 73
My code lookd like: Line 73 is Code:
View Replies
View Related
I am using CDONTS to send a mail.There is no error in the code and it says that the mail has been send successfully,But i am not receiving any mails .The Code
Set vobjMail = CreateObject("CDO.Message")
vobjMail.From= Email address
vobjMail.To= Email address
vobjMail.Subject= The subject
vobjMail.TextBody= The Body
vobjMail.Send
set vobjMail=nothing
View Replies
View Related
i m developing EMail sending application but i m failed plz send me html,asp form email page that i can complete my work (Codnts,aspmailer,aspmail)
View Replies
View Related
I would like to know if this can be achieved! On the form I a drop down menu that's called ("Escalation_type") the values are eta, hdtv, and supervisors. I have some ideas but I am not sure if it will work or not. If the use chooses an eta as a value I would like it to be sent a mailbox for exam: no@where.com. If they choose hdtv as value I would like it to be sent to a different mailbox. Can this be achieve by using the case statement or the if statement?
View Replies
View Related
I'm working on a few intranet pages and have a doubt on how to send e-mails ( i have the aspemail component installed) to outside clients including the invoice for services payment.So differently from Intranet issues where you easily provide a link embeedded on the e-mail, I can't figure how to show the info from outside offices network.
Does anyone knows how to do it? perhaps printingscreen the html page by code and then send to the client as a embedded image or something....?
View Replies
View Related
I am usually a CDONTS man but the hosting company say I must use CDOSYS. The following code seems to only work correctly when the recipients email address is the same as the sender address.
I have tried to send the email to Hotmail, Yahoo and GMail accounts and it does not send. No error messages, just is not received in the inbox of the account.....
View Replies
View Related
I'm trying to send mail from my ASP page using CDO, but when I execute the query no mail is sent. How do I set up my internet incoming mail server and outgoing SMTP server?
Here is the code: .....
View Replies
View Related
I'm having a few problems sending an email using CDO from a webpage , just wondered if anyone knew what the error message i'm getting could mean , and if the code i'm using looks ok.
Set ObjMail = Server.CreateObject("CDO.Message")
Set iConf = CreateObject("CDO.Configuration")
Set Flds = iConf.Fields .....
View Replies
View Related
HiI'm using ASP 3 and I send mail with CDONTS.NewMail or CDO.Message.
If my mail contains some html code with images like <img src="URL">, OE blocks image's visualization.
If i want to avoid this, when i send my mail from OE i flag "send images with message" option.
How can i realize this when i send the mail with ASP?
View Replies
View Related
I tried to cend mails with CDONTS.NewMail and the local smtp service of the iis. It works. BUT I tried to send a mail to a invalid address. I got an email (like I configured at the smtp) but the badmail directory is allready empty! I nned the entries for a bounce-management!
View Replies
View Related
I am learning ASP.NET , I want to send mail from my application so I need to configure IIS.I have written code for it but my mail is in Queue or Droped. I think I have not configured IIS properly.Can anyone tell me in detail how to configure it.
View Replies
View Related
I would like to send batch e-mail from fields in multiple records.
View Replies
View Related