Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    ASP




Automatically Sending Email From Asp Page


I have a page that allows user input. On click of the submit button I call a javascript function that verifies that all of the fields are filled out and then submits the form. I need to add code after the verification that creates and sends an email. I know how to do this in VBscript, but don't know how to call a vbscript function from a jscript function (is this even possible?).




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Sending Page Via Email
Is there any simple way of doing this? I want to redirect my end users to a
"results" page that lists the details of their order, but I also want to
e-mail them the exact same think (not a link). All of my end users have
HTML e-mail enabled, and I know that I could just create an e-mail manually.
But, I was curious whether I could do this in a much easier fashion.

Automatically Sending Notifications
For a project I am doing I would like to offer customers the chance to recieve notifications of an order by e-mail, SMS or MSN messenger. Is this possible using asp and without spending any money!

Sending Reminder Emails Automatically
I have an online classifeds website and would like to send automatic reminder emails to advertisers 3 days before their advertisement expires.

I am able to send emails via CDONTS from a form but are unsure how to extract the date details from the database 3 days from the renewal date and send an email to all relevant advertisers . I have an Access database attached to the web pages.

Possible To Get Outllook Email Address Automatically?
Using ASP and CDONTS to send a simple email to an address that is chosen from a drop-down.

This works, however I currently have a textbox ('From') that the user has to manually enter their email address.

Is there anyway I can assign the outlook email address to a variable, without actually using outlook to send the email (i.e mailto?)

Page Run Every Day Automatically
I need to set up an asp script that will be run at the beginning of each day. How can I get this page to be opened at a certain time each day?

BTW - My page is to update a database, where based on a timestamp stored in the database, will deem records valid or invalid.

ASP-Automatically Deletion Of Page
Is there any script which can delete a webpage after a given time-period within that script?

I want a page to be deleted after a desired time and to not work untill reupload or recode.

Need To Launch An .asp Page Automatically
I would like to run an ASP page each day at the same time automatically. it reads from my product data and ftps the data to another server.

I am running on a windows system with IIS I have no idea where to begin. Is there anything else I can do? it is not my own server so I don't have access to server. I can just ftp.

Automatically Refreshing A Page
I have an ASP page that displays random facts. Data is stored in a database. Everytime user hits on refresh, randomize function shows a new fact. I would like my asp page to refresh automatically every minute or so and run the randomize funtion and show a new fact. Is it possible with ASP? I have seen it done with Flash.

Automatically Jump To Another Page
how can i jump directly to another page ? let me explain better...i've got this form...the user fullfills the form and presses send...the form calls and asp file...after executing that file i want to be able to send the user to a specific web page, but i don't want him to press any link...just go there directly...how can i do it ?

Automatically Fill Out An Excel File From An ASP Page?
My boss wants me to develop this page so that users can click on a button alongside an employee's page and this will open up the company Expenses Claim Form with some of the fields automatically filled in, pulled from the same SQL database that the webpage gets its info from.

I have been looking this up for *weeks* now, but the only solutions I can see involve the dot net framework, 3rd-party plug-ins or installing the Microsoft ODBC driver for Excel. My boss will not accept any of these solutions, as we are a huge organisation and this has to work accross the entire system. We're stuck with MS Office 2002, Windows XP and SQL Server 2000.

So far the best I can manage is getting the Excel form to open (but without the fields filled in), which I accomplish using the following code:

"ASP Page Should Be Executed Automatically Daily.
I have an ASP page which checks some condition from database and based on that it sends mails to respective persons. All mail details is in SQL server. The page works perfectly fine.

What i need is this page has to be executed daily without the interaction of any user/administrator. Is it possible?

Automatically Posting Form Values When A Page Loads
is there a way in ASP to automatically submit a form and its values when a page loads ?

if not is there any way round this scenario. i want to have a drop down list of options depending on which is selected will depend on where the form is submitted to.

How To Post A Page Automatically When An Option Is Chosen From A Drop Down List
what I want to do is - the user is presented with a form with a drop down box at the top with two options - Yes or No, If No is selected then the form stays as is and the user can complete the other text boxes.

However, if the user selects yes I want the page to refresh with a different set of input boxes.

Sending Email
I have a few queries regarding on email. Currently my web hosting provider uses Windows 2003 Server IIS 6.0 to host my ASP websites. In my own PC, I am also currently using Win XP Profession IIS 6.0 to run my ASP files.

I would like to create a pogram that would automatically sent out an email. But the problem is I have know that CDONTS do not work for Windows 2003 Server or XP Professional. It only currently work for Win 2000 Server.

Please help and perhaps show me the code of sending an email out automatically. Is there a code that can work for all servers?

Sending An Email From Within ASP
I have a form which will be processed by being sent to an ASP page. I would
like the ASP page to take the data from the Request.QueryString (which I
know how to do) and format it so I can have it emailed to me in a nicer
format. My problem is that I do not know how to have ASP send an email. I
know how to send an email using the mailto: protocol by making it look
something like the following:

MAILTO:username@mydomain.com?SUBJECT=mysubject?MES SAGE=mymessage

However, this will usually take the user to their default email client and
ask them to send an email by putting the specified subject and message in
for them, but wait for them to do any desired editing and click their send
button. I simply want the email to be sent straight from ASP. Is this
possible?

Sending An Email
Can anyone provide me with an example how I can send an email through ASP.NET!

Sending Email
I have made a .asp file in order to send email to my Join Bytes!:

<%
Set mail = Server.CreateObject ("CDONTS.NewMail")
mail.To = "email@email.com"
mail.From = "mail@mail.com"
mail.Subject = "email subject"
mail.Body = "email body"
mail.Send
%>

The smtp function have been installed with the IIS, there is no error and the .asp seems running properly but I can't receive any email, any wrong?

Sending Email
i have to do a project regarding employee transfer in which sending email to concerned employees yet to be transferred play a pivot role.

CDO Not Sending Email
I've been using CDO to send email from my web server for a while now but
today the emails aren't being sent. They are in the queue folder on my
server. I've restarted SMTP service but that didn't work. How can I get
these sent?

Sending Email
how can send email using ASP?

ASP Email Sending
Im have made up a form that sends the information via email to an email address. Whenever I test the form though, the email does not display in HTML format. The email displays the html code but I want it to display as an html page.

Sending Email Via .asp
Set ObjMail = CreateObject("CDONTS.NewMail")
ObjMail.From = emlFrom
ObjMail.To = emlAddress
ObjMail.Subject = emlSubject
ObjMail.Body = emlBody
ObjMail.Send
Set ObjMail = Nothing

I recently upgraded my webserver from NT4.0 to Windows 2003 Web Edition. Now, the above code no longer works. It worked great on NT4

What do I need to do to make it work with my new server?

Sending Email In ASP...
I am trying to send an email to someone as the person clicks on a link...i have been trying the CDO, CDONTS, JMail and other methods but none of them work!!an example is as follows:

Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="mymail@mydomain.com"
myMail.To="someone@somedomain.com"
myMail.TextBody="This is a message."
myMail.Send

I Im getting this error:

CDO.Message.1 error '80040220'

The "SendUsing" configuration value is invalid.

Sending Email With ASP
I need a way to send an email using a normal HTML form and then taking those values and sending them to myself.

Sending Email
Could someone advise me on the best way to send email either using asp or html? I'm not sure which way would be best. Basically I have a page confirming that data has been entered into a database and displaying what has been entered. I then want to have a link to email the information to someone. The email address has already been entered into the database.

Sending Email With CDO
I asked how to send an email using CDO instead of CDONTS and got several responses. They were all good, I tested the code and it works well. However, I forgot to mention that I need to set the email body to be in HTML rather than in plain text format. Would appreciate if someone could post a complete example on how to do this.

Sending Email
I have tried to use this peace of code to send test email

If Request.form("submit")="Submit" Then
Set objMail = CreateObject("CDONTS.NewMail")
objMail.To = "alex@alex"
objMail.From = "alex@alex"
objMail.Subject = "Feedback"
objMail.BodyFormat = "0" ' -- HTML format
objMail.Body = "Name: "
objMail.Send
Set objMail = Nothing
end if

It works fine but when I go to the drop folder it is filling it with hundreds of emails. When I look inside pickup folder there is only one email message. Does anyone knows why the drop folder is constantly filling with new email messages?It looks like it repeats it all the time like some kind of loop.I am using it locally for testing only

Sending Email
I am using an asp page to send email from a access database. I would like it to send an HTML version if it can, and if not then it will send plaintext. I have seen this feature before, but not sure if asp can handle it.

Sending Email
I have written a code to send email through asp. I want to make particular text bold or underline in the main body of the message. Code:

Sending Email Using ASP
I want to test my mail method, when i was setting up IIS i installed stmp so thats ok. When i send the mail it goes into the mailroot folder and into a folder called queue but it does'nt actual send to the address?


Set EnquiryMail = CreateObject("CDONTS.NewMail")
EnquiryMail.From = "admin@nci.ie"
EnquiryMail.To = Email
EnquiryMail.Subject = "Access to NCI Recruitment"
EnquiryMail.Body = BodyText
EnquiryMail.Send
Set EnquiryMail = Nothing

Sending Email Thru ASP
how to send emails ..thru asp code?

Sending Email
I have made one site for me, I have created one contact us page where user can fill the form and send his message to us. I am using SMTP to send email to my domain and I also want to send confirmation email to visitor but email does not go specially when domain are hotmail and yahoo etc.
I am using code like this:

Dim emailMessage As New Mail.MailMessage
emailMessage.From = "visitorsEmailAddress"
emailMessage.To = "myEmailAddress"
emailMessage.Subject = "Email from web"
emailMessage.Body = "Message here"
SmtpMail.SmtpServer = "myServerAddress"
SmtpMail.Send(emailMessage)

Can some body tell me how I can configure SMTP to send 2 way emails from my web page?

Sending Email
I scoured the forums and am looking for the easiest solution to send email through .asp.
cfm/php all have easy defined tags that allow this. Does .asp have a similiar solution?

I've seen a lot about cdonts,yet to read this,if there is another way,if not,i better start reading.

Sending Email
I have tried to use this peace of code to send test email

If Request.form("submit")="Submit" Then
Set objMail = CreateObject("CDONTS.NewMail")
objMail.To = "alex@alex"
objMail.From = "alex@alex"
objMail.Subject = "Feedback"
objMail.BodyFormat = "0" ' -- HTML format
objMail.Body = "Name: "
objMail.Send
Set objMail = Nothing
end if

It works fine but when I go to the drop folder it is filling it with hundreds of email. I thought my seting objMail to nothing it would stop sending it. When I look inside pickup folder there is only one email message. why is it happening?

Sending An Email Every Monday?
I need to schedule a mail to be sent to the client on every monday....

Sending Image Thru Email + CDO
I'm using CDO message to send email thru asp code.
Below is sample code...

body = body & "<tr><td colspan=2><img
src=images/contacts_5.jpg></td></tr>"

I'm just confused why its not showing images in email
body? It just shows red cross mark in mail body...

Sending Email Without SMTP?
can we send email from our internal server without using an external SMTP provider?

CDONTS Email Not Sending
my CDONTS email isn't sending.. I think the code is set up correctly but I'm not positive. Is there a way to specify a mail server, if necessary? It seems to be going through without a hitch but the emails are never arriving, to any box I send them to. So perhaps our server needs some sort of authentication before permitting outgoing mails, I'm not really sure. Is there a way to check this?

I have our form set up on a standard html page, with a "action=process.asp" command..

here's the process.asp file..

<%
'Option Explicit
Dim objIndexMail
Set objIndexMail = Server.CreateObject("CDONTS.NewMail")
objIndexMail.From = Request.Form("email")
objIndexMail.To = "me@myemail.com"
objIndexMail.Cc = "me@myhotmail.com"

objIndexMail.Subject = "New Inquiry from" & Request.Form("parents")

Response.Write("Ready to create body")

objIndexMail.Body = "bunch of body text here"

Response.Write("body Created")

objIndexMail.Send
Response.Write("Sent")

Set objIndexMail = Nothing
Response.Write("Thank You")
%>


it gets to the thank you message every time, but nothing ever arrives in my mailboxes...

ASPUpload - Sending Email And More
I have successfully setup a form that uploads a file using the ASPUpload script and it shows a progress bar, indicating the status of the upload.

Their script manual is at:

http://www.aspupload.com/manual.html

My asp skills are very poor(!) but...

...I would like to improve this script so that:

1. It will create a unique subfolder for the uploaded file. The name will be given (I will have a php script that auto generates this).

2. It will store the uploaded file in this unique subfolder.

3. It will send an email showing the content of the form text fields.

4. Certain form text fields will be shown on the last page.

Can anyone help?

Problems Sending Email With CDO
I am having a problem sending email to a certain address, which gathers information from a web form(text, up to 2 attachments) . It seems to be having a doing the actual send. It creates the message but never does send it. I say that it creates the email because when check the mailrootqueue folder, all of my attempts are in there. I have no idea why it isn't sending as i am sending to and from the same email address!!! Below is the code I am using:

<%
SUB sendemail(fromwho, towho, subject, body)
dim objCDO
Dim objConf
Dim objFields
Const cdoSendusingPort=2
Set objCDO=server.CreateObject("CDO.Message")
Set objConf = Server.CreateObject("CDO.Configuration")
Set objFields = objConf.Fields
With objFields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) = "localhost"
.Item(cdoSMTPServerPort) = 25
.Item(cdoSMTPConnectionTimeout) = 10
.Item(cdoSMTPAuthenticate) = cdoBasic
.Item(cdoSendUserName) = "username"
.Item(cdoSendPassword) = "password"
.Update
End With
objCDO.From=fromwho
objCDO.To=toWho
objCDO.Subject=subject
objCDO.TextBody=body
objCDO.Send
END SUB

fromwho="test@test.com"
toWho="test@test.com"
Subject="WEBSITE FEEDBACK"
Body=TRIM(Request.Form("txtComment"))

If body<>"" THEN
sendemail fromWho, toWho, Subject, Body
'REDIRECT OPAGE - response.redirect "blah.htm"
END IF
'cleanup
Set ObjCDO=Nothing
%>


If someone can give me a hand on what is preventing the email from completely sending that would be great....

Need Urgent Help With Sending Email Using ASP
<%
If request.Form("send").count > 0 then
set objMessage = CreateObject("CDO.Message")
objMessage.Subject = Request.Form("sub")
objMessage.Sender= request.Form("from")
objMessage.To="myemail@hotmail.com"
objMessage.TextBody=request.Form("msg")
objMessage.Send
response.Redirect("contactus.asp")
end if
%>

I'm suppose to allow users to send feedback to myemail@hotmail.com using a webpage. So i've used this asp code. But it seems like the code doesnt work for me. I've tried the page out, and there was no email sent to that address.

Sending An Auto Email Only Once
I have my edit page set so that, at a later date when payment comes in, I change the field "Confirmation of Funds" to Yes, which has a value of 1, which automatically sends an email to the customer whose funds I've received.

The problem is, if I go into the edit page later, to change an address or whatever, the email will get sent again, since the Confirmation of Funds field is still set to 1.

Is there a code I can stick in, after the code which sends the email, that will change the Confirmation of Funds field to 3, which I have as "Email Sent"? I already have that as a selection in my dropdown box, but I need to automatically change it after the email is sent.

I'm thinking something along the lines of

If COnfirmation of Funds = 1 Then
Confirmation of Funds = 3
End If

Obviously that's wrong (I even tried it!) Can someone give me the proper syntax?

Sending HTML Email
I have a client that wants to send HTML based email.

Building and sending isn't a problem, but he wants to include a plain text link at the top of the email that will display if the user doesn't not accept HTML email. Maybe it is the product we are using to send the email, but there is no way to include non-HTML formatted text in the email. Is there a way to send non-HTML and HTML in a single email?

Sending Email Using CDOSYS
I used the below code to try and send an e-mail. On my local machine (XP machine) using IIS, the e-mail got generated and was placed in this folder.

C:InetpubmailrootQueue

So I am assuming the mail got generated correctly and the reason the e-mail did not get sent is that I do not have SMTP setup in my IIS. Do you agree with this statement? The reason I asked that is because I am not sure if I have SMTP setup or not in IIS and I am not sure how I check that.

To continue, I migrated my code up to the production web server and I tried executing it there. I have some display.write statements and they all were displayed so again, I am assuming the mail got generated correctly.

The problem is that the e-mail was not sent (or at least I am assuming it did not because I do not see the e-mail in my inbox).

I have never generated an e-mail before so this process is new to me. My code will be attached below but I was trying to understand some basic concepts.

-If I get my code to work on my local machine thru IIS, should it then also work in the production environment?

-It seems like I am calling so pretty specific components for the configuration settings. Is this the correct way to handle this?

-If you are familiar with this type of code, have I implemented this correctly? I would assume I have not since an e-mail is not getting set.....

Sending Email Error
using the code below is how to send email using asp;

<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="martialdc@hotmail.com"
myMail.To="amboy416@yahoo.com.ph"
myMail.TextBody="This is a message."
myMail.Send
set myMail=nothing
%>

but i encounter this error;

There is a problem with the page you are trying to reach and it cannot be displayed.

attached with this thread is the file (send.asp) so that you can check it for sure.

Sending Email Via Form Using Asp.
I am quite new to using asp. I want to use it on a website to send email from a form.
I Found the following code on a website to help me. I have a local SMTP server installed. I have attempted to run this test form in a browser but i am getting the following error message.

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/SendMail.asp, line 16

800401f3

Here is the code i am using:....

Sending Email Error
using the code below is how to send email using asp;

<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="martialdc@hotmail.com"
myMail.To="amboy416@yahoo.com.ph"
myMail.TextBody="This is a message."
myMail.Send
set myMail=nothing
%>

but i encounter error with this message:
There is a problem with the page you are trying to reach and it cannot be displayed.

i dont know what and where is the problem? i just copy the code my asp page;; what code should i write?

Sending Email To List - Bcc
I have an asp page that I use to collect email addresses for an email notification list.

I'd like to be able to send the notifications to everyone on the list without everyone's email address showing in the "TO:" list. Is there a simple code snippet I can use to send automatically as a BCC instead?

Sending Email Via Localhost
Is there a way to send email generated from asp scripts run on localhost for
testing purposes?

Running XP pro, but would like to test client pages on //localhost first
before transfering to the domain.

(using CDOSYS and localhost for testing)

What setup is possible with the SMTP server of XP pro to allow email to be
sent (and then recieved from my ISP)


Copyright © 2005-08 www.BigResource.com, All rights reserved