SQL 2005 Database Mail Shutting Down
Jan 24, 2008
I have setup database mail on my SQL 2005 server. It works fine. I am using it to send subscription mail. If the email addresses are good, it works fine. If there is a bad email address rather then skipping that email address, it shuts down and quits the rest of the process.
Is there a way to configure it to log the error and move on? With SQL 2000 all it did was toss it into a queue and hope. The SMTP server dealt with the problems. Now it seems Database Mail is determining there is a problem and giving up.
While I love the new sysmail tables that allow me to track what happened, I hate the fact the the system decides if is too frightened by an error and it needs to runaway and hide.
Also, does anyone know of a good resource for describing the sysmail table relationships?
Thanks in advance for the help,
Thom
View 6 Replies
ADVERTISEMENT
Jan 25, 2008
I have setup database mail on my SQL 2005 server. It works fine. I am using it to send subscription mail. If the email addresses are good, it works fine. If there is a bad email address rather then skipping that email address, it shuts down and quits the rest of the process.
Is there a way to configure it to log the error and move on? With SQL 2000 all it did was toss it into a queue and hope. The SMTP server dealt with the problems. Now it seems Database Mail is determining there is a problem and giving up.
While I love the new sysmail tables that allow me to track what happened, I hate the fact the the system decides if is too frightened by an error and it needs to runaway and hide. [:D]
Also, does anyone know of a good resource for describing the sysmail table relationships?
Thanks in advance for the help,
Thom
View 2 Replies
View Related
Apr 7, 2008
I have configured sql 2005 to send Database mail via SMTP using a profile and account that works fine during a test send. However, when I set myself up as an opperator (with the same email as the test) and tell a job to email me upon sucess, and run the job I dont get the email.I looked at the error log, and get the error that: "an attempt was made to send an email when no email session has been established"Any help is greatly appreciated!Dan
View 2 Replies
View Related
Jan 24, 2008
I recently got the datamail setup and running. I am able to use database test mail to successfully send a test email relay through the SMTP port of the exchange server and then out to the appropriate email adress.
When i use the SP_Send_Dbmail it says Mail Queue. I check the sysmail_allitems it says the Sent_Status is sent but I never receive it.
Everything below executes just fine and places the right information in the right msdb tables. I just never receive the email. Any suggestions on where to look? Service_broker messages is enabled and i restart sqlserveragent also.
use msdb
go
exec msdb..sysmail_start_sp
go
EXEC msdb..sp_send_dbmail
@profile_name = 'DBuser'
@recipients = 'user@yahoo.com',
@subject = 'Test',
@body = 'Test',
@body_format = 'HTML'
View 1 Replies
View Related
Aug 7, 2006
I thought I knew.
Under SQL 2005 SSIS I can successfully send email (using their SNMP task). So I thought that was database mail. But the other day I started reading about Database mail and setting up profiles and it had nothing to do with SSIS tasks! So what is it all about?
TIA,
barkingdog
View 1 Replies
View Related
Feb 19, 2008
Mail is getting 'stuck' in the unsent state. When I send a test mail or notification - the mail ends up in the sysmail table. If I manually double click on databasemail90.exe the email will be sent but for some reason this app is not being fired off automatically. I have tried disabling and re enabling service broker on msdb.
Running the following queries I get
SELECT * from sys.dm_broker_queue_monitors - no results.
SELECT * from sys.service_queues - expected results
InternalMailQueue 843150049 NULL 1 0 SQ SERVICE_QUEUE
ExternalMailQueue 875150163 NULL 1 0 SQ SERVICE_QUEUE
QueryNotificationErrorsQueue 1977058079 NULL 1 0 SQ SERVICE_QUEUE
EventNotificationErrorsQueue 2009058193 NULL 1 0 SQ SERVICE_QUEUE
ServiceBrokerQueue 2041058307 NULL 1 0 SQ SERVICE_QUEUE
View 13 Replies
View Related
Aug 20, 2007
Hi
I have created profiles in my database as mentioned below. now i want to delete the profile created in database.
can some one tell me how to proceed furthur.
i need to delete them permenantly.
EXECUTE msdb.dbo.sysmail_add_account_sp
@account_name = 'MyMailAccount',
@description = 'Mail account for Database Mail',
@email_address = 'makclaire@optonline.net',
@display_name = 'MyAccount',
@username='makclaire@optonline.net',
@password='abc123',
@mailserver_name = 'mail.optonline.net'
-----------------------------------------------------
EXECUTE msdb.dbo.sysmail_add_profile_sp
@profile_name = 'MyMailProfile',
@description = 'Profile used for database mail'
--------------------------------------------------------EXECUTE msdb.dbo.sysmail_add_profileaccount_sp
@profile_name = 'MyMailProfile',
@account_name = 'MyMailAccount',
@sequence_number = 1
-------------------------------------------------------EXECUTE msdb.dbo.sysmail_add_principalprofile_sp
@profile_name = 'MyMailProfile',
@principal_name = 'public',
@is_default = 1 ; Regardskrishna
View 4 Replies
View Related
Feb 9, 2006
Hello, hoping someone might be able to help.
I've set up Database Mail on an instance of 2005 and the test mail works just fine. However, when testing a job (notify on fail, success, whatever) the mail fails to send. Job History last information reads NOTE: Failed to notify 'My Name' via email.
Checked out the Database Mail logs - nothing interesting.
Restarted the Agent service and then checked out the current Agent Log. Found message:
[260] Unable to start mail session (reason: No mail profile defined).
The 'DatabaseMailProfile' key is most certainly defined in the Registry
(at 'HKEY_LOCAL_MACHINE', N'SOFTWAREMicrosoftMicrosoft SQL ServerMSSQL.1SQLServerAgent')
I'm at a loss...why is it telling me no mail profile defined?
I'd be most grateful for any help if anybody else has run across this problem.
Cheers,
Megan
View 2 Replies
View Related
Feb 25, 2008
Hi all asp.net 2.0 users,
I want to send the mail to the users of my system when there is any changes in the database or when i assign any user to the project giving them the information about the changes or asignee.
For this first i have to configrue Database mail in the SQL Server 2005. I tried this by going to the SQL Server 2005 Management Studio -> Object Explorer -> Management -> .............but there i donot find the Database mail option.
Again i went to the configuration tool -> SQL Server Surface Area Configuration
-> Surface Area Configuration....and there I enabled database mail.......
But still I have a problem of getting Database mail Option Object Explorer -> Management -> .......
I have been using SQLServer2005_SSMSEE for this as this is windows installer package.....what is the problem
I am tried for searching this..........and its very important for me.....
Will please help me in this condition its very urgent.....
View 1 Replies
View Related
May 8, 2008
Hello, I've been banging my head trying to figure this one out so I appreciate any help you guys can provide.
I've setup and configured SQL 2005's Database mail and have sent a few plain and simple text emails and I receive it fine at the destination.
I now want to send mime messages but I'm not sure what I'm doing wrong. I took the following source from an email that linked-in sent me which was a mime message:
"
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary='----=_Part_434343432'
------=_Part_434343432
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Plain Text Goes Here
------=_Part_434343432
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
<html>
<body>
<b>HTML Goes here</b>
</body>
</html>
------=_Part_434343432--
"
and put the above text in the @body parameter of the stored proc msdb.dbo.sp_send_dbmail and submitted it.
When I received the email, it didn't appear as html. Instead, I just got the mime message above as plain text in my email as if someone just typed it and sent it to me. What do I need to do for SQL Database Mail to send the above as a MIME message?
Thanks in advance for any help
View 5 Replies
View Related
Dec 4, 2006
Hi all,At this moment I'm trying to get database mail working. According tosome people it should be easy. Well...that is not the case for me.I'm having the following error:The mail could not be sent to the recipients because of the mail serverfailure. (Sending Mail using Account 2 (2006-11-24T08:48:15). ExceptionMessage: Cannot send mails to mail server. (Command not implemented.The server response was: Command not Supported).)SQL Server 2005 is installed on a separate server and the SMTP Serveris Lotus Notes. connecting with port 25.Start and stopping the SQL Server and SQL Server agent i tried already.i tried sysmail_stop_sp and sysmail_start_sp.Sometimes when starting or stopping the Mail with the followingcommands :exec sysmail_stop_spGOexec sysmail_start_spGOI will get the following error:Msg 233, Level 20, State 0, Line 0A transport-level error has occurred when sending the request to theserver. (provider: Shared Memory Provider, error: 0 - No process is onthe other end of the pipe.)So any help would be appreciated.Hennie
View 1 Replies
View Related
Sep 14, 2007
We have our SQL Server 2005 hosted at a datacenter and have only SS Management Studio access (no term serv, no event log, etc.). Also, our hosting company has disabled the Database Mail feature. We have over 60 jobs running on a minute/hourly/daily basis that are critical for our business. It is super important for us to know if and when a job failed.
Given this scenario, how do you suggest we implement monitoring/notification of failed jobs?
View 10 Replies
View Related
Mar 7, 2007
Lokendra writes "I have configured the Database mail profile and account in Sql Server 2005 but the mail is not sending and showing the following error message:
Error,235,The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 1 (2007-03-05T15:16:07). Exception Message: Cannot send mails to mail server. (Mailbox name not allowed. The server response was: Sorry<c/> that domain isn't in my list of allowed rcpthosts.).
),3000,90,,3/5/2007 3:16:07 PM,sa
but while in the same mail set up in previous instance of sql server 2005 the message was sending very well. After installing new instance of sql server 2005 the problem is arising.
Anybody can tell me that what I can do so that i can send mail using the SMTP databasemail account."
View 1 Replies
View Related
May 25, 2000
Hi All,
I am currently facing two problems. Any help will be appreciated. We are using MSSQL SErver 65 , sp5a.
Problem 1: RPC Error....
Has anyone rcvd. the following message & how do we resolve this. ?
Unexpected end-of-message encountered in RPC response
from site 'SGPINT'. (Message 7224)
Problem 2: Shutting SQL Server
We shutdown SQL Server every day by running a dos script with the following command
net stop SQLExecutive & net stop MSSQLServer.
This has been working fine till a few days back. Currently, the SQLExecutive service is shutting down & SQL Service does not shutdown. There are no entries in the errorlog or event logs. The SQL Server hangs & then no-one can connect to it.
Any help will be appreciated.
Thanks !!!!!
Vedanth
View 1 Replies
View Related
May 4, 2004
I have a job that runs daily that imports a huge text file to my database. I do not want the transaction log to track every transaction log in this DTS. Is there a way to import it using my DTS and have the log ignore it?
View 4 Replies
View Related
Feb 20, 2008
Hi all....
Our company use yahoo business mail server for our corporate mails. I know that I can configure database mail with SMTP. But when I try to configure database mail account with yahoo bizmail, I cannot do that. It gets configured but when I test it it doesn't send any mails. Do I need to have any special condiguration for this. SMTP address is smtp.bizmail.yahoo.com. Also I have specified the Authentication using my user name and password. Please help
Thanks
Rajesh
View 10 Replies
View Related
Sep 1, 2006
Hello
I have got a script which gives the mail to the dba mail box when database backup fails.
In the script I want to make a change so that I get the particular database name , on what ever database i implement.
Can you tell me some suggestions.
The script I am using is :
use master
go
alter PROCEDURE dbo.SendMail
@to VARCHAR(255),
@subject VARCHAR(255),
@message VARCHAR(8000)
AS
BEGIN
SET NOCOUNT ON;
DECLARE
@rv INT,
@from VARCHAR(64),
@server VARCHAR(255);
SELECT
@from = 'testsql2000@is.depaul.edu',
@server = 'smtp.depaul.edu';
select @message = @message + char(13) + Char(13) + @@servername + '-'+ db_name()+ '-' + 'Backup Status Failed' + Char(13)
EXEC @rv = dbo.xp_smtp_sendmail
@to = @to,
@from = @from,
@message = @message,
@subject = @subject,
@server = @server;
END
GO
--- After the above script is run the following should be given in the 2nd step when
--- the backup jobs are scheduled ------
exec master.dbo.sendmail
@to = 'dvaddi@depaul.edu',
@subject =' Test sqlserver 2000',
@message = '' ;
Thanks
View 4 Replies
View Related
Mar 9, 2007
Hi every body
I want to send a simple mail using DATABASE MAIL feature in SQL SERVER 2005.
I've defined a public profile.
I've enabled Database Mail stored procedures through the Surface Area Configuration .
but I can't send a mail with sp_send_dbmail stored procedure in 'msdb' database .
when I execute sp_send_dbmail in the Managment Studio the message is
"Mail queued" but the mail is not sent.
Could it be related to Service Broker?Because the Surface Area Configuration indicates:'this inctance does not have a Service Broker endpoint'.If so, how should I make an endpoint?
here is the log file after executing sp_send_dbmail:
1) "DatabaseMail process is started"
2) "The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 2 (2007-03-08T00:49:29). Exception Message: Could not connect to mail server. (No connection could be made because the target machine actively refused it)."
The DatabaseMail90.exe is triggred ,so the mail is transfered to the mail queue but DatabaseMail90.exe couldn't give the mail to SMTP server.The promlem is what should I do to make DatabaseMail90.exe able to connect to the server?
please help me.
POUYAN
View 21 Replies
View Related
Aug 27, 2014
When I start SQL Server Agent it's shutting down minute after starting. I tried to set Alerts to send email. After I configured Database Mail ,I was able to send test email , however after that SQL Server Agent started to misbehave.
View 3 Replies
View Related
Nov 6, 2007
Hi,
Can anyone please tell me the difference between Database Mail and SQL Mail.
Thanks in Advance
R.K.Nair
RKNAIR
View 1 Replies
View Related
Jan 26, 2007
Hi
I am trying to change the host database (MSDB) of Database Mail to some new database (say NewDB) and
unable to make DatabaseMail90.exe point to this new database (NewDB).
Is it possible to do this?
Thanks
Uddemarri
View 4 Replies
View Related
Jun 16, 2006
have new sql 2005 install. I thought I setup the mail correctly. I setup an operator and could send test email to operator. I then setup a job to send email to the operator when job completes. Got the error below
Date 6/16/2006 8:45:57 AM
Log SQL Agent (Current - 6/16/2006 8:45:00 AM)
Message
[264] An attempt was made to send an email when no email session has been established
ANy help or links to setting up email on sql 2005
View 1 Replies
View Related
Sep 13, 2006
HI,when configuring database mail in sql server 2005 i am getting the below error.The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 4 (2006-09-13T13:50:18). Exception Message: Could not connect to mail server. (An established connection was aborted by the software in your host machine). )when i ping the smtp server, i could successfully connect to the smtp server. but when i send a test email i am getting the above error message saying not able to connect to the server.please help
View 2 Replies
View Related
Aug 22, 2007
Hello,
I am trying to use database mail to send out a list of data. I am using a number of queries to build a string and each query needs to have its results displayed on a new line when the email is viewed using Outlook.
I am having trouble adding a line break into the string. Any pointers would be great.
Thanks Alot
Steve
View 2 Replies
View Related
Apr 9, 2008
What is equavalent in oracle database which does the job similar to Database Mail in sql server.
i use database mail in sql server to send mail.
I do have jobs set, which gets fired every ten minutes. it uses msdb.dbo.sp_send_dbmail
and i have a profile created under database mail which has all the info related to the smtp email acct.
our client now wants our project to also work on oracle.
Thank you very much for the information.
View 1 Replies
View Related
May 2, 2008
hi,
In database mail,
while execting sp_send_dbmail i want foolowing thing to be done.
@recipient=select emaild from <tablename>
Is it possible ?
View 2 Replies
View Related
May 26, 2008
Please Concentrate on colored TSQL;
I should i pass dynamic text to database mail in @body.
Declare @charstrn varchar(20);
Declare @C_name varchar(20);
Declare @l_code nvarchar(20);
SET @charstrn = @S_name+'Welcome to India.You are now registered Student under counslerName'+@C_name+'BranchOffice'+@l_code;
EXEC msdb.dbo.sp_send_dbmail
@profile_name = 'Pradeepvarun',
@recipients = @emailid ,
@body = (select @charstrn),
@subject = 'You are now Registered in APT';
View 1 Replies
View Related
Jun 6, 2008
Hi All,
I am going made here. I set up database mail on a 2005 box. It was working fine, untill I needed to reboot it. Now it does not.
If I run a test with 2000 it works fine. However 2005 does not.
I go to the test mail bit and it says its sent, but it never turns up. So I ran:-
SELECT * FROM msdb.dbo.sysmail_event_log
And I get the fowwloing error:-
259error2008-06-06 16:38:24.493Could not retrieve item from the queue.5708NULLNULL2008-06-06 16:38:24.493UK_domainUSER
Any ideas at all would be gratfull aprisiated!!!
Thanks
Dave
Dave Dunckley says there is a law for the rich and a law for the poor and a law for
Dirty Davey.
View 8 Replies
View Related
Mar 19, 2007
I have an application which allows communication through an internal blog. We have to monitor all communications for compliance but I'm unable to find a solution to my problem and hope someone can help.
The application allows IM/Email/Blog entries to authenticated members. We can take these communications and send them to our exchange server. However the FROM address is always the profile owner setup in SQL.
Question:
I want the FROM address to list the person starting the conversation and not setup individual profiles for each person using the application. We already have the ability to capture the communication through the application and send it to exchange but the FROM address doesn't reflect the person initiating the conversations.
Is this possible?
Thank you, MP
View 1 Replies
View Related
Mar 30, 2008
Hi, i need to send emails from sql server. to configure the setting i need to open database mail configuration windows right? But i dont have database mail icon or tab under management folder. I only have archieve under server roles. Help me.. Urgent.Thanks
View 7 Replies
View Related
Feb 2, 2007
I'm keen to use database Mail in SQL 2005. It seems to work well and save's me having to implement a queue, audit logging for sent/errored etc, as SQL2005 can take care of all of that for me.
heres the but..
Is there any way to specify the "From" email address in sp_send_dbmail I know you specify it as part of email account & profile but I want to override that.
I just wanted to be able to keep an audit of all the emails that where sent from an asp.net website and thought i could get that functionality "out of the box" with SQL 2005 and DB Mail, but with out being able to set the from: address its not going to work
Any one have a sugesstion?
Thanks
View 1 Replies
View Related
Apr 9, 2008
Dear Profetionals ,
I am new in SQL I would like to set up a Database mail but I have no Mail Server in my Domain. So, I have to use yahoo pop3 and smtp whitch are mentioned here :
Incoming Mail (POP3) Server:
plus.pop.mail.yahoo.com (Use SSL, port: 995)
Outgoing Mail (SMTP) Server:
plus.smtp.mail.yahoo.com (Use SSL, port: 465, use authentication)
Account Name/Login Name:
Your Yahoo! Mail ID (your email address without the "@yahoo.com")
Email Address:
Your Yahoo! Mail address (e.g., user@yahoo.com)
Password:
Your Yahoo! Mail password
I used my yahoo email account and plus.smtp.mail.yahoo.com port: 465 to configure the Databast Mail
But no test mail recieved , Then I tried SQL help and found this SELECT * FROM msdb.dbo.sysmail_event_log ;i used this SP and the result was :
1 information 2008-04-08 14:53:53.397 DatabaseMail process is started 1188 NULL NULL 2008-04-08 14:53:53.397 IMPSDevuser2 error 2008-04-08 14:54:11.190 The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 1 (2008-04-08T14:54:10). Exception Message: Could not connect to mail server. (No such host is known). ) 1188 1 NULL 2008-04-08 14:54:11.190 saWould you please help me find the error?
View 1 Replies
View Related
Apr 12, 2006
I am trying to configure Database Mail on a new installation of SQL Server 2005 and the 'DatabaseMailUserRole' does not exist.
How do I add this role to the server?
View 8 Replies
View Related