Send Email With Link To Current Page
How would I send an email to someone from a webpage with a link to the
current page? I've seen this where you can put in your email, the person's
email that you are sending teh page to, a subject for the email, and a
message along with the link.
View Replies
ADVERTISEMENT
I have tried a simple asp page which send out an email with a message:"This is a testing". This has been done in CDO and it works fine. However, when I tried with:
objmail.htmlbody = "<a href=""http://www.hotmail.com"">Hotmail</a>"
it doesn't work pretty well. The following was the output:
Hotmail<http://www.hotmail.com>
How can I make it to display only the word "Hotmail" that links to http://ww.hotmail.com? Could anyone help me please?
View Replies
View Related
how to send email from an asp page?
View Replies
View Related
This is my first post hope it makes sense. I have learnt how to send emails from forms passing variable etc and it works, but I am lazy so here it goes:
I am writing a set of intranet based asp reports for which the underlying asp code can get quite complicated (tables nested in tables, all sorts of calulations and parameters etc). I would like users to be able to send that report (neatly formated in his browser) by pressing a form button. (by the way, we use Outlook)
1. either as an .html attachement (which would of been saved automatically either locally or on the server)
2. or as an html email (as you would do when doing File > Send > Page by Email in IE 6.0) Code:
View Replies
View Related
I created a feedback form for my website that has only 2 required fields. When you submit the form it calls my asp page which puts the information in a database and then sends me n email with the information that was entered into the form. The problem is that the form only has two required fileds, and if the remaining non required fields are left empty when the asp page is called it does write to the data base, but does not send me any email. However if I go back in and put somethng in every field in the form then when I submit the form and my asp page is called it writes to the data base and sends me an email with the all the information I entered in the feedback form. Is there a way to tell my asp page that it is ok to send the email even if the non required fields are left empty? I really do not want to have to go back through the form and put default values in for each area of the form? Also is there a way to have an error displayed if the email is not sent? My asp code is below....
View Replies
View Related
I have constructed an order form and the users will enter the informtion. I
now need to send the filled out form as an e-mail (body being the HTML with
the fille din data) to a predefined e-mail address. I know how to use CDO. I
don't want to go to another page to recontruct the HTML as the '.body'
View Replies
View Related
how can Identify a domain user that send a form made with ASP. I have see that exist a variable called currentuser, but what does it mean?
View Replies
View Related
I have a function which sends email to the user..on click of a button..everything is working..but i am unable to send the link with users reference number. My code
sendemail(refno)
'
'
'
mailmessage=mailmessage & "<A href=http://localhost/mailer/TestPDF.asp?referenceno=refno"
'
'end function
where refno is a variable..I have checked that value of refno is getting passed..but not to the above line.
View Replies
View Related
i used the following script but it won't send the email. any suggestions why?
<%
Dim TBdy
Dim MyCDO
CR = Chr(13)
Set MyCDO = Server.CreateObject("CDONTS.NewMail")
MyCDO.From = "person@something.org"
MyCDO.To = "allstar@aol.com"
MyCDO.Subject = "collegebound info"
TBdy = Request.Form("cb_name")
MyCDO.Body = TBdy
MyCDO.Importance = 1 (Normal)
MyCDO.Send
Set MyCDO = nothing
%>
View Replies
View Related
I am using this code
<table border="1">
<%
Do While Not rstSimple.EOF
%>
<tr>
<td><%= rstSimple.Fields("username").Value %></td>
<td><%= rstSimple.Fields("password").Value %></td>
<td><%= rstSimple.Fields("email").Value %></td>
</tr>
<%
rstSimple.MoveNext
Loop
%>
</table>
How can I make the email field a hyper link?
View Replies
View Related
I like to know how to write this specifc function on ASP where the user eg: display a set of records on the webpage. Example the data are ID, Name and address.
Lets say i display the data on the webpage and i set the Name as the <a href>. So when i click on the name, it will move to another page with the id of the specific name. Code:
View Replies
View Related
I have an embedded piece of flash in a page, sending an email variable out to an asp page which is inturn sending an email out to subscriber email addy, and inserting into database, this worx fine.
in the email sent out I have included a link to the delete.asp page so they unsubscribe,carrying the email variable on the end, however i think my syntax is slightly out with the quotes and double quotes and although with the email recieved in my inbox and then view source, the correct email is there, BUT when you click the link, it is not appearing after the .asp?email2=. and then obviously my delete is returning not found in database.
If i have the asp running in DreamW on the live mode and put the email in it recognises and deletes fine, so i'm guessing it is my syntax in the body/asp before sending the email. Code:
View Replies
View Related
I have an Access table field that contains email data. I can display the contents of that field to a page, using, <%= (objRS("email")) %>, but I don't know how to make it a hyperlink when it's written to the page.how to display the data as a link on the page, instead of simple text? Do I have to modify the Db record, the page or both?
View Replies
View Related
I'm using CDO mail in my asp scripts, and I need to find a script that whereas a user signs up for your website.
when he hits submit,an email goes to his email box with a confirmation link for him to click so to ensure he has a valid email address. Does anyone know of a package or series of scripts that works with this?
View Replies
View Related
how to print or get the name of current page using ASP
View Replies
View Related
I'm not sure if someone has requested in the past (I know I've looked for a solution for a while) but I've just developed a very neat way of getting the current page name in ASP:
url = request.ServerVariables("URL")
page = right(url, len(url) - instrrev(url, "/"))
I've finally found a use for the instrrev function
View Replies
View Related
How can I retrieve the current page url(and parameters/arguments) using ASP code? The current page is an asp search results page so the url includes the page name and the criterion(sorry I don't know what they're called) I had the 'post' method tag on the end.
I need to get it and store it so I have an easy way of getting back to this page at a click of a button a few pages down the track. I've tried using location and history but I'd like to manage it myself.
View Replies
View Related
is there a command in asp to get the name of the current page?
furthermore, is there a way to retrieve the name of the current page within
an 'included' file (not the name of the included page, but the name of the
page that is including the file)?
View Replies
View Related
I am using an include for a navigation bar, This nav bar appears on many different pages and the help facility a button on the navigation barneeds to launch a help box relating to the page it is included in.
The help files are .html but the file names relate directly to the asp page in which the navbar is included. To get the javascript in the navbar to correctly display the correct help window, I need to get at the page name. I am using
dim thisPage
thisPage= request.ServerVariables("URL")
This will hopefully return me the full file path of the page that the navbar is included in. I then need to take the filename out of this URL and remove the .asp from the end so that i can use it in my javascript function to open the corresponding .html help file.
View Replies
View Related
I'm just working on this big newsletterscript, wich will be working with templates (preformatted html code), stored in the database. I've already started but i'm still looking for suggestions or methods to do this more easily then i'm up to right now. So when you you chose another design your content will be loaded in this other template/ html design.
Right now i'm having troubles with the fact that i have a page; nice formatted with the right content! Generated from asp visual output in pure html in my browser. What i want to do now is to get this page structure/ content as it is shown in my browers (html output) INSERTED into MS Access.
View Replies
View Related
Is there any way I can print the current page(page1.asp) and another
page(page2.asp)from the current page(page1.asp).
View Replies
View Related
Ok.. I have a form the user fills out. An email is sent to them and one to our office with a link to the DB so they can view all the info. My form works fine, my emails work fine. The info gets inserted in to the DB fine.
What I would like to do is:
When the link is sent to our office, I would like it so when they click the link it opens the DB right to the info from the link. You know, like when you get an email from here saying someone posted your link has it set so when you click it, it will go right to that post.
So there you have it, any takers.. I sure could use this, otherwise they open the DB and have to search for the info and they do not like having to do much work..
View Replies
View Related
What is the best way to be able to add a function to my advert at the bottom of a clients site, so that when clicked an email is sent to me, without having to refresh the page to do so.
Its so that I can do a survey on the amount of clicks my links are getting in the footer depending on the message i put there.
View Replies
View Related
I am just wondering how the function that we see on website that says "email this page to a friend" work.
I know that all the info is passed on via an email, but how is it actually code in asp?
View Replies
View Related
I can't remember the code for email address link. The program will open up default email service when the user click on an email. Do you know what I'm talking about?
View Replies
View Related
I am trying to include an email link in the message displayed through a msgbox function. How can I do that? or can I?
View Replies
View Related
I'm trying to add logging to my web application, but I found a strange problem. Whenever I execute a Server.Redirect(Page1.asp) I can use the request.ServerVariables("SCRIPT_NAME") to get the current page name. However, if I use Server.Transfer(Page1.asp), the value of the server variable equals the refering page (In this case default.asp). How do I get the value of the working page regardless of the transfer method.
View Replies
View Related
I want to check if the name of my current page is index.asp for example, to specify a certain css class but this doesn't work
<li <% if Request.ServerVariables("SCRIPT_NAME") = "index.asp" then Response.write "class=""here"""%>>
What's the proper method?
View Replies
View Related
I would like to know how I can save my current ASP page
to the server side in html file format.
Then I would like to stream it back to the client side.
View Replies
View Related
I am trying to display the current page that is being view with asp.The line i am tryng to add is "You are editing: CurrentPageName".I can't find any code examples to help with this.
View Replies
View Related
i want to link to another page and include the current page as a querystring in the filename like .ASP Code:
<a href="newpage.asp?previous=currentpage.asp">my link</a>
which is a simple matter of explicitly writing it
however, if the script is #include d on every page (so i don't know which page is using it), how can i reference the current page and pass it to my link.
View Replies
View Related
is there an easy way to save the current page in asp through code. for example if I dynamically created a page and then wanted to save it without requiring the user to do anything.
View Replies
View Related
I want to be able to save a file created by an asp file somewhere. Or even email the file if possible. I've searched google extensively and only found people with the same problem but no answer. He solved the problem but didnt post the solution.
View Replies
View Related