简体   繁体   English

来自sql server的邮件发送问题

[英]Mail sending problem from sql server

mail is configured in sql server and it sends mail properly but sometime when i send mail from sql server then i saw the message like "Mail queued." 邮件是在sql服务器中配置的,它可以正确发送邮件,但是有时当我从sql服务器发送邮件时,我看到了类似“邮件已排队”的消息。 but i dont get the mail. 但我没有收到邮件。 so then i check the mail status by a sp like EXEC msdb.dbo.sysmail_help_queue_sp @queue_type = 'mail'; 因此,然后我通过诸如EXEC msdb.dbo.sysmail_help_queue_sp @queue_type = 'mail';的sp检查邮件状态EXEC msdb.dbo.sysmail_help_queue_sp @queue_type = 'mail'; then i see the mail state is NOTIFIED. 然后我看到邮件状态为NOTIFIED。 then i just stop and start the mail queue using sp called sysmail_stop_sp and sysmail_start_sp . 然后我就使用名为sysmail_stop_spsysmail_start_sp sp停止并启动邮件队列。 it is often happening in my sql server mail is getting queued but not sending. 它经常发生在我的SQL Server邮件中,但是没有发送。 i am not being able to catch the problem why often my sql server mail state becomes Notified. 我无法捕获为什么我的sql服务器邮件状态经常变为已通知的问题。 please help me that how could get come out from this problem. 请帮我解决这个问题。

NOTIFIED means the DB Mail process was send an activation message. NOTIFIED表示DB Mail进程已发送激活消息。 Until a RECEIVE verb is run on the mail queue, no new notifications will be sent. 在邮件队列上运行RECEIVE动词之前,不会发送新的通知。 See Understanding Queue Monitors to understand how this process works. 请参阅了解队列监视器以了解此过程如何工作。

If your queue remains often in NOTIFIED state it must be that your DB Mail process crashes often. 如果您的队列经常保持NOTIFIED状态,则必须是您的DB Mail进程经常崩溃。 Look into the system event log for clues why this is the case. 查看系统事件日志,以找出出现这种情况的线索。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM