October 25, 2012 at 3:41 am
Hello,
I've got a very strange problem, I can send mail with the following statement:
declare @Error int
EXEC @Error = msdb.dbo.sp_send_dbmail
@profile_name = 'SQL Mail',
@recipients='<mymailaddress>',
@subject = 'Database Mail Test',
@body = 'This is a test e-mail sent from Database Mail on <server>\<instance>',
@body_format = 'Text' ;
select @Error
When I change the subject or body, the mail will not be send?!
How can this happen?
Thanks for your reply...
Greetings Mischa.
October 25, 2012 at 3:49 am
can you post the complete changed database mail SP call you are using.
-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done;-)
October 25, 2012 at 4:18 am
What error message do you get?
October 25, 2012 at 4:37 am
Thanks for the replies! I have the solution, mail was not configured completely. Run this script:
sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
sp_configure 'Database Mail XPs', 1;
GO
RECONFIGURE
GO
Problem solved! I just do not understand why the test message is sending correctly when these options are not set...
Best regards,
Mischa
October 25, 2012 at 4:40 am
Mischa E.J. Hoogendoorn (10/25/2012)
I just do not understand why the test message is sending correctly when these options are not set...
i stil dont believe this , if the mail was not configurd , msgs cant be sent :w00t:
-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done;-)
October 25, 2012 at 4:48 am
I just tried it, and it worked... Same server, nothing else changed, except for a reboot.
Best regards,
Mischa
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply