one of my client has requested a form that sends the email feedback to a Distribution List in his Outlook Contacts. So…is there a way to code a form to pull the emial addresses from an Outlook Contact distribution list?
This looks like an attempt to steal email addresses from an address book and spam the heck out of them. Is that what you are trying to do?
You can save the contacts as a text file and input them all to a database which is stored on the web server.Then when the form sends an email it can send it to all the addresses.
If your outlook uses exchange server on active directory. I believe you can then query the server using ldap to get what you want.
I’m moving hosts and one of my directories is huge, so I’m wondering if there’s a way to zip it up before I transfer it to the new server. this is on a windows server and I can only run classic ASP on this account.
There wasn’t a way to do it with that host. However, If the new host uses cpanel and there is a way to zip and unzip via the file manager utility.
Contact your host and ask them to do it.
Does anyone know how to upload images to send as an email attachment using ASP?
Thanks in advance
here is a scrip that attaches the file from your server
<H1>aspSmartMail : Sample 5</H1>
On error resume next
Set mySmartMail = Server.CreateObject("aspSmartMail.SmartMail")
' Mail Server
mySmartMail.Server = "mail.yourdomain.com"
mySmartMail.ServerPort = 25
mySmartMail.ServerTimeOut = 35
mySmartMail.SenderName = "Your Name"
mySmartMail.SenderAddress = "email@example.com"
mySmartMail.Recipients.Add "firstname.lastname@example.org", "Friend0's name"
mySmartMail.Recipients.Add "email@example.com", "Friend1's name"
' Carbon copy
mySmartMail.CCs.Add "firstname.lastname@example.org", "Friend2's name"
' Blind carbon copy
mySmartMail.BCCs.Add "email@example.com", "Friend3's name"
' Reply To
mySmartMail.ReplyTos.Add "firstname.lastname@example.org", "Friend4's name"
mySmartMail.Subject = "aspSmartMail Sample 5"
mySmartMail.Body = "This mail which has been sent with aspSmartMail."
mySmartMail.DateTime = "Wed, 23 febr 2000 12:00 +0600"
mySmartMail.Organization = "your Society Inc."
mySmartMail.XMailer = "Your Web Application"
mySmartMail.Priority = 1
mySmartMail.ReturnReceipt = false
mySmartMail.ConfirmRead = true
mySmartMail.ContentType = "text/plain"
mySmartMail.Charset = "us-ascii"
mySmartMail.Encoding = "base64"
' Attached file
mySmartMail.Attachments.Add Server.MapPath("aspSmartMailsample.txt"), false
' Send the message
if err.number <> 0 then
response.write("Error n° " & err.number - vbobjecterror & " = " & err.description & "<br>")
Response.Write "aspSmartMail has sent your message with this file as attachment : <br>"
set mySmartMail = nothing
How can I protect the username & password fields against brute force attack in ASP page?
The best way to prevent brute force attacks on your login screen is to do an account lockout after x failed attempts. You can block on IP or on account.
i want to send a data by using href. like this sample.aspx?data=14 but i don’t know how to get this data back on the other page?
Use strData = Request(“data”)
if you used method = “post”, you would use request.form to retrieve the data.
I need to write asp code in a text file ( .txt extension) . How do i make it work?
You can use notepad to write the code and save the textfile as .asp or .txt for safekeeping.
Thanx for reply but i need a way to make asp engine parse the text file as asp file.
you need to configre your server to use ASP for .txt extensions
Yes, Unless you have access to configure the server this is impossible.
Has anyone here used fckEditor with ASP?
I use it with PHP.
Yep – it’s the only RTE I use now.