TechTalkz.com Logo

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Microsoft > Microsoft SQL Server

Notices

xp_smtp_sendmail & Exchange Server

Microsoft SQL Server


Reply
 
Thread Tools Display Modes
Old 11-12-2007, 05:12 PM   #1
mildlimit@gmail.com
Guest
 
Posts: n/a
xp_smtp_sendmail & Exchange Server

I'm trying to use xp_smtp_sendmail for sending email from SQL Server
2000. But unfortunatly it doesn't work fine 8( I tested
xp_smtp_sendmail in Query Analyzer, wrote code like

master.dbo.xp_smtp_sendmail
@FROM = N'user',
@TO = N'user@company',
@priority = N'NORMAL',
@subject = N'Hello SQL Server SMTP Mail',
@message = N'Goodbye MAPI and Outlook',
@type = N'text/plain',
@server = N'mail2000'

The xp_smtp_sendmail returned 0, but I didn't receive the letter. What
does it mean? How to configure my Exchange server step by step and
test it?
  Reply With Quote
Old 11-12-2007, 05:14 PM   #2
John Bell
Guest
 
Posts: n/a
RE: xp_smtp_sendmail & Exchange Server

Hi

Have you checked to see if the exchange server is configured to receive smtp
mail from your machine?

Use a fully qualified name for the server or an IP address. Make sure that
it is receiving SMTP on port 25, if not specify a port number. You can test
the connection to the server using the ping parameter e.g

declare @rc int
exec @rc = master.dbo.xp_smtp_sendmail @server = N'mail2000.sqldev.net',
@ping = 1
select @rc

John

"" wrote:

> I'm trying to use xp_smtp_sendmail for sending email from SQL Server
> 2000. But unfortunatly it doesn't work fine 8( I tested
> xp_smtp_sendmail in Query Analyzer, wrote code like
>
> master.dbo.xp_smtp_sendmail
> @FROM = N'user',
> @TO = N'user@company',
> @priority = N'NORMAL',
> @subject = N'Hello SQL Server SMTP Mail',
> @message = N'Goodbye MAPI and Outlook',
> @type = N'text/plain',
> @server = N'mail2000'
>
> The xp_smtp_sendmail returned 0, but I didn't receive the letter. What
> does it mean? How to configure my Exchange server step by step and
> test it?
>

  Reply With Quote
Reply

Thread Tools
Display Modes



< Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT +5.5. The time now is 05:41 PM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2009, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional