Results 1 to 2 of 2

Thread: Help using xp_smtp_sendmail

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2001
    Location
    San Jose
    Posts
    70

    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.

  2. #2
    PowerPoster abhijit's Avatar
    Join Date
    Jun 1999
    Location
    Chit Chat Forum.
    Posts
    3,228
    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
  •  



Click Here to Expand Forum to Full Width