473,382 Members | 1,329 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

SQL Mail and SQL Agent Mail @!~$%!%#^$%&^#&#%

I have been reading everything i can find regarding sql mail and sql
agent mail.

We have a win2k server, sql 2000 and NO, NO, NO exchange server(all up
to date on service packs).

I have tried repeatadly for days to make this work, and have had no
luck so far.

1. I have a valid profile that tests fine in sql agent and via sql
mail test buttons.

2. I have logged in to the box under that new domain account to
install outlook and configure all the remaining options.

3. I have set both the mssqlserver service and the sqlserveragent
service to run under the domain account that coincides with our pop3
email server, and restarted both of them.

4. I have installed outlook 2002, and I can send and receive emails
just fine from our sql server.

5. As soon as I try to test an email from within a job, the test
fails.

All I wanted to do was just be notified if a job fails. The amount of
time lost on what should have been a 30 minute project is
unbelievable!!!

If anyone has some suggestions, other than the obvious, please let me
know.

Thanks,
Dave
Jul 20 '05 #1
3 3851
I'd like to know this myself... seems worse than configuring the shuttle for
a damn space mission. All we want is a simple email...WTF is up with that?
If anyone can share some pointers we would appreciate it greatly!

TIA - Rob

"Dave" <fu*****@yahoo.com> wrote in message
news:f5**************************@posting.google.c om...
I have been reading everything i can find regarding sql mail and sql
agent mail.

We have a win2k server, sql 2000 and NO, NO, NO exchange server(all up
to date on service packs).

I have tried repeatadly for days to make this work, and have had no
luck so far.

1. I have a valid profile that tests fine in sql agent and via sql
mail test buttons.

2. I have logged in to the box under that new domain account to
install outlook and configure all the remaining options.

3. I have set both the mssqlserver service and the sqlserveragent
service to run under the domain account that coincides with our pop3
email server, and restarted both of them.

4. I have installed outlook 2002, and I can send and receive emails
just fine from our sql server.

5. As soon as I try to test an email from within a job, the test
fails.

All I wanted to do was just be notified if a job fails. The amount of
time lost on what should have been a 30 minute project is
unbelievable!!!

If anyone has some suggestions, other than the obvious, please let me
know.

Thanks,
Dave

Jul 20 '05 #2

"Dave" <fu*****@yahoo.com> wrote in message
news:f5**************************@posting.google.c om...
I have been reading everything i can find regarding sql mail and sql
agent mail.
This is the single most frustrating item I've encountered in SQL Server.

(Though I hear SQL 2005 does away with the requirement for a MAPI mail
client. )

Couple of quick comments/questions:

1) The new domain account is the same one that SQL Agent runs as, correct.
(I know, obvious question. :-)

2) There is no real need for the domain account to be the same on the pop3
mail server (in fact I've used a separate off-site sendmail server on
linux).

3) You've got Outlook 2002 setup correctly (I forget the one setting, but
it's critical... Internet only I think is the name of the one you do NOT
want. YOu want the "Workgroup" or whatever it's called.)

4) Probably too late, but might try Outlook 2000. I've heard 2002 has MORE
problems than 2000 for SQL Mail.

5) Also.. make sure the Outlook client has NO messages in any mailbox,
including the sent, draft, etc. I don't know why, but it seems to be an
issue.

Also, once you've started SQL Server and Agent, in Query Analyzer first do
xp_startmail and observe the resulting message.

Then try xp_stopmail.

If either fails, that would be useful to know.

If you can start/stop it, you're 1/2way there.

Then try xp_readmail. This should show NOTHING.

Then try xp_sendmail and see what happens.

After a minute or so, try xp_readmail. This SHOULD be empty again, but
probably won't be.

At this point see if you can do xp_stopmail.

Not sure if any of this will work, but it may help us diagnose it.

Quite frankly, I've found it to be a black art. When it works, it's great.
Jobs notify you, etc.

When it doesn't, it's a huge PITA.


We have a win2k server, sql 2000 and NO, NO, NO exchange server(all up
to date on service packs).

I have tried repeatadly for days to make this work, and have had no
luck so far.

1. I have a valid profile that tests fine in sql agent and via sql
mail test buttons.

2. I have logged in to the box under that new domain account to
install outlook and configure all the remaining options.

3. I have set both the mssqlserver service and the sqlserveragent
service to run under the domain account that coincides with our pop3
email server, and restarted both of them.

4. I have installed outlook 2002, and I can send and receive emails
just fine from our sql server.

5. As soon as I try to test an email from within a job, the test
fails.

All I wanted to do was just be notified if a job fails. The amount of
time lost on what should have been a 30 minute project is
unbelievable!!!

If anyone has some suggestions, other than the obvious, please let me
know.

Thanks,
Dave

Jul 20 '05 #3
Hi - I'd just like to add... when you set up the profile you need to
log on to the box as the sql server to do so. Otherwise the profile
magically disappears when the sqlserver logs on.

Also I gather there are some issues with sqlmail and pop3 - eg it
hanging waiting for user input that never gets asked for...

"Greg D. Moore \(Strider\)" <mo****************@greenms.com> wrote in message news:<lP********************@twister.nyroc.rr.com> ...
"Dave" <fu*****@yahoo.com> wrote in message
news:f5**************************@posting.google.c om...
I have been reading everything i can find regarding sql mail and sql
agent mail.


This is the single most frustrating item I've encountered in SQL Server.

(Though I hear SQL 2005 does away with the requirement for a MAPI mail
client. )

Couple of quick comments/questions:

1) The new domain account is the same one that SQL Agent runs as, correct.
(I know, obvious question. :-)

2) There is no real need for the domain account to be the same on the pop3
mail server (in fact I've used a separate off-site sendmail server on
linux).

3) You've got Outlook 2002 setup correctly (I forget the one setting, but
it's critical... Internet only I think is the name of the one you do NOT
want. YOu want the "Workgroup" or whatever it's called.)

4) Probably too late, but might try Outlook 2000. I've heard 2002 has MORE
problems than 2000 for SQL Mail.

5) Also.. make sure the Outlook client has NO messages in any mailbox,
including the sent, draft, etc. I don't know why, but it seems to be an
issue.

Also, once you've started SQL Server and Agent, in Query Analyzer first do
xp_startmail and observe the resulting message.

Then try xp_stopmail.

If either fails, that would be useful to know.

If you can start/stop it, you're 1/2way there.

Then try xp_readmail. This should show NOTHING.

Then try xp_sendmail and see what happens.

After a minute or so, try xp_readmail. This SHOULD be empty again, but
probably won't be.

At this point see if you can do xp_stopmail.

Not sure if any of this will work, but it may help us diagnose it.

Quite frankly, I've found it to be a black art. When it works, it's great.
Jobs notify you, etc.

When it doesn't, it's a huge PITA.


We have a win2k server, sql 2000 and NO, NO, NO exchange server(all up
to date on service packs).

I have tried repeatadly for days to make this work, and have had no
luck so far.

1. I have a valid profile that tests fine in sql agent and via sql
mail test buttons.

2. I have logged in to the box under that new domain account to
install outlook and configure all the remaining options.

3. I have set both the mssqlserver service and the sqlserveragent
service to run under the domain account that coincides with our pop3
email server, and restarted both of them.

4. I have installed outlook 2002, and I can send and receive emails
just fine from our sql server.

5. As soon as I try to test an email from within a job, the test
fails.

All I wanted to do was just be notified if a job fails. The amount of
time lost on what should have been a 30 minute project is
unbelievable!!!

If anyone has some suggestions, other than the obvious, please let me
know.

Thanks,
Dave

Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mark Molinari | last post by:
Hello, I have a Windows 2003 Enterprise server, acting as the primary domain controller, with 2 instances of SQL Server 2000, Active Directory, and Exchange 2003 running on it. Both sql server...
0
by: Sean Lambert | last post by:
I'm trying to setup SQLMail on a SQL Server. The same server has an application running on it, which successfully uses Outlook as a mail client. I have setup a Mail Profile under Outlook for the...
2
by: Doesn't Matter | last post by:
Greetings I am not looking for a spambot killer or an obfuscator, what I need is something that will achieve the following. Coulr someone pls point me at a suitable script. I run a site which,...
1
by: Gary | last post by:
Assistance Please I have a couple of scheduled jobs that are failing to e-mail notifications on completion (via SQL Agent Mail). I can send a Test e-mail without any problems. I can run the...
9
by: Peter Afonin | last post by:
Hello, I created an e-mail form pretty much as described in this article: http://www.4guysfromrolla.com/webtech/080801-1.shtml. It works great, but I cannot figure out one thing: I need to...
42
by: scorpion53061 | last post by:
Is there a registry setting that I can read in vb.net for windows platforms that will give me the default mail server for the computer (e.g. mail.charter.net)
1
by: Larry Rebich | last post by:
How do I launch the default e-mail agent using Asp.Net 2.0 and VB 2005? I have a button on the page called 'Send e-Mail'. I want to launch the user's default e-mail agent. The message will...
1
by: deepaks85 | last post by:
Dear All, I want to send some data through a form with Multiple attachment in an HTML Format. I have tried it but it is not working for me. I am able to send data without attachment but with the...
5
by: simon2x1 | last post by:
i have a website let assume it is www.mydomain.com i create an email in my control panel service@mydomain.com,am i to put the stmp configuration in my code below if so, why and where will i include...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.