dbTalk Databases Forums  

SMTP in my database server

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss SMTP in my database server in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ray5531
 
Posts: n/a

Default SMTP in my database server - 04-29-2005 , 04:11 PM






I basically need to send emails from MY DTS packages and also some of my
stored procedures.There is no way of having any MAPI compliant software
installed on the productions database server,so I came up with the idea of
installing an SMTP server and use the extended stored procedure introduced
here(http://www.sqldev.net/xp/xpsmtp.htm). Now my database admin is nagging
that I don't like to have something running in the SQL SERVER address space
and my network admin is nagging that he dosen't want to have SMTP server
installed on the production,because Microsoft dosen't recommand this. I just
wondered whay you guys have ever done in terms of sending emails from your
sql server.Is there a way of sending emails from sql server using another
SMTP server on another box(same domain thought)?



Reply With Quote
  #2  
Old   
Narayana Vyas Kondreddi
 
Posts: n/a

Default Re: SMTP in my database server - 04-30-2005 , 05:28 AM






Yes of course. SMTP service need not be installed on the SQL Server. In my
case, I have different mailing server, with SMTP on it. And I specify the
SMTP server name as a parameter to the xp_smtp_sendmail stored procedure.
--
Vyas, MVP (SQL Server)
SQL Server Articles and Code Samples @ http://vyaskn.tripod.com/


"Ray5531" <RayAll (AT) microsft (DOT) com> wrote

Quote:
I basically need to send emails from MY DTS packages and also some of my
stored procedures.There is no way of having any MAPI compliant software
installed on the productions database server,so I came up with the idea of
installing an SMTP server and use the extended stored procedure introduced
here(http://www.sqldev.net/xp/xpsmtp.htm). Now my database admin is
nagging
that I don't like to have something running in the SQL SERVER address
space
and my network admin is nagging that he dosen't want to have SMTP server
installed on the production,because Microsoft dosen't recommand this. I
just
wondered whay you guys have ever done in terms of sending emails from your
sql server.Is there a way of sending emails from sql server using another
SMTP server on another box(same domain thought)?





Reply With Quote
  #3  
Old   
Ray5531
 
Posts: n/a

Default Re: SMTP in my database server - 05-01-2005 , 01:16 PM



Is there a firewall between your sql server and your mailing servers ? If
yes how come xp_smtp_sendmail opens up a TCP/IP socket to the mailing
server? In my case there is a firewall between my database serevr and also
external SMTP servers...

Thanks for your help,I'm so stuck to this problem.

Bye
"Narayana Vyas Kondreddi" <answer_me (AT) hotmail (DOT) com> wrote

Quote:
Yes of course. SMTP service need not be installed on the SQL Server. In my
case, I have different mailing server, with SMTP on it. And I specify the
SMTP server name as a parameter to the xp_smtp_sendmail stored procedure.
--
Vyas, MVP (SQL Server)
SQL Server Articles and Code Samples @ http://vyaskn.tripod.com/


"Ray5531" <RayAll (AT) microsft (DOT) com> wrote in message
news:uU$Mz$PTFHA.3464 (AT) tk2msftngp13 (DOT) phx.gbl...
I basically need to send emails from MY DTS packages and also some of my
stored procedures.There is no way of having any MAPI compliant software
installed on the productions database server,so I came up with the idea
of
installing an SMTP server and use the extended stored procedure
introduced
here(http://www.sqldev.net/xp/xpsmtp.htm). Now my database admin is
nagging
that I don't like to have something running in the SQL SERVER address
space
and my network admin is nagging that he dosen't want to have SMTP server
installed on the production,because Microsoft dosen't recommand this. I
just
wondered whay you guys have ever done in terms of sending emails from
your
sql server.Is there a way of sending emails from sql server using another
SMTP server on another box(same domain thought)?







Reply With Quote
  #4  
Old   
Gert E.R. Drapers
 
Posts: n/a

Default Re: SMTP in my database server - 05-02-2005 , 06:38 PM



The equivalent to XPSMTP is available for DTS 2000 as a DTS Custom Task,
see:
http://sqldev.net/dts/SMTPTask.htm

GertD (AT) SQLDev (DOT) Net

Please reply only to the newsgroups.
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.
Copyright © SQLDev.Net 1991-2005 All rights reserved.

"Ray5531" <RayAll (AT) microsft (DOT) com> wrote

Quote:
I basically need to send emails from MY DTS packages and also some of my
stored procedures.There is no way of having any MAPI compliant software
installed on the productions database server,so I came up with the idea of
installing an SMTP server and use the extended stored procedure introduced
here(http://www.sqldev.net/xp/xpsmtp.htm). Now my database admin is
nagging
that I don't like to have something running in the SQL SERVER address
space
and my network admin is nagging that he dosen't want to have SMTP server
installed on the production,because Microsoft dosen't recommand this. I
just
wondered whay you guys have ever done in terms of sending emails from your
sql server.Is there a way of sending emails from sql server using another
SMTP server on another box(same domain thought)?





Reply With Quote
  #5  
Old   
Gert E.R. Drapers
 
Posts: n/a

Default Re: SMTP in my database server - 05-02-2005 , 06:41 PM



You would have to open port 25 (or if you use an other port which ever you
are using) for traffic from SQL to the SMTP server. You can also look at an
SMTP relay server solution.

GertD (AT) SQLDev (DOT) Net

Please reply only to the newsgroups.
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.
Copyright © SQLDev.Net 1991-2005 All rights reserved.

"Ray5531" <Ray5531 (AT) microsoft (DOT) com> wrote

Quote:
Is there a firewall between your sql server and your mailing servers ? If
yes how come xp_smtp_sendmail opens up a TCP/IP socket to the mailing
server? In my case there is a firewall between my database serevr and also
external SMTP servers...

Thanks for your help,I'm so stuck to this problem.

Bye
"Narayana Vyas Kondreddi" <answer_me (AT) hotmail (DOT) com> wrote in message
news:uggCK9WTFHA.3216 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Yes of course. SMTP service need not be installed on the SQL Server. In
my
case, I have different mailing server, with SMTP on it. And I specify the
SMTP server name as a parameter to the xp_smtp_sendmail stored procedure.
--
Vyas, MVP (SQL Server)
SQL Server Articles and Code Samples @ http://vyaskn.tripod.com/


"Ray5531" <RayAll (AT) microsft (DOT) com> wrote in message
news:uU$Mz$PTFHA.3464 (AT) tk2msftngp13 (DOT) phx.gbl...
I basically need to send emails from MY DTS packages and also some of my
stored procedures.There is no way of having any MAPI compliant software
installed on the productions database server,so I came up with the idea
of
installing an SMTP server and use the extended stored procedure
introduced
here(http://www.sqldev.net/xp/xpsmtp.htm). Now my database admin is
nagging
that I don't like to have something running in the SQL SERVER address
space
and my network admin is nagging that he dosen't want to have SMTP server
installed on the production,because Microsoft dosen't recommand this. I
just
wondered whay you guys have ever done in terms of sending emails from
your
sql server.Is there a way of sending emails from sql server using
another
SMTP server on another box(same domain thought)?









Reply With Quote
  #6  
Old   
Ray5531
 
Posts: n/a

Default Re: SMTP in my database server - 05-02-2005 , 07:38 PM



Is that relay server for free?
Where should I get it from?

Thanks fro your reply.

"Gert E.R. Drapers" <GertD@SQLDevNet> wrote

Quote:
You would have to open port 25 (or if you use an other port which ever you
are using) for traffic from SQL to the SMTP server. You can also look at
an SMTP relay server solution.

GertD (AT) SQLDev (DOT) Net

Please reply only to the newsgroups.
This posting is provided "AS IS" with no warranties, and confers no
rights.
You assume all risk for your use.
Copyright © SQLDev.Net 1991-2005 All rights reserved.

"Ray5531" <Ray5531 (AT) microsoft (DOT) com> wrote in message
news:u7OgQnnTFHA.616 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
Is there a firewall between your sql server and your mailing servers ? If
yes how come xp_smtp_sendmail opens up a TCP/IP socket to the mailing
server? In my case there is a firewall between my database serevr and
also external SMTP servers...

Thanks for your help,I'm so stuck to this problem.

Bye
"Narayana Vyas Kondreddi" <answer_me (AT) hotmail (DOT) com> wrote in message
news:uggCK9WTFHA.3216 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Yes of course. SMTP service need not be installed on the SQL Server. In
my
case, I have different mailing server, with SMTP on it. And I specify
the
SMTP server name as a parameter to the xp_smtp_sendmail stored
procedure.
--
Vyas, MVP (SQL Server)
SQL Server Articles and Code Samples @ http://vyaskn.tripod.com/


"Ray5531" <RayAll (AT) microsft (DOT) com> wrote in message
news:uU$Mz$PTFHA.3464 (AT) tk2msftngp13 (DOT) phx.gbl...
I basically need to send emails from MY DTS packages and also some of
my
stored procedures.There is no way of having any MAPI compliant software
installed on the productions database server,so I came up with the idea
of
installing an SMTP server and use the extended stored procedure
introduced
here(http://www.sqldev.net/xp/xpsmtp.htm). Now my database admin is
nagging
that I don't like to have something running in the SQL SERVER address
space
and my network admin is nagging that he dosen't want to have SMTP
server
installed on the production,because Microsoft dosen't recommand this. I
just
wondered whay you guys have ever done in terms of sending emails from
your
sql server.Is there a way of sending emails from sql server using
another
SMTP server on another box(same domain thought)?











Reply With Quote
  #7  
Old   
Gert E.R. Drapers
 
Posts: n/a

Default Re: SMTP in my database server - 05-03-2005 , 05:17 PM



There are free relay server, see
http://www.google.com/search?sourcei...P+relay+server

GertD (AT) SQLDev (DOT) Net

Please reply only to the newsgroups.
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.
Copyright © SQLDev.Net 1991-2005 All rights reserved.

"Ray5531" <RayAll (AT) microsft (DOT) com> wrote

Quote:
Is that relay server for free?
Where should I get it from?

Thanks fro your reply.

"Gert E.R. Drapers" <GertD@SQLDevNet> wrote in message
news:u%23VC1B3TFHA.2872 (AT) TK2MSFTNGP14 (DOT) phx.gbl...
You would have to open port 25 (or if you use an other port which ever
you are using) for traffic from SQL to the SMTP server. You can also look
at an SMTP relay server solution.

GertD (AT) SQLDev (DOT) Net

Please reply only to the newsgroups.
This posting is provided "AS IS" with no warranties, and confers no
rights.
You assume all risk for your use.
Copyright © SQLDev.Net 1991-2005 All rights reserved.

"Ray5531" <Ray5531 (AT) microsoft (DOT) com> wrote in message
news:u7OgQnnTFHA.616 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
Is there a firewall between your sql server and your mailing servers ?
If yes how come xp_smtp_sendmail opens up a TCP/IP socket to the
mailing server? In my case there is a firewall between my database
serevr and also external SMTP servers...

Thanks for your help,I'm so stuck to this problem.

Bye
"Narayana Vyas Kondreddi" <answer_me (AT) hotmail (DOT) com> wrote in message
news:uggCK9WTFHA.3216 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Yes of course. SMTP service need not be installed on the SQL Server. In
my
case, I have different mailing server, with SMTP on it. And I specify
the
SMTP server name as a parameter to the xp_smtp_sendmail stored
procedure.
--
Vyas, MVP (SQL Server)
SQL Server Articles and Code Samples @ http://vyaskn.tripod.com/


"Ray5531" <RayAll (AT) microsft (DOT) com> wrote in message
news:uU$Mz$PTFHA.3464 (AT) tk2msftngp13 (DOT) phx.gbl...
I basically need to send emails from MY DTS packages and also some of
my
stored procedures.There is no way of having any MAPI compliant
software
installed on the productions database server,so I came up with the
idea of
installing an SMTP server and use the extended stored procedure
introduced
here(http://www.sqldev.net/xp/xpsmtp.htm). Now my database admin is
nagging
that I don't like to have something running in the SQL SERVER address
space
and my network admin is nagging that he dosen't want to have SMTP
server
installed on the production,because Microsoft dosen't recommand this.
I
just
wondered whay you guys have ever done in terms of sending emails from
your
sql server.Is there a way of sending emails from sql server using
another
SMTP server on another box(same domain thought)?













Reply With Quote
  #8  
Old   
Ray5531
 
Posts: n/a

Default Re: SMTP in my database server - 05-03-2005 , 08:27 PM



Thanks Gert,
It really helped.


"Gert E.R. Drapers" <GertD@SQLDevNet> wrote

Quote:
There are free relay server, see
http://www.google.com/search?sourcei...P+relay+server

GertD (AT) SQLDev (DOT) Net

Please reply only to the newsgroups.
This posting is provided "AS IS" with no warranties, and confers no
rights.
You assume all risk for your use.
Copyright © SQLDev.Net 1991-2005 All rights reserved.

"Ray5531" <RayAll (AT) microsft (DOT) com> wrote in message
news:OWlo2h3TFHA.580 (AT) TK2MSFTNGP15 (DOT) phx.gbl...
Is that relay server for free?
Where should I get it from?

Thanks fro your reply.

"Gert E.R. Drapers" <GertD@SQLDevNet> wrote in message
news:u%23VC1B3TFHA.2872 (AT) TK2MSFTNGP14 (DOT) phx.gbl...
You would have to open port 25 (or if you use an other port which ever
you are using) for traffic from SQL to the SMTP server. You can also
look at an SMTP relay server solution.

GertD (AT) SQLDev (DOT) Net

Please reply only to the newsgroups.
This posting is provided "AS IS" with no warranties, and confers no
rights.
You assume all risk for your use.
Copyright © SQLDev.Net 1991-2005 All rights reserved.

"Ray5531" <Ray5531 (AT) microsoft (DOT) com> wrote in message
news:u7OgQnnTFHA.616 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
Is there a firewall between your sql server and your mailing servers ?
If yes how come xp_smtp_sendmail opens up a TCP/IP socket to the
mailing server? In my case there is a firewall between my database
serevr and also external SMTP servers...

Thanks for your help,I'm so stuck to this problem.

Bye
"Narayana Vyas Kondreddi" <answer_me (AT) hotmail (DOT) com> wrote in message
news:uggCK9WTFHA.3216 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Yes of course. SMTP service need not be installed on the SQL Server.
In my
case, I have different mailing server, with SMTP on it. And I specify
the
SMTP server name as a parameter to the xp_smtp_sendmail stored
procedure.
--
Vyas, MVP (SQL Server)
SQL Server Articles and Code Samples @ http://vyaskn.tripod.com/


"Ray5531" <RayAll (AT) microsft (DOT) com> wrote in message
news:uU$Mz$PTFHA.3464 (AT) tk2msftngp13 (DOT) phx.gbl...
I basically need to send emails from MY DTS packages and also some of
my
stored procedures.There is no way of having any MAPI compliant
software
installed on the productions database server,so I came up with the
idea of
installing an SMTP server and use the extended stored procedure
introduced
here(http://www.sqldev.net/xp/xpsmtp.htm). Now my database admin is
nagging
that I don't like to have something running in the SQL SERVER address
space
and my network admin is nagging that he dosen't want to have SMTP
server
installed on the production,because Microsoft dosen't recommand this.
I
just
wondered whay you guys have ever done in terms of sending emails from
your
sql server.Is there a way of sending emails from sql server using
another
SMTP server on another box(same domain thought)?















Reply With Quote
  #9  
Old   
Perry Provost
 
Posts: n/a

Default Re: SMTP in my database server - 05-07-2005 , 10:55 PM



One thing about the SMTPTask is that it expires as of June 2005. It is
mentioned at the very bottom of page. I don't know if that means it stops
working, or what.

"Gert E.R. Drapers" wrote:

Quote:
The equivalent to XPSMTP is available for DTS 2000 as a DTS Custom Task,
see:
http://sqldev.net/dts/SMTPTask.htm

GertD (AT) SQLDev (DOT) Net

Please reply only to the newsgroups.
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.
Copyright © SQLDev.Net 1991-2005 All rights reserved.

"Ray5531" <RayAll (AT) microsft (DOT) com> wrote in message
news:uU$Mz$PTFHA.3464 (AT) tk2msftngp13 (DOT) phx.gbl...
I basically need to send emails from MY DTS packages and also some of my
stored procedures.There is no way of having any MAPI compliant software
installed on the productions database server,so I came up with the idea of
installing an SMTP server and use the extended stored procedure introduced
here(http://www.sqldev.net/xp/xpsmtp.htm). Now my database admin is
nagging
that I don't like to have something running in the SQL SERVER address
space
and my network admin is nagging that he dosen't want to have SMTP server
installed on the production,because Microsoft dosen't recommand this. I
just
wondered whay you guys have ever done in terms of sending emails from your
sql server.Is there a way of sending emails from sql server using another
SMTP server on another box(same domain thought)?






Reply With Quote
  #10  
Old   
Jim Vierra
 
Posts: n/a

Default Re: SMTP in my database server - 05-08-2005 , 01:38 AM



Here is a script that can be added to DTS to send mail. It is what the below EXE is made out of but with a COM wrapper.

Stay tuned and I will build a COM wrapper for it or you can use it as is. You can easily modify it to meet our needs in DTS. CDO is installed on all Windows systems from 2000 on.


function SendMail(strTo, strFrom, strSubject,strText,strSMTPServer) 'As Boolean
On Error Resume Next
SendMail = True
Set objEmail = CreateObject("CDO.Message")
If Err = 0 Then
objEmail.From = strFrom
objEmail.To = strTo
objEmail.Subject = strSubject
objEmail.Textbody = strText
objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = strSMTPServer
objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objEmail.Configuration.Fields.Update
objEmail.Send
If Err <> 0 Then
SendMail = False
End If
End If
End Function

--
Jim Vierra

"Perry Provost" <Perry Provost (AT) discussions (DOT) microsoft.com> wrote

Quote:
One thing about the SMTPTask is that it expires as of June 2005. It is
mentioned at the very bottom of page. I don't know if that means it stops
working, or what.

"Gert E.R. Drapers" wrote:

The equivalent to XPSMTP is available for DTS 2000 as a DTS Custom Task,
see:
http://sqldev.net/dts/SMTPTask.htm

GertD (AT) SQLDev (DOT) Net

Please reply only to the newsgroups.
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.
Copyright © SQLDev.Net 1991-2005 All rights reserved.

"Ray5531" <RayAll (AT) microsft (DOT) com> wrote in message
news:uU$Mz$PTFHA.3464 (AT) tk2msftngp13 (DOT) phx.gbl...
I basically need to send emails from MY DTS packages and also some of my
stored procedures.There is no way of having any MAPI compliant software
installed on the productions database server,so I came up with the idea of
installing an SMTP server and use the extended stored procedure introduced
here(http://www.sqldev.net/xp/xpsmtp.htm). Now my database admin is
nagging
that I don't like to have something running in the SQL SERVER address
space
and my network admin is nagging that he dosen't want to have SMTP server
installed on the production,because Microsoft dosen't recommand this. I
just
wondered whay you guys have ever done in terms of sending emails from your
sql server.Is there a way of sending emails from sql server using another
SMTP server on another box(same domain thought)?






Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.