Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

email notifications feature

Status
Not open for further replies.

QuintonV

Technical User
Jul 3, 2001
37
ZA
Hi Every one

How do I ad a email notifications feature to my asp webpages? or can that only be done by coldfusion like this site?

Thanx

Quinton
 
There are several email components out there. ASP's default email component is CDONTS, which you can use if you have an SMTP server up and running on your web server. Otherwise, you'll need to grab a third party component that allows you to specify your mail server, such as persit's free component, aspEmail, which you can obtain at
:)
paul
penny1.gif
penny1.gif
 
Thanx Paul

Ive got it installed but how do I link it to my page so that as soon as a record(post) gets updated that it sends the email do i have to link it to mysql somehowe with com compnents?

Thanx again
 
which one did you install? aspEmail, or the default CDONTS?

The method differs for each.
penny1.gif
penny1.gif
 
Ive got aspemail is there any that you would reccomend?
 
aspEmail is fine... that's what we use, as well.

To send an email, you can use the following code (copy and paste job from their website)

<%
Set Mail = Server.CreateObject(&quot;Persits.MailSender&quot;)
Mail.Host = &quot;smtp.smtp-server.com&quot; ' Specify a valid SMTP server
Mail.From = &quot;sales@veryhotcakes.com&quot; ' Specify sender's address
Mail.FromName = &quot;VeryHotCakes Sales&quot; ' Specify sender's name

Mail.AddAddress &quot;andy@andrewscompany.net&quot;, &quot;Andrew Johnson, Jr.&quot;
Mail.AddAddress &quot;paul@paulscompany.com&quot; ' Name is optional
Mail.AddReplyTo &quot;info@veryhotcakes.com&quot;
Mail.AddAttachment &quot;c:\images\cakes.gif&quot;

Mail.Subject = &quot;Thanks for ordering our hot cakes!&quot;
Mail.Body = &quot;Dear Sir:&quot; & Chr(13) & Chr(10) & _
&quot;Thank you for your business.&quot;

On Error Resume Next
Mail.Send
If Err <> 0 Then
Response.Write &quot;Error encountered: &quot; & Err.Description
End If
%>

You can put whatever you like into the body, of course... possibly some pertinent information about the record you just updated.

good luck! :)
paul
penny1.gif
penny1.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top