Multi-part Messages With CDOSYS
I'm migrating from Dimac Jmail to Microsoft CDOSYS for an ASP
application, and I'm in stuck with a multipart message wich sends an e-
card. Code:
I'm migrating from Dimac Jmail to Microsoft CDOSYS for an ASP
application, and I'm in stuck with a multipart message wich sends an e-
card. Code:
Is there a way for me to send TEXT-only (i.e. no HTML) email message via
CDOSYS in ASP 3.0?
strSQL = "SELECT user_name, password FROM [tblLogin] WHERE user_name = '" & Request.Form("user_name") & "' AND password = '" & Request.Form("password") & "';"
Is using AND the correct way to use 2 comparisons in the WHERE part of the SQL??
Does anybody know if it's possible to send MSN/ICQ messages with ASP to registered MSN/ICQ users
View Replies View RelatedI have been searching high and low, but can't find what I want. I am looking for scripts or some guidance on building a web based messaging thing. where users can leave private messages for other users. Maybe i am using the wrong keywords.
View Replies View Relatedhow to send SMS messages via ASP? If so, please would someone post a couple of links or the relevant information that will help me achieve this?
View Replies View RelatedI have a database table, that I need to sort by PART of the contents of a field (named rFieldName in the table):sample contents of this field are:Code:
qid_5_question_1
qid_12_question_5_0_1
qid_12_question_5_0_2
qid_12_question_5_1_1
qid_12_question_5_1_2
qid_12_question_5_2_1
qid_12_question_5_2_2
qid_12_question_5_3_1
qid_12_question_5_3_2
qid_6_question_2I need to sort his field by the value that appears AFTER the 3rd underscore, and if applicable BEFORE the 4th underscore
Is this possible - can you help please - I have no idea where to start on this as I've never had to try to do something like this before.
I would like to use the last 10 characters of a Session object. Is this possible in active server pages. I am familiar with the user of Right$ in visual basic but I after trying serveral conatations I have had to give up.
View Replies View RelatedI have the following code as a part of authenticating a system.
If Rs.eof Then
Session("Authenticated") = 0
Response.Write "Sorry, your userid or password did not match"
Response.Write "<BR>"
Response.Write "or you have not registered yet. Please register"
Response.Redirect("login.asp")
Else
Session("Authenticated") = 1
Response.Redirect ("Welcome.asp")
End If
In the first if statement, I would like to display the above messages
before forcing the login.asp page to display. Is is possible to do both
message and contents of login.asp in the same page? Thanks
My application saves variable length user-generated messages in an
ACCESS memo field. ASP writes these messages correctly retaining CR LF to
generate new paragraphs. (have checked this in the actual data base).
However , when I retrieve a message into another web page, the CR LF
characters are lost, and the message displays as one long sequence of
unformatted text. Anyone any idea how I can overcome this?
Using WIN XP/FP2000/IIS and the following code:-
<%
set objconn = server.createobject ("ADODB.connection")
set objrec = server.createobject ("ADODB.recordset")
objconn.open "DSN=daters"
strsql = "SELECT messages.text FROM messages WHERE messid = 305 ;"
objrec.open strsql, objconn, adopenforwardonly, adlockoptimistic,adcmdtext
%>
<%=objrec("text")%>
I'm running asp on MS Server 2000. Running Internet Explorer I used to get a
proper message with page and line number when there was a bug in my asp
code. Suddenly I'm not getting these any more, I just get the standard
HTTP 500 - Internal server error
Internet Explorer
page which is completely useless.
In Tools/Internet Options/Advanced neither "Disable Script Debugging" or
"Disable a notification about every script error" is checked, though I think
these only apply to scripts running in the client e.g. javascript.
I'm using IIS from win xp pro and normally when my page doesn't work i get
the error message but not on my computer....
Someone told me that i had to check the option in my IE, i did that but i
still don't get the messages. In my IIS i told him to activate errormessages
on the client and server but nothing
I have inserted a free forum from youngpip.com into a website (www.mrmci.com/discuss) and although it works fine on my pws it keeps generating error 500 messages when on the net. Any attempt to write to the database returns this error (it reads from the DB fine).
Any ideas folks
does anyone know whether it's possible to send an SMS message to a UK mobile phone through an asp script on a website?If so, do u know anything about whether you need to pay the network operator etc.
View Replies View Relatedi used to show eror messages in following fashion
if request.form("username")="" and request.form("password")="" then
response.redirect("login.asp?msg=You have to login in order to access this page")
end if
As a result of which the page is directed to login.asp and msg is displayed but the url becomes like this
www.mysite.com/login.asp?msg=You%20Have%20To%20Login%20In%20Order %20To%20Access%20This%20Page
which looks very bad when we look at it. i want to display the msg but want the url like
www.mywebsite.com/login.asp
I have recently created a mail site as a part of the local intranet. the problem is that as i insert textarea message into the database, everything goes on fine.. but if i try to insert a text with single quotes(eg apostrophes) like vivek's into the database, it gives an error message. i know this is happening because of unmatched quotes in the text.. but i am unable to debug it.
View Replies View RelatedI am running a website on a IIS 5.0. I recently noticed that whenever I test an asp page, if there's an error in my ASP code, I do not see any details as to why the error occurred, but rather just a generic http 500 page...Before, it used to tell me for instance that a variable was not declared and also indicated the line number etc. but not anymore.
why is this and what do I need to change in IIS to get these detailed error messages back.
I want to display a message if my sql statement in my record set doesnt not return any thing. So if there are no records to display Code:
<%
SQL = "SELECT account, name,segment, cust_id,Profileclass,number_of_transactions,userid , adjamount FROM CC_WO_Account_Details_Segment where segment = '03. Global Mail'"
set RS = server.createobject("ADODB.Recordset")
RS.open SQL, CMS, 2, 2
%>
if the above query doesnt return anything I want to say "no Write-offs for this segment".
how to do that?
what i am reading isn't all that helpfull into sending these SOAP messages... Does anyone have a *real* usefull tutorial somewhere where i clearly shows how SOAP works? as in sending recieving...Google, isn't always kind, and ends up giving horrible confusing results.
View Replies View RelatedI have an ASP (not ASP.Net) application which was migrated to Microsoft Windows Server 2003 Web Edition. the ASP application uses a COM object which adds messages
to the Application EventLog. For some reason the message aren't showing up when I moved it to the new server. They showed up fine on the old server.
Is this a new security limitation which Microsoft imposes on their new servers? Anyone know how I can give my COM object access to the Application EventLog?
I have found a few through web searches but not many... Anybody know of a com object or anything that interfaces with ASP to allow the faxing of messages and web pages from a web page.
View Replies View RelatedI have a little gripe with my ASP pages, for some reason I am not getting error messages I would expect and don't know if it's an ASP thing, browser thing or IIS problem.
I use option explicit to ensure I define every variable. When I have forgotten to define one the error page just dislays the 500.100 error screen. I have ensured that in my IE 6 that 'show friendly http error messages' is unchecked but have the problem still.
I would have expected it to display some output and then state the error later in the page. How can I achieve this as I am totally stumped now.
how do I get a reg exp to remove part of a string? -
I have: '/page/txtonly/index.asp' and I want to remove the '/txtonly' to end up with: '/bobby/index.asp'.
is it possible to reload just one table row with out reloading the entire page? Or reloading just a table? i'm not thinking it's possible but if it is it's worth asking a qustion.
View Replies View RelatedI need to limit how much of a record is printed to screen. I just want text up to the first full stop.
View Replies View RelatedFollowing java script code to get subscriber ID, its value is like 975683678-28_luxap01s.southernlinc.net, I want to leave number there and cut starting _ part, does anybody know how to remove the character starting underscore "_"? the final value is 975683678-28.
<%
subsciberID = Request.ServerVariables("HTTP_X_UP_SUBNO") ;
%>
we have a database with a lot of products in it. and for some reason one fo the feilds is set up like "<img src="images/something/image.jpg" />". they should be set up without the html but because of the way they are set up theres no way i can use them outside of the root directory.
I need a way to just pull the first 10 characters off the string. which would be the <img src=" part, and then pull off the last 4 characters " />. so that i am just left with images/something/image.jpg.
I can sort of get the first part to work by using Mid(string,10)
but how can i remove the last 4 characters?
in php the function would do the ending characters if you made it a negative number. but Mid(Mid(string,10),-4) doesnt seem to work.
I have a login page where i validate my user id and password... this part is done... I need to get the user id to the next page i am showing...
Example like:
-------------------------------
Login Page
userid : abc
pwd : XXXXX
Authentication Successful
---------------------------------
Next Page:
Welcome abc ---> i want it here
----------------------------------
Anyone can show me how shld i do it...
I am coding a login system with login form etc. and when users are denied access to a secure page within the secure area, I want to obviously send them to the login page to check who they are and check they are allowed to view the secure content of the site.
The problem I am having is that currently, if a user is denied access to a secure page, they are sent to the login page. Once they are granted access, they should be sent back to the page they were originally trying to view and not to the main menu.
(The secure area has lots of pages and users would not be happy if they had to trawl through hundreds of pages to try and find what they wanted.
I know I need to use the ServerVariables collection to retrieve the ("URL"), but I dont want to just use this as a querystring parameter when I send a user to the login page.
This would be insecure because someone out there would find my little login script and start using it on their own site by sending users to my login script to login, and then using the querystring parameter to redirect the user back to their own site.
All I want to do is select the part of the URL after the http://www.somedomainname.co.uk/manager/ part. I cannot use a Left select or right select option because my login script will be put onto lots of different websites, and I would have to change the Left select on each different site.
Basically, what I want to do is to group records according to the first letter of "username" (the primary key).
SQL = "SELECT order_date FROM cart_order WHERE username = 'A*' ORDER BY username"
I've tried using a 'wildcard' (*) in the SQL statement and it doesn't work. So, how does one filter out records according to the first letter of the cell's data?
I can come up with a page that displays some information. The information will always be displayed on specific part of the page, with auto refresh. But he doesn't want the whole page to be refreshed so that buttons and images around the information do not get
reloaded each time. Is this really possible?
Other pages on this site don't use frames, so this page can't use frams too. Creating an ActiveX control is also not an option of us ...
Is there a way of extracting only part of an entry retrieved from a SQL database. For instance, if I have an article of 4000 characters can I extract only the first line of the article and them put a link to the full article after the extracted text.
It is something I have been trying to master and will help me display my retrieved recordset data better.
I have link from a page.If you click on 'pedir presupuesto' it goes to a form, when someone clicks submit on the form the next page sends an e-mail, and must print part of the table from the original asp page (0.asp - from the first darker grey header to the second one).
View Replies View Related