Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 It's complicated

Author  Topic 

vmethod
Starting Member

3 Posts

Posted - 2007-08-27 : 18:16:57
The low down:
Local Web Server on Windows 2003
Local SQL Server on Windows 2003
Hosting dynamic website tied to inhouse Access Application

Ok, basically, how it is set up, people can login to our website and enter data (insert record), on our end, we have an Access application where we can play with the data that was entered via the website. Currently, we do not have either server set up as a Mail server.

What we need to be able to do:
When a customer enters data on our website, their supervisor, and about 2-3 other people related to the transaction need to be emailed to be notified that an order was submitted. So how do I code that? On the page with the Insert Record? OR after Insert Record redirect them to another page that sends the mail out?

Which server do I enable the mail?

I was reading about SQL Mail etc, which would be good since we do mass emails to clients weekly, but I have no idea how to set that up and I look crossed eyed at any tutorial.

Do I want to set up theSQL server to also be a Mail Server that way we can use the SQL database to email as well as data entered from the website? But then again, the website points to the Web Server which pulls data off the SQL server (so unless the Web Server is a mail server, nothing will be sent, am I right?)

*sigh*

I know very little about SQL and I'm being asked to impliment this and I am 100% confused. I'm a graphics artist not a programmer! LOL

Thanks in advance to anyone who can/will help me.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-08-27 : 19:28:52
I wouldn't do this inside SQL Server. The application that is submitting the order should handle the email. Can't Access send emails via SMTP?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-08-28 : 05:30:40
if you have sql server 2005 you can send mails from it with Database Mail.
It's simple and pretty straight forward.
and since it's async it doesn't cause issues with transactions running too long

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
Go to Top of Page

vmethod
Starting Member

3 Posts

Posted - 2007-08-28 : 16:41:38
this is going to sound really incredibly retarded, but how do i find out what version of SQL I'm using... I've looked everywhere I thought it would be.
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-08-28 : 16:45:37
select @@version


_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
Go to Top of Page

vmethod
Starting Member

3 Posts

Posted - 2007-08-28 : 17:58:59
Ok, yea I'm running Server 2000 with SP2 (thanks tk for that)

Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-08-28 : 18:02:36
yeah.. database mail doesn't exist in SS2k.
handle it outside sql server.


_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
Go to Top of Page
   

- Advertisement -