473,705 Members | 2,383 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3868
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.goo gle.com...
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.goo gle.com...
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.co m> wrote in message news:<lP******* *************@t wister.nyroc.rr .com>...
"Dave" <fu*****@yahoo. com> wrote in message
news:f5******** *************** ***@posting.goo gle.com...
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
2026
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 and sql server agent use the same domain startup account. I set up a mail profile for both sql server and sql server agent. I used this profile to configure SQL Mail and everything is working properly. However, when I try to configure the sql...
0
1220
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 current login, which is the same login that the SQL Agent is running under. After going through the SQLMail setup, when I go to the SQL Server Agent Properties, I'm not able to select a mail profile (there is no drop-down list). The only...
2
1992
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, in part, allows a runaway child or their parents to communicate with each other by messages, I would like them to be able to do this by e-mail however, neither side, and particularily the child side should have their e-mail address divulged. What...
1
1609
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 jobs manually, and the e-mail notification works effectively. Left to run according to the schedule, and no e-mail notification is generated.
9
1666
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 insert a URL at the bottom of the message body. How would I do this? If I insert just HTML - it displays HTML. I tried Response.Write method, StringBuilder and HTMLTextWriter classes - no luck so far.
42
3526
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
1370
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 contain a send to address, subject and text. No attachments will be sent. Thanks,
1
3207
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 code for attachment, I am not able to send anything. I get blank email. Can you please help me on this? Here is the html form:
5
7823
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 it secondly in the message it want to include an image with the message so the receiver will so the message and the image(company logo) how can i do that. $to = "Joe Doe <joe.doe@domain.com>"; $from = "Paul Fred <service@mydomain.com>";...
0
8767
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8689
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9273
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7893
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6605
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5933
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4439
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3137
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2081
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.