How To Send CDONTS Or CDOSYS Email With Specified Attachment?
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 Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
How Do I Use CDONTS.new To Send An Email With Attachment?
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.
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.....
Get .Send Status In CDONTS Or CDOSYS
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..
Send CDO Email With Attachment Uploaded With Aspupload
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:.....
CDONTS Or CDOSYS UTF-8 Email
I have a form that needs to handle international characters withing the UTF-8 character set. I have tried all the recommended strategies for getting utf-8 characters from form input to email message and I cannot get it to work. I need to stay with classic asp for this. Here are some things I tried: 'CDONTS Call msg.SetLocaleIDs(65001) 'CDOSYS msg.HTMLBodyPart.Charset = "utf-8" I included the following meta tag in the email HTML: <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> I also tried modifying the CharSet and CodePage of all involved Request and Responses. I was able to Response.Write the form content on post back to the screen and it was properly rendered. However, none of my efforts can get the email to render with the correct codebase. I have tried opening the email in Outlook and Thunderbird. Neither one picks up on the UTF-8 charset meta tag.
Problem When Send Email With Attachment From Diff. Server.
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.
Changing CDONTS Email Form To CDOSYS
i recently finished a tutorial on cdonts and finished putting together the page and form etc. now ive been reading and it seems cdonts is being discontinued and cdosys is taking over. does this mean that my cdonts will not work and i have to trnasfer it to cdosys ? how can i transfer it to cdosys ? or do i have to make a completely new mail script? Code: ....
Use CDOSYS To Send Email On Different Server
I've set up a website contact page which uses CDOSYS to send form details to an email address. However, the domain is set up such as the client is using their own mail server, and using my server only to host the website. Ordinarily I would set up hosting with email and change the nameservers of the domain to point to my server, but in this case the client is keeping the nameserver details the same, but just updating the A record to point to my server to display the website. Trouble is, the CDOSYS email doesn't seem to work with this set-up. Do I need to hard code their mail server IP somewhere to get it to work?
Using CDOSYS And The SMTP Service To Send Email
I am running Win XP and have installed the IIS SMTP service, however I'm not sure what I need to do to configure both the SMTP service and CDOSYS properly to allow me to send out email from an ASP script. THE PROBLEM: What is happening is the email is not sent and goes to the 'c:InetpubmailrootQueue' folder. I have checked the event viewer and the error I receive is: Message delivery to the remote domain 'yahoo.com' failed for the following reason: The remote server did not respond to a connection attempt. I believe the SMTP service isn't setup correctly or I haven't configured CDOSYS properly in my ASP script. The CDOSYS part of my ASP script is setup as follows (I am using Javascript with ASP btw): Code: .....
How Can We Send Email With Links And Images By Using CDOSYS?
I have a CDOSYS mail and it's working ok but it sends plain text massage. But i want to send with images and links. But when i put a link with image in the .HTMLBody field like <a href="http://www.mysite.com/"><img src="file:///C:/My Documents/image.gif" border="0"></a> so, i got an error message. Microsoft VBScript compilation error '800a0401' Expected end of statement /cdo/cdosys.asp, line 41 .....
Cdonts Email Script Won't Send Email
i used the following script but it won't send the email. any suggestions why? <% Dim TBdy Dim MyCDO CR = Chr(13) Set MyCDO = Server.CreateObject("CDONTS.NewMail") MyCDO.From = "person@something.org" MyCDO.To = "allstar@aol.com" MyCDO.Subject = "collegebound info" TBdy = Request.Form("cb_name") MyCDO.Body = TBdy MyCDO.Importance = 1 (Normal) MyCDO.Send Set MyCDO = nothing %>
Send Email With Cdonts
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)
How To Send Name Of Email Sender Using CDONTS.
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.
Cdonts Attachment
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?
CDONTS Attachment To External Image
<% 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?
CDONTS - PDF Attachment / Decoding Problem
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 ....
Send Db Records As Attachment
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.
How To Send Attachment Using ASP Mail - CDO Object
<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..
How I Send E-mail With Attachment Image
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) ....
CDONTS To CDOSYS
I have an email script that used to work but now doesn't, my web host told me I have to use CDOSYS instead of CDONTS.If it's not to much trouble could someone look at my script below and make it CDOSYS compliant.Thanks <%@LANGUAGE="VBSCRIPT"%> <% Dim usxCDO Set usxCDO = Server.CreateObject("CDONTS.NewMail") usxCDO.From = cStr(Request("email")) usxCDO.To = "someone@somewhere.com" usxCDO.Subject = "Subscription To Magazine" usxCDO.Body = Chr(13) & Chr(10) &_ "Name: " & cStr(Request("name")) & Chr(13) & Chr(10) &_ "Company: " & cStr(Request("company")) & Chr(13) & Chr(10) &_ "Email: " & cStr(Request("email")) & Chr(13) & Chr(10) &_ "Instructions: " & cStr(Request("instructions")) & Chr(13) & Chr(10) &_ "A SUBSCRIPTION ORDER HAS BEEN PLACED." If (cStr(Request("Submit")) <> "") Then
Cdonts To Cdosys
I'm trying to convert this code and after several attempts at tutorials I am still scratching my head I am using XP pro IIS Dim objCDO Set objCDO = Server.CreateObject("CDONTS.NewMail") body = body & " Your username is: " & user & vbCrLf body = body & " Your password is: " & PasswordTemp & vbCrLf objCDO.To = email objCDO.From = "user@wherever.com" objCDO.Subject = "hello" objCDO.Body = body objCDO.Send
CDONTS, CDOSYS & JMail
I've been searching high and low for a decent comparitive analysis of the various e-mail components for IIS (specifically for use with ASP). Here are a few that are pretty common: ASPMail - I've been using this, but it seems that if the SMTP server is backed up, it slows down ASP page that submits the mail, apparently because this version does NOT provide message queuing ASPQMail - This component provides the queuing options, which theoretically would avoid ASP slowdown when the SMTP server backs up. Unfortunately my host doesn't offer this component. CDONTS - Comes with IIS, so widely supported CDOSYS - Comes with IIS 5 & later JMail - A free component, also widely used. Documentation is poorly translated into English and difficult to follow. Putting aside the fact that every web host supports a different set of mail components and "your mileage may vary"... What is the best-performing solution?
CDOSYS And CDONTS Quirks
When using CDOSYS, if an email address contains a hyphen(-) prior to the @ sign, the form will fail. Can anyone reading this who uses CDOSYS test this same scenario in their environment? I wonder if this is a CDOSYS issue, or something specific to my situation. When using CDONTS, we can only send to email addresses that are internal to our company. For example, any emails addressed to(E-Mail address blocked: See forum rules) go through fine. For all non widgetsRus email addresses, such as Internet addresses, the form submits but the delivery never occurs and so failure messages are returned. This single form has been setup on two servers, on the one server it works fine and can be sent to non widgetsRus recipients. The same form on a different server does not. I know it's not the code so I'm wondering if there are some SMTP settings that could be the problem?
Blocking CDONTS/CDOSYS Mail
I run a web site that uses various forms to send email to customers. For example, I have a "Forgot your password?" script and a "Email this page" script.I've found out that when a user sends an email via my site to a Hotmail address, the email just "disappears." I'm assuming Hotmail is considering the email SPAM because it was send by my web server? The site uses ASP and I've tried using CDONTS and CDOSYS (which I specified a SMTP server for) and nothing seems to work for Hotmail. A large portion of my customers user Hotmail, so banning it really isn't an option.Is there anything I can do to prevent Hotmail from blocking my site's emails?
CDOSYS AND CDONTS On W2K3 Machine
I have both cdosys.dll and cdonts.dll on my W2K3 server. We have been told by our web authors that their asp code won't work on our machine and that we don't have CDONTS installed on our machine. They're getting an error from: Set objCDOMail = Server.CreateObject("CDONTS.NewMail") I know that the new format is: Set objCDOMail = Server.CreateObject("CDO.Message") Is there something special that we have to have installed to make CDONTS work?
Hotmail Blocks Emails Sent W/ CDONTS/CDOSYS?
For some reason, the email scripts on my web site can't send emails to Hotmail accounts. No error is generated, but no email is sent either. I've done some searching on this matter, and it appears as though I'm not the only one having this problem, but I have yet to find a solution :( Below is my CDOSYS script that was *supposed to* resolve the problem by passing the SMTP server's along with the email, but it doesn't work :( Have any of you had success with sending emails to Hotmail accounts via CDO? I don't have control over the server's setup because it's a hosted account...
Upload Files And Send E-mail Using CDOSYS
What I am trying to do is to upload 4 files to my server (Windows 2003 Server Edition , IIS 6.0) and then e-mail them to my e-mail account. I use 2 files. The first is uploadTester.asp...
CDOSYS Access Denied On ObjMail.Send
I'm running IIS 6.0 with Exchange 2003. One web site that is hosting is trying to use the new CDO method of sending e-mail. SMTP Service is working fine for Exchange, but for web sites on the same box using code below generates: CDO.Message.1 error '80070005' Access is denied. /test.asp, line 15 Site: http://www.ytr.com/test.asp Code: ....
Email Attachment
I have a problem don't know how to write the attachment file frm mail.... <html> <head> <title>Thank you for reply with us.</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <%@ Language=VBScript %> <% Dim strBody Dim myElement For Each myElement in Request.Form Select Case Left(myElement ,3) Case "txt","sel","rad": strBody = strBody & Replace(Mid(myElement,4,len(myElement)),"."," ") & _ ": " if Len(Request.Form(myElement)) = 0 then strBody = strBody & "UNANSWERED" else strBody = strBody & Request.Form(myElement) end if strBody = strBody & vbCrLf Case "chk": strBody = strBody & Replace(Mid(myElement,4,len(myElement)),"."," ") & _ ": " & Request.Form(myElement) & vbCrLf Case "are": strBody = strBody & Replace(Mid(myElement,4,len(myElement)),"."," ") & _ ": " & Request.Form(myElement) & vbCrLf End Select Next strBody = strBody & vbCrLf & strFooter 'Time to send the email 'Dim smtp Set smtp = server.CreateObject("CDONTS.NewMail") '****************************************** ' set the mail properties '****************************************** smtp.Subject = "ApplicationForm" smtp.From = "ApplicationForm" smtp.To = "connie@auroraxsis.com" smtp.Body = strBody '****************************************** ' fire off the email message '****************************************** smtp.Send 'Response.Redirect "thankyou.asp" '****************************************** ' check return value error code '****************************************** 'if objMail.errorCode = mmeNone then ' Response.Redirect "thankyou.htm" 'else ' Response.Write ("Mail message was not delevered to the SMTP server." & "<br><br>") ' Response.Write ("Please try again later" & "<br><br>" ) ' Response.Write ("The error code was :" & Cstr(objMail.ErrorCode) & "<br><br>" ) ' Response.Redirect "" 'end if '****************************************** ' always destroy the object '****************************************** ' set smtp = Nothing ' Response.Write ("Thank you for advertising with us. We will revert to you soonest possible.") ' Response.Redirect strRedirectURL %> </HTML> <script language="JavaScript"> <!-- //set message: msg = "Welcome To International Education Counsultancy"; timeID = 10; stcnt = 16; wmsg = new Array(33); wmsg[0]=msg; blnk = " "; for (i=1; i<32; i++) { b = blnk.substring(0,i); wmsg[i]=""; for (j=0; j<msg.length; j++) wmsg[i]=wmsg[i]+msg.charAt(j)+b; } function wiper() { if (stcnt > -1) str = wmsg[stcnt]; else str = wmsg[0]; if (stcnt-- < -40) stcnt=31; status = str; clearTimeout(timeID); timeID = setTimeout("wiper()",100); } wiper() // --> //--> </script> <style> BODY { margin-top: 0.00in; margin-left: 0.0in;} BODY{ scrollbar-face-color:#f5f5f5; scrollbar-arrow-color:#000000; scrollbar-track-color:#ffffff; scrollbar-darkshadow-Color:'#FFFFFF'; </style> </head> <body bgcolor="#FFFFFF" text="#000000"> <table width="75%" cellpadding="0" cellspacing="0" height="40%" align="center"> <tr> <td valign="middle" width="25%" height="288"> <div align="center"><img src="http://www.iec.com.my/images/tk.jpg" width="576" height="198"></div> </td> </tr> </table> </body> </html>
Attachment In Email Using CDO
I am sending email using CDO. I want to send attachment through email.For that I have to send my file to webserver first then have to write path of file in CDO code.what is the best method developer's using for the same?Would you please send some component so that from local m/c I can upload desire file to webserver and consequently can attach that file into email.
Attachment In Email
I am sending email using CDO. I want to send attachment through email.For that I have to send my file to webserver first then have to write path of file in CDO code.what is the best method developer's using for the same?Would you please send some component so that from local m/c I can upload desire file to webserver and consequently can attach that file into email.
Email Attachment
I want the users to be able to send an email with an attachment from my web page. The problem is that the file ".DOC" resides on the client machine and not the server. It would be ideal if the user could browse for the file. Can someone tell me if this is possible and how? Do I have to first upload the document before adding it to the email as an attachment.
Asp Email Attachment
Anybody can teach me beginning how to write a asp with attachment file? Example I have a form as below:- Name : Address : Tel : Email : Attachment photo : I would like received mail can get all this info.
Email Attachment Pbm
i have pbm, all the values from first form is passed to the asp form including the path of the file attachment, through local host it is well running if i upload files in remote server and process then error is generated could anybody help this out Code: ... stratt = Request.QueryString("f_path") With objCDOMail Set .Configuration = objConfig .From = strFromEmailAddress .To = strToEmailAddress '.Cc = strCcEmailAddress '.Bcc = strBccEmailAddress .Subject = "Enquiry sent from enquiry form on website" '.HTMLBody = strHTML .TextBody = strBody .AddAttachment stratt (path) .Send End With
Email With Attachment
I have a 2000 server running IIS 5. I need to send approximately 10000 emails to recipients from an excel spreadsheet with a small word document. These are requested emails, no spamming. I don't have a clue as to where/how to start this.
Email Attachment Failure
error '80004005' Unspecified error when sending an attachment, how do i debug this? i found out that by default, ASP apps can only access files that are on the computerthat the server runs on. how can i change this so the IIS will take the files off the client's computer?
File Attachment Email By ASP
I want to write ASP code to send email with file attachment by using CDONTS . I searched from internet but i'm still confused about the mechanism and code they writing in ASP.NET Anyone doing this before can give me a hand such as instruction or sample code for example.
CDO Email Attachment In JScript
I have a CDO mail script in JScript that works fine if I send the message without an attachment. However, I haven't been able to figure out how to attach a file without getting an error. Does anyone know how to attach a file to a CDO message in JScript? <%@language="JScript" %> <% var cdoConfig = Server.CreateObject("CDO.Configuration"); cdoConfig.Fields("cdoSMTPServerName") = "12.34.56.78"; var cdoMessage = Server.CreateObject("CDO.Message"); cdoMessage.Configuration = cdoConfig; var cdoBodyPart = cdoMessage.BodyPart; cdoBodyPart.ContentTransferEncoding = "8bit"; cdoMessage.To = "name@company.com"; cdoMessage.From = "someone@mail.org"; cdoMessage.Subject = "CDO Test in JScript"; cdoMessage.TextBody = "This is a test email sent using JScript."; cdoMessage.send(); %> I've tried adding each of the following lines, but none of them works. cdoMessage.AddAttachment "c:filesdocument.txt"; cdoMessage.AddAttachment( "c:filesdocument.txt" ); cdoMessage.Attachments.Add "c:filesdocument.txt"; cdoMessage.Attachments.Add( "c:filesdocument.txt" ); cdoMessage.AttachFile "c:filesdocument.txt"; cdoMessage.AttachFile( "c:filesdocument.txt" );
Adding An Attachment To Email
I have a form that i have created and i need it to that the user can attach a file then get the form to send the file. Please have a look at my current code:
Form Email Attachment
I have a asp form which has a file field and a Send email button. I want user to use the file field to select an attachment path to be send out as email. How can I do that?
Email Body Sending As Attachment
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.
Sending Launching Email With HTML Attachment
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.
Create Email Form With Attachment With Cc And Bcc Address?
I want to create form in which user specify his details. But that mail should be take cc address from database and also that form have one attachment field. Mail body must be in html format. Attachment and "from" his email field compulsory....
Need Help Sending CDO Email With Dynamic HTML Attachment
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.
|