|
-
Nov 4th, 2002, 04:26 PM
#1
Thread Starter
Lively Member
Help using xp_smtp_sendmail
I am trying to develop email functionaliity.
I tryed creating this sproc:
CREATE PROCEDURE sp_STML AS
declare @rc int
exec @rc = master.dbo.xp_smtp_sendmail
@FROM_NAME = 'Howard Kline',
@TO = '[email protected]',
@subject = 'Hello SQL Server SMTP Mail',
@server = 'caexmta5.amd.com'
select RC = @rc
GO
I get rc = 1 when I execute this.
What am I doing wring
Any ideas?
Thanks.
-
Nov 5th, 2002, 06:24 AM
#2
Hi Howard,
Have you got MSExchange setup? There are a lot of configuration issues involved. You need to have the propert permissions from your mail server to enable you to send mail.
Only then will you be able to use the stored proc to send mail. Most SMTP mail Servers check if the user is actually logged in.
Cheers!
Abhijit
Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
save a blobFileStreamDataTable To Text Filemy blog
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|