Currently, I have a form that a user can enter the subject line content and the email body content. They can then send the email which I have set up to use CDONTS. This works fine.
Now I want to add in the ability to attach a file (it will most likely be a MS Word document) to the email being sent out.
I would like to use CDONTS's AttachFile but it's not working for me. I've read up on it and it seems fairly simple except that I'm getting the following error message. Code:
I am using the CDONTS.newmail object to send file as an attachment so I used attachfile method. it seems the attach file wont work if the file size more than 100 KB , does anybody know if there is a size limit or where to change it I am using the SMTP server included with IIS 5.0.
PS when file is sent, it will show on the EMAIL as an attachment only with 0 bytes.
I have been reading quite a bit on how to do the objMail.AttachFile object, and no one can seem to get to it work properly. I have seen many variations such as:
I havent seen anyone report that they got it to work. I am using enctype="multipart/form-data" on my original web form, specifying the input type="file", declaring the attached file variable on my asp page, and doing request.form to gather the appropriate value, but nothing works.
Other forum users have said that it does not like virtual paths, but rather hard-coded paths, for some reason. Does anyone have some good code that works?
im trying : <asp:TextBox ToolTip="<% Response.Write(Resource.nl.login.fldUsername); %>" runat="server"></asp:TextBox>
why does it not work, it acts like a literal... while putting it inbetween the tags actually does work... <asp:foo><% Response.Write(Resource.nl.login.fldUsername); %></asp:foo>
I have a simple web app that consists of an index.asp page that contains in inline frame and several supporting .asp pages. none of the asp pages really include any asp code.
I am trying to set the session.timeout value in my global.asa under the session_onload sub. I am trying to set the timeout value to 1 minute just for testing purposes. In the end I would like the user to be redirected to a timeout page when he/she clicks on any of the links after the 1 minute timeout has been reached.
I am storing content in a database, and when a text field is updated I am adding a line "Updated by <username> at <date and time>" inside the text field.
Now what I would like to do is to apply a dynamic style to that line by using a span.
<span style="<%=UpdateStyle%>">Updated by <username> at <date and time></span> where UpdateStyle would be an ASP variable like "font-weight:bold;color:red" etc, so how that line is displayed is amendable at any time from within an include file.
Well obviously using <%=UpdateStyle%> didn't work ... I also tried defining it as a javascript variable and calling it using document.write, but that didn't work either.
I need an inline HTML editor for my ASP pages to modify database content because it's for use with people who don't know how to use HTML.Hopefully it's modifyable to a point because when you make links and what not, you'd have to add "class="contentLink"" in order for the site's css coloring to take effect (hopefully the ASP code or Javascript code allows customizing)
I have a wierd problem. I have a multi-dimensional array. When a user selects a certain item in a drop down box, I need to manipulate certain data in the page. So essentially to find the correct information in the array, I have to know the selectedIndex in my select statement. I error checked the javascript function using an alert, so it works. I just need to know how I can pass the selected index to the array, and then pass the array to the javascript "updatePreviewPane"
I am wanting to create a search page that will search a folder in the company network (unc path) based on a pdf filename (01223233.pdf etc) and open the file in the browser. acrobat will take care of the rest ....
I have a ASP Page[inline frame in an html page] that does login to a database.
When the user visits the site, the first attempt to login will always failed and session is broken. Login name and password are correct though.
Only when the user re-try agian he/sge is then able to login to the site successfully. Can anyone tell me what could had caused the first time login failure?
I am not having any trouble getting cdonts to work, but damn is it slow. I have the importance set to 2, but sometimes it can take a whole day or more to get the email. Anyone, know how I can make this faster, or another freeware program to send mail faster.
I am trying to use CDONTS to send an email and have the code below.
Set Mailer = Server.CreateObject("CDONTS.NewMail") Mailer.From = "scottfrancisfrancis@hotmail.com" Mailer.To = "scott.francis@eleco.com" Mailer.Subject = "Segment Order Confirmation" Mailer.BodyFormat = 2 BT = "Add order details here" Mailer.Body = BT Mailer.Send set Mailer=nothing
I have declared the Mailer variable earlier in the code, the page runs through without any problems and redirects as it should but no mail gets sent. Can anyone see what I am doing wrong?
We jsut transfured our webhosts to another company, and the new servers are Win 2k3, well our others were Win 2k. I did not know that 2k3 did not support CDONTs. I use the CDONTs for all the mail forms on our site. Is there any good turorial that have that are about CDOs? ALl i can find are CDONTs and CDOs with CDONT objects so that has been no help.
want to use CDONTS to sent my email. and i read this exellent thread: How to use CDONTS I have all kinds of forms with different names and values on different pages. How can i include all the fields of a submited form if they change name from form to form (or better yet, from page to page)? I think that i would have to count the items and then include them in the form. but i don't know if that would work and how to do it.
According to the ASP 3.0 Programmer's Reference published by Wrox Press (copyright 2000), CDONTs has several limitations. One is that it offers no built-in user authentication and security features. Is there any easy way to use CDONTS and have security at the same time? If you have an e-commerce web site and send an email to the vendor with a customer's credit card number and expiration date, could that information be intercepted? Is it possible to prevent that using whatever a web host has available
I have a script that I've used elsewhere and it always works fine. It uses CDO not CDONTS. IIS settings seem to be the same as on other servers that have websites running the same script. When the form is submitted it runs until it gets to the send line. Error says access denied. The script's access is set the same as the rest of the site. Getting very frustrating as I am out of my depth here. Where do I start to correct this?
I would like to know if any one here know any sample examples or scripts that I can modify to work with a group mailing program. I would like to implement a form that uses CDONTS to grab the input and automatically emails to the given email.
i'm unable to extract user's full name as the 'From' section needs to be in the following format - "full name <email@dot.com>"
i was gonna use string concatenation but it dont like the symbol "<" any help?
I have an urgent problem with ASP CDONTS right now.
This is my code:
Set Mail=Server.CreateObject("CDONTS.NewMail") Mail.To="someone@somewhere.com" Mail.Bcc="someoneelse@somewhere.com" Mail.From="abc@abc.com" Mail.Subject=Request.Form("subject") Mail.Body=Request.Form("body") Mail.Send Set Mail=nothing
The mail is sent to someone@somewhere.com, but not the bcc address which is someoneelse@somewhere.com. Is my code wrong?
I have numerous forms processed using ASP and once they are added or amended I need to e-mail various locations to advise them that the form has been changed depending on the location in the form. This is not the problem a case statement does the biz and the SQL and databases are running like clockwork The issue is that we have an exchange server but most of the e-mail adresses are internal only, so they have display names and aliases but as I can see no domain!!!! As I can see CDONTS only works with a domain. I have had a good search on the forum but I cant see a solution. Is there another object that would work.If not is something out there that would the job, be it a VB Script or something else
I need to set up an online form that uses CDONTS to send information to different email addresses based on the user's selection in a drop-down box.There are five choices and each one needs to go to a different email address.I realize I there has to be an indexed array of emails, but I don't know where to start.
I am using CDONTS for users to send mail from a form. The first question is, when a user recieves the mail, [QUAR] is at the beginning of the subject line. Any ideas what that is? Second question, if one does not put a valid value for the FROM property, the e-mail won't send.
But I do not want users to be able to reply to this type of e-mail. What can I do? When I do a search for [QUAR] nothing comes up and I can't seem to find anything for the FROM property either.
I am using cdonts to send emails from my form to my email address, it works great. My question is, is that In my fields area, when someone does not fill them out, it brings them to a page, which says to fill out these fields and go back to the form, which is what I want, but when the form is correctly filled out, it brings them to a blank page, but I want it to bring them to a custom made thank you page, without it interfering with the fields error page, how do I accomplish this
I've proven both systems on my asp server but I can't recognise the difference between them. I'd like to know which is the difference between them and which is better to send a big quantity of mails (I'm making a mailing list).
if it possible using CDONTS?On my site,when a product is purchased from a supplier, an email is automatically sent to him, notifying him of the sale.
Would it be possible to have him return the email to confirm the order, and have that somehow go into my database (that the order was confirmed), and then sent another email to the customer to let them know that the order was confirmed?
If this isn't possible using CDONTS,how would it be possible?
My Web Hosting company runs Sun ONE Active Server Pages,without the SpicePack. So that means I do not have use of CDO or CDONTS.
Since they run Apache I do have access to linux sendmail feature.They have several examples how to send mail via perl or cgi but I was wondering is there a manner to wrap sendmail inside an ASP page?Also they don't support ActivePerl,so I can't even use pseudo ASP code and perl.
I want to write a small asp page which will send an email....I am planning to use CDONTS....Is CDONTS behaves same for Windows 2000, XP and Windows 2003. Can my page work without any other settings on all these 3 OS. or DO I need to setup something on each OS. ....what could be the best solution to send an email.