Can Not Send Attachment With CDONTS
Set mail = Server.CreateObject("CDONTS.Newmail")
mail.From = janki@yahoo.co.in
mail.To = sender@yahoo.com
mail.Subject = "Subject"
mail.Body = "newsletter"
mail.AttachFile = "C: est.zip"
mail.BodyFormat = 0 'CdoBodyFormatHTML
mail.Send
Set mail = Nothing
this code is not working please help.....
View Replies
ADVERTISEMENT
Can someone give me some sample code to use CDONTS.new to send email with an attachment?
I've got sample code from the following website;
http://msdn.microsoft.com/library/e...sp?frame=true
But, I'm having trouble GETTING the relevant field from my HTML form! I can't seem to be able to get the field property. It just comes up as a blank.
View Replies
View Related
I am trying to get a asp-mailer setup that will send a specified attachment.
I have tried both CDONTS and CDOSYS methods ... both are giving me headaches.
And the best part is how incredibly helpful the error is: (Sarcasm Intended)
Error Type:
(0x80004005)
Unspecified error <-- They should change that error to ... "Good Luck!"
/knowledgetree/emailer-drivers.asp, line 90
I hilighted the above line in the code as well.
Here is the code I am working with: Code:
View Replies
View Related
I'm using godaddy ASP hosting and i have no permission to create files on disk from asp script.I need to generate excel file and send it via email in asp page.I'm sending email using CDONTS
All examples,i've found in internet, show how to attach to the email file from disk.In documentation for CDONTS told, that there is possibility to attach to the email data from IStream object.how can i implement this?
View Replies
View Related
i am trying to create a simple page where a users can browse a file and send it through CDO. I can get the email to send fine with the body and subject but when it comes to figuring out the attachment bit, I'm lost! Here is the code i am using, please can someone point me in the write direction. Code:
View Replies
View Related
how to restrict email attachment file type as well as file size? If anybody has idea about it.?
View Replies
View Related
<%
Set theMail = server.CreateObject("CDONTS.NewMail")
theMail.From = "user -at- domain -dot- com"
theMail.To = "user -at- domain -dot- com"
theMail.Subject = "Requested Form"
theMail.AttachFile
("http://www.microsoft.com/library/toolbar/3.0/images/banners/ms_masthead_ltr.gif")
theMail.Body = "My email body"
theMail.Send
Set theMail = nothing
%>
That doesn't work :) Is that even possible?
View Replies
View Related
I am using CDONTS to send email from an ASP script.
Attached to each of these emails is a 34K PDF file. 90% of the time the file arrives intact. 10% of the time, however, users are unable to open the file.
It appears that users using some sort of webmail recieve an improperly decoded version of the file where as users of POP3 non-web email clients (e.g. Outlook) generally recieve the file intact.
Thus far, all users reporting errors have up-to-date versions of Adobe Reader and are able to read the PDF file if I resend it from my desktop out of Outlook.
I have tried to open the files some users have reported problems with (after they forward me the copy they received) and I have the same problem. The file size on the PDF that could not be opened had grown to 47K.
Code is pasted below ....
View Replies
View Related
i need 2 files html as well as asp forms. pls help me with working code.
View Replies
View Related
how can i send reports of different client as email attachment.i've database in which the records of every client. the thing i want to do is the records of client send as email attacment in excel format or any other format.am using Access Database with Classsic ASP.
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
Can any one give some ASP code to send an email with attachment.
View Replies
View Related
Im trying to get a CDO email sent from a form submittal with an attachment which has been just uploaded with aspupload.
Everything goes ok, the file uploads when the form is submitted and I have verified this in the upload folder. It all goes pear shaped when I try to code in the CDO object. I get this error:
Error Type:
Microsoft VBScript runtime (0x800A01A8)
Object required: ''
/profilescreative/jobapplication2.asp, line 63
and in my code its at this point:.....
View Replies
View Related
I want to send email with attachment. I have no problem if the file is located on the same server but i got error when attach file from different server. This is the code,
set mail=server.CreateObject("persits.mailsender")
mail.host="smtp.mydomain.com"
.....
'mail.addattachment "c:attach est.txt" ' no problem with this
mail.addattachment "websvrattach est.txt"
.......
mail.send
I got this error,
"Persits.MailSender.4 error '800a0007'
Logon failure: unknown user name or bad password."
when i changed the servername to static ip address also got the same error.
any idea? fyi, this user has an administrator rights to the server.
View Replies
View Related
I did a working code with CDONTS on NT4 Now I am testing is on w2k and it looks like objCDONTS.Send is completely ignored.
I think is it ignored because it throws no errors, neither does the rest of
the code setting:
objCDONTS=Server.CreateObject("CDONTS.NewMail") and then manipulating its
properties.
Do I need to somehow set IIS5 to make objCDONTS. Send work?
View Replies
View Related
I have a page that sends user comments with CDONTS, works fine.Until I put a URL (http://192.168.0.1).If I use http://domain.com it works fine.Why with the numeric URL, CDONTS does not send the mail?
View Replies
View Related
Can somebody tell me, How can we send e-Mails with ASP without using CDONTS?
Because some one told me that, it's possible to send e-Mails without using CDONTS. But i don't know how.
View Replies
View Related
I had to write a page in ASP which sends an email. I googled and was able to write the following code:
<html>
<body>
<%
Set Mail = Server.CreateObject("CDONTS.NewMail")
Mail.To = "XXXXXXXXXXXX@XXXXXX.COM"
Mail.From = "YYYYYYYYY@YYYYY.COM"
Mail.Subject = "Test MAIL Subject"
Mail.Body = " Body Body Body Body Body Bodyody Body Body"
If Mail.Send Then
Response.Write("Mail has been sent successfully")
Else
Response.Write("Mail Sending Failed")
End If
Set Mail = nothing
%>
</body>
</html>
When I run this script on a shared hosting server, It's saying "Mail
Sending Failed". I had never written ASP code before and couldn't find
what the reason is.. I also checked whether CDONTS.NewMail component
is available.
View Replies
View Related
I've tried to send a mail using CDONTS.DLL but the mail goes in to
C:InetpubmailrootQueue"
Here is my code
Dim Mailer
Set Mailer = Server.CreateObject("CDONTS.NewMail")
Mailer.To = "testemail@hotmail.com"
Mailer.From = "expediteur@email.com"
Mailer.Subject = "Titre du message"
Mailer.Body = "Le texte qui sera envoyé"
Mailer.Importance = 0
Mailer.BodyFormat = 0
Mailer.MailFormat = 0
if not Mailer.Send then
response.write ("mail envoye")
else
response.write ("Mail non envoyé. Erreur : ") & Err.Description
end if
Set Mailer = Nothing
I work with win xp pro, do can I use CDONTS or CDO?
I work on local (the webserver is located:C:Inetpubwwwroot)
View Replies
View Related
I just found out that CDONTS was indeed installed on our web server so I've been playing around with some easy sample codes. However, when I run the code, nothing happens. I get no errors, it seems like everything went OK, but no email! Are there firewall issues with CDONTS? If so, how can I work around them?
View Replies
View Related
I'm not sure if CDONTS is loaded or what is wrong. On a new 2003 Web server w/FP extentions but mail is not being sent. In and ASP page I have:
set objSendMail = CreateObject("CDONTS.NewMail")
Which worked fine when I was using an NT 4 and IIS 4 or 5
View Replies
View Related
I am running the following script for sending e-mail thro web
Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
objCDOMail.From = "vkumar@ugs.com"
objCDOMail.To = "vkumar@ugs.com"
objCDOMail.Subject = "Library books"
objCDOMail.BodyFormat = 0
objCDOMail.MailFormat = 0
objCDOMail.Body = "hi"
objCDOMail.Send
Set objCDOMail = Nothing
-------------------------
I get the following error, when I call send method of CDONTS.NewMail object
---------------------
Microsoft VBScript runtime error '800a0046'
Permission denied
/cae/library/issueupdate.asp, line 61
----------------------------
I tried both the following. Everything looks fine. My OS is windows200
server
http://support.microsoft.com/defaul...kb;en-us;286301
http://support.microsoft.com/defaul...kb;en-us;197619
Can somebody give a clue, what is going wrong....
View Replies
View Related
I'm not new about send email with CDONTS. But one thing I don't
know.. How to send name of email sender with email. As All command
I used to use is as follow.
Dim myMail
Set myMail = CreateObject("CDONTS.NewMail")
myMail.From="tom@hotmail.com"
myMail.To="paul@hotmail.com"
myMail.Subject="Hello :-)"
myMail.BodyFormat=0
myMail.MailFormat=0
myMail.Body=HTML
myMail.Send
when the reciever recieve email. Such as in hotmail box. It will show
tom@hotmail.com as sender. But I want it to show name such as
...Tom Hariton not tom@hotmail.com But I don't know that command
to add in the script.
View Replies
View Related
i am devloping a carrer page. i want 2 give the facility 2 user to upload the resume and send to the mail id. for example in yahoo mail. one can attach resume and send to the desired id. i want to do it in cdonts. so can anybody help me?????
View Replies
View Related
i have create a web pages which is a register form for customer, and then when the customer fill up the form and click submit, it will send a mail to the customer for comfirmation. below is the coding i use: Code:
View Replies
View Related
I am trying to send and hyperlink thru my CDONTS email, does anybody know how to send hyperlink in CDONTS email,
View Replies
View Related
I put the following code into my mailer: Code:
if objIndexMail.Send then
Response.Write("Mail Sent")
else
Response.Write("Failure. ")
end if
and it's coming up as Failure every time. Is there a way I can see the status of the .Send command, and why it came up as a failure? no errors are being generated, it's just not sending..
View Replies
View Related
I know this question is stupid. But i need some advice for this. I
am trying to develop a website, which will allow the user send to order form
to the admin email. I am planning to use the CDONTS component method.
Can I just to localhost server to test, whether the form can be send
up to the admin's email. Or I must have the Hosting server to do that. Can
Anyone suggest me, how to I test my scripts can be successfully run (at
localhost), before I host it on the Web Servers.
View Replies
View Related
Is there a way to determin if the email message was sent? I have a numnber of applications that use CDONTS to send mail from both ASP and ASPX pages. If the server is down mail does not get sent. I do not see a way to determine this by code. Does anyone know of a way?
View Replies
View Related
I'm having no luck sending an email message from an asp page with UTF-8 encoding so that Japanese characters can be correctly rendered.
View Replies
View Related
When I use CDONTS on a Win2k iis5 server, I do not always get the mail that the form is sending to me (sometimes it ends up in the badmail folder but then I get the message undeliverable mail from the server?) The problem is not consistent, so it is rather baffling.
Secondly, I can't seem to send to some linux based mailservers, It just absolutely refuses to deliver the mail (and oddly enough, also not to hotmail.com addresses), and then lastly,
Is there any way to force CDONTS to use a different smtp server (can you assign a new/other server to handle the mail?)
View Replies
View Related