Different Recipient For Different Geographic Locations
I've been using aspmailer by Tom Germain but I don't understand how to get it to do this (or find another mailer script that will) - assign different recipient email addresses for different geographic locations, then process accordingly, depending on the geographic location selected from list on form.
I have been messing with FSO.FileExists for a while and have been looking into its limitations. On our server, we operate our directory in:
d:inetpubwwwrootintranet
and inside that directory is a VIRTUAL DIRECTORY by the name of employeeImages which maps to
otherserverfolder
So saying
d:inetpubwwwrootintranetemployeeImagesfile.jpg
IS the same thing as saying
otherserverfolderfile.jpg
The problem is, that when I set that path to a variable, called strPath and perform the following:
blnExists = FSO.FileExists(strPath)
it KEEPS returning as FALSE. So I had it output strPath. Sure enough it was the URL shown above. I cut and paste that into a window's location bar and boom, I'm taken RIGHT to the image.
So I'm thinking "Ok, FSO is a FILE SYSTEM OBJECT. Maybe it's limitations mean that it can only look at the local filesystem? Maybe it cannot see across a networked device? Maybe it cannot work with virtual directories?" I've done some looking around and cannot find any pages on limitations of FSO.
Whenever i put in a remote location to server.map, it errors about an invalid character (the colon is what gets it. is there any way to do xml parsing remotely?
If I have a complex SQL statement that I want to use on several pages, what's the best way of going about it? Do I put it in an include or should it go in a sub or function or something else?
Is it possible to POST a FORM to multiple URLS at the same time OR Is the only workaround for this scenario to use response.redirect in the called ASP page and do a multi processing?
the script works but i wanna have this email to be sent to more than one recipient (see below code in red). I did add another ObjMail1.To tag for another email recipient but doesnt work.
<%Response.Buffer=True%> <html> <head> <title>Thanks</title><% Dim salutationname,salutation,t1name,t1,t2name,t2,t3na me,t3,t4name,t4,highqualificationname,highqualific ation,checkname,check,MyNewRandomNum Randomize MyNewRandomNum = Round(Rnd * 100000000000)+1 salutationname = "Salutation" salutation = Request.Form("salutation") t1name = "Name" t1 = Request.Form("t1") t2name = "Telephone number" t2 = Request.Form("t2") t3name = "Email" t3 = Request.Form("t3") t4name = "Age" t4 = Request.Form("t4") highqualificationname = "Qualifications" highqualification = Request.Form("highqualification") checkname = "Options" check = Request.Form("check") Dim stname,st stname = "Comments" st = Request.Form("s1") Dim ObjMail1,ObjMail2 Set ObjMail1 = Server.CreateObject("CDONTS.NewMail") 'CHANGE THE EMAIL ADDRESS IN QUOTES BELOW TO THE ADDRESS YOU WANT THIS MAIL SENT ObjMail1.To = "info@abc.com "
Set ObjMail2 = Server.CreateObject("CDONTS.NewMail") ObjMail2.To = t3 ObjMail2.From = "info@abc.com" ObjMail2.Subject = "Thanks for your enquiry."& "" & "Your QUEUE NO: " &Trim(MyNewRandomNum)& "" ObjMail2.Body = " Hello " &"" & t1 & ".You have submitted your enquiry to us. You will hear from us shortly. " & "" & ":" & st &"" ObjMail2.Send Set ObjMail2 = Nothing Response.Write"<center />Thank You.You will hear from us soon. " %>
The form I have created is intended to send a email to an address based on what subject the user selects. Right now the form processes fine, but I receive no emails.
Set objNewMail = nothing Response.write "<p>Thank you for contacting Hackworth Reprographics, Inc. Your message has been successfully sent. You should expect a response from us within one business day. Have a great day.</p> <p>Return to <a href='default.asp'>Home Page</a></p>"
I have a simple aspmail form on a site I'm getting ready to launch, and the client has several locations... I wanted the user to be able to choose the location from a pulldown that the form was e-mailed to. Do I have to have a backend processing page for each location and have the pulldown point to it?
I have a table with a number of 'advertisements', and each ad specifies a page display location (#1 - #9). I would like to query for all ads, but display them only where they have their location (see image above). I currently have 9 different SQL queries, one for each location:
"SELECT * FROM tb_ads WHERE f_adlocation = 1
I would like to have one query, and at location 1, simply say: "If f_adlocation = 1, then display here. If there is more than one, then repeat as necessary". Here is what my database looks like: I have attached sample data as a .txt file.
It seem that I did not configure the SMTP service on a Windows 2000 server correctly because all the email is been sent to InetpubmailrootQueue directory. Do I need to install Outlook for the email to send the mail to the recipient?
I'm looking to distribute links to a site by mail, and then identify the users following those links. (ie. embedding user id in the url, and retrieving that data)
I think Dev sheds activate account feature does what I need, as does similar features of other sites, so I would think this is pretty standardized. Unfortunately, I can't figure out what I need to feed the search engines in order to elicit a tutorial....
Can anyone please help me with this. I have same code to send the emails. But once in a while i am getting this error messages. Could you please tell me what might be the possible reasons that makes this occur.
I am using ASP formmail from www.brainjar.com. I keep getting this error message: Form could not be processed due to the following errors:
Email send failed: The server rejected one or more recipient addresses. The server response was: 550 endlessenergysystems.com.
The email address in the form is correct and does work. I have changed the settings to different email address and SMTP servers to try to figure out the issue. However I still get the same error. Here are the basic settings: