i have a problem in email using ASP.i have created 3 fields named EMP MAIL,TRAINING START DATE,TRAINING END DATE.now the user enters these 3 details and on clicking the SENDMAIL button the mail should be reached to that particular employee 1 week before the date entered in the TRAINING END DATE field.after testing the application this all is working fine(i used CDONTS in ASP).
The problem is that every day user has to run my application atleast once only then all the mails that are to be sent on that particular day will be sent.
i think this is no good as user will enter the details once for any day and he or she may not run my application every day..in order to send mails automatically what should i do..pls any body can give me any suggestion?
I have a very small ASP function that basically allows me to add items to a list and it all gets stored in an Access DB. The output is a loop that displays all of the items.
I wanted to know if anyone knows how or if with ASP I can update an RSS file so that when it saves the new list item it also updates the RSS feed with the new items as well. Sort of like updating a Text file just not sure how or even if it can be done.
I have an ASP page using Jet 4.0 oldeb provider for mdb. (ADO 2.8). I use the _same_ code in ASP from my well working VB application. The problem is:
when I do the same "SELECT * FROM table WHERE field1 LIKE '%asdf%' " query, it works in Access (SQL query) or in my VB .exe code, but generates OLE automation error in ASP. The same code!!! If I use "=" instead of LIKE, it works. (field1 is string type). But I need LIKE
I am getting ready to build another ASP page with a form on it. This form is part of a very complex application I am in the middle of building. It is an event management and scheduling application. The whole idea of this page is to register an individual for the event and to schedule their activities they want to participate in.
Here is were it gets complicated... We have over 30 events and they are all happening at different times. Some are overnight and others are half day and other are full day. We even have some that are two days long.
Some of the events can hold 80 people but their are 40 instructors for that time period. I solved this problem by creating section numbers kind of like in a college. Here is my actual question:
How can I build drop down boxes that change according to what is selected in a previous one. I am using the DB to populate the drop down boxes. Here is an example of what should happen: Code:
I have a recordset containing some data. Using that recordset I want to populate them in a work book in differrent sheets, using client side VBScript. Previously, I used server side automation for this. But it gives error "ActiveX Component can't create object" then and there. Some times the automation works fine.
I need to generate one document on the server and then send it to de client. I having problems of security when i try to open word by code. How can i do that?
i have a software application and i have to import around 250 users data into the app. I want to automate this step,it the most common info like FN,LN,e-mail etc. The app runs on IIS and uses ASP. I am looking for a GUI input Automation tool which will have scripting capability to take input from a text file and fill the user input fields "automagically".can testing tools like winrunner do this for me?
I have a script that populates my access database upon form submision.I was asked to find a way to automatically Populates 10 records, that do not change, to the database once a month.I thought of using WHS to to call IExplorer to execute and launch the URL. and set the windows scheduler to execute it once a month. But my 10 records that I need to add have different names. How do I set the loop to call the record set for each field name.Another approche is to set those uncahgeable data in a flat file and use my asp script to call the file and append the records in the table. What is the best approch
I developed an application using VB6 as FE and Access as BE ( Lan based solution). This application involves picking up preformatted excel workbook with multiple worksheets as template . This excel workbook is more like a form ( containing checkboxes and option radio buttons etc). This also contains clients logo, Header, footer. In this application, on a button click event, the Excel file is picked up from a fixed location, opened, and some data like name of the user, address etc which are available in Access are filled into predefined cells of the excel.
In case any of the fields is already filled, the application reads that fileld and performs validation. After this the workbook is saved at the original location. Most of the fields are not stored in database and data is not in a tabular form.
Now I need to make this application web enabled instead of being on LAN. Can the above excel automation be acheived in conventional ASP or ASP.net. I can force the excel path to be fixed path on server ( IIS). I would be too happy if the said excel workbook can be picked up from client machine, modified and stored back at same location.
I'm about to create an ASP script which will essentially parse SQL tuples (rows) into a Word file, creating labels, although would need to use the pre-defined label templates within word. Can anyone direct me in the right direction?
I want to do some time based house cleaning chores on a server based on server time/date. I know how to do it based on a call from the client using asp, but is it possible to have a program residing on the server that comes alive based on server time (not a client call) and does it's tasks such as delete an inactive page, or more importantly, send out a cdonts e-mail to a client list? I should also mention that this is a shared Windows 2003 Server (Interland Blue Halo).
I've develop a simply exe app that merge two or more document in one using MsWord automation.
I call this exe from an asp page (giving authorization to IAWM IUSR...). This run ok on a web server with Xp and IIS 5.1 but don't work on W2K3 and IIS 6.0.
We have a excel document, which is been updated regularly. After everyday updating, we export as HTML file and upload it. As a ASP programmer, I want to write a script, which can parse this excel file and make it as a web ready file. Is there any simple way to do this? Our data entry operator, is very new to computers and all he know is a little in Excel.
I am facing some problems with generating the word documents usin ASP pages. This is the automated process and it is breaking often Since Microsoft is not providing any support for this issue, I though using WordPerfect 12 for the automated document generation would hel me a lot. Is there any possibility of facing the same problem with wor perfect too?
I have problem in word automation. I have a code in VB that opens word document and performs some Find & Replace operations in it and then shows to the user the document. The script runs perfectly on local machine which has Word2000 and OS-win 2000 professional. But When I test the same script on Server which has Os-2000 server Edition and word2000 then it does not opens the word doc eventhough script has line "WApp.visible = true".
I am using Word.Application and Word.Document object in my script. When I create a word document with same script but close it in end of script and then open it with shell script command it works perfectly. But my requirement is not to save the doc but only show it to user and leave it for users choice to save it or not.
Could someone point me in the right direction? I've migrated three FrontPage 2002 websites to a new web server. Each web site has a Access 2000 database on the data server.
I have the global.asa on each site pointing to a .udl file which is pointing to the appropriate access DB on the data server. We're not allowed to use DSN's. Front Page 2002 will not allow me to create a network connection to an Access (only SQL). Only one of the three web sites work. On the other two I keep getting the following message when I open an ASP page: Code:
Im running a simple mail system program which emails newsletters to a database list of 3000+ users.
The program loops through a database containing the emails and sends them out using ASPEmail.
My question is, is there some way i can validate each email address so that if there are invalid characters e.g. the space in "blah @blah.com" it will skip the record and continue the loop.
At the moment i have a working program however, whenever the program comes across an invalid email address it stops at that record and prevents the program from emailing any further.
I am having a problem formatting an email message which comes from a form.
I am currently having difficulty with the <br> tag which I am using for line spaces within my email. I am getting an expected statement error message which is pointing to the line which is underlined below. I can't think what is causing this.
1. I want users to type in their email address on a textfield, and after users press the "Submit" button. The info will automatically go to another person's email to receive a compliment, suggestion, etcetera.
2. Another is how to include the message written on a textarea of a form with the ASP code supplied below: Code:
how to write to check verification valid email thru nslookup or mx record or dns record. Is it possible to do that. Is there any tutorial from sitepoint, previously found it but i lost the link.
example to check assume test@domain.com is not a real email, abc@domain.com is real email how do u check it.
Just starting to play with scripts, and need a little guidance. I want to check to make sure that the email addresses users enter in a form are identical before it will allow them to submit. here's what i have:
the variable for the second email address is EmailFrom2
'validation Dim validationOK validationOK=true If (Trim(EmailFrom)="") Then validationOK=false If (validationOK=false) Then Response.Redirect("emailerror.htm?" & EmailFrom) If (Trim(Name)="") Then validationOK=false If (validationOK=false) Then Response.Redirect("nameerror.htm?") If (Trim(CityState)="") Then validationOK=false If (validationOK=false) Then Response.Redirect("citystateerror.htm?") If (Trim(SchoolName)="") Then validationOK=false If (validationOK=false) Then Response.Redirect("schoolnameerror.htm?")
Set myMail=server.CreateObject("CDO.Message") myMail.Subject="subject" myMail.From="me" myMail.To=request.form("email") myMail.TextBody="hello" myMail.Send set myMail=nothing
this script sends emails to some addresses but not others--and its based on the email service it's sending to. for instance, hotmail email addresses get the email, but mail.com email addresses dont get the email. i have tried sending it to other email hosts, too, and still, some work, some don't. what is going on here?
Dim Mail Set Mail = Server.CreateObject("CDONTS.Newmail") mail.From = "abc@hotmail.com" mail.to = "xyz@hotmail.com" mail.subject = "Test Email Subject" mail.body = "This is Email body message" mail.send
Now the question is that this code will use the Default Virtual SMTP Server in IIS, but I want to use my ISP's SMTP server. please tell me how to do this. I have used my ISP's email server in Outlook express and it is working fine. Please do not suggest to use "CDO" or "CDOSYS" to use for sending emails because I must have to use "CDONTS".
has anyone got a function or subroutine which will remove blank out or remove email addresses.
i've wrote a function which will remove valid email addresses, it's pseudo addresses such as "blah @ blah.com" or "blah_at_blah_dot_com" or "blah_at_blah_._com"
the function is basically to stop users posting an email address in a message.
I've created an com+ application for sending emails with multiple attachments.The component looks like this:
Public Function SendMail3(toAddr, whoAddr, docSubj, docMsg, ByVal docType As Integer, Optional cc = "", Optional bcc = "", Optional sFolder = "", Optional user = "") On Error GoTo MailErr Set oFlds = oConf.Fields oFlds(cdoSendUsingMethod) = cdoSendUsingPort oFlds(cdoSMTPServer) = SMTPSrvr oFlds(cdoSMTPServerPort) = SMTPPrt oFlds(cdoSMTPAuthenticate) = cdoBasic oFlds.Update Set oMail = New CDO.Message oMail.From = whoAddr oMail.To = toAddr If (cc <> "") Then oMail.cc = cc If (bcc <> "") Then oMail.bcc = bcc If oFSO.FolderExists(sFolder) Then Set oFolder = oFSO.GetFolder(sFolder) For Each oFile In oFolder.Files If InStr(oFile.Name, "_" & user) > 0 Then oMail.AddAttachment oFile.Path FileSize = Format((FileLen(oFile) / 1024) / 1024) SumSize = SumSize + FileSize oFSO.DeleteFile (oFile) End If Next End If End If End If If ((docType Mod 2) = 0) Then oMail.TextBody = docMsg Else: oMail.HTMLBody = docMsg End If If (SumSize > 10) Then ErrorStrMail = "Attachment size too large!" GoTo MailFlee End If oMail.Subject = docSubj Set oMail.Configuration = oConf oMail.Send MailFlee: Exit Function MailErr: ErrorStrMail = Err.Number & ":" & Err.Description Resume MailFlee End Function
When I call this component from an asp page,I don't get any error,but the mail doesn't work.....did I do something wrong?
I have set up an interactive database with a .asp page requesting information to include an email address. After receiving a response and viewing the database no email address is entered. How do I set up my table to except an email address?
Is there anyway to send email with ASP without downloading a bunch of stuff? I am new to ASP and I am using IIS on my computer and I can find anyway to send emails from my site.
I need to be able to email to all email addresses in db (like a newsletter) I have seen some code samples but really need something simple and web based.
I am sending email using CDO..the code I am using sends an ASP page, the HTMLpart is recognised,but<%code %> is not(basically I am passing some query strings to ASP page),
SUB SENDEMAIL(refno1) Dim myMail dim mailmessage Set myMail=CreateObject("CDO.Message") myMail.Subject="Sending email with CDO" myMail.From="mymail@mydomain.com" myMail.To="ravi@v.com" myMail.CreateMHTMLBody "http://localhost/mailer/thank_you.asp" myMail.Send