473,230 Members | 1,407 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,230 software developers and data experts.

Using External SMTP Server Vs. IIS SMTP Server

Hi Gang

Our network administrator does not want to install the IIS SMTP server on
our intranet. He wants me to use our existing SMTP server
"mail.smpi.siemens.ca". Can I do this with IIS?? Is this a setting in an
ASP if I'm not running the IIS SMTP server?

We are running on Windows 2000 SP4 with IIS5.

Thanks
Andy
Jul 19 '05 #1
11 3388
CDO has the ability to specify the server, CDONTS does not.

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Andy" <an***********@siemens-nospam.com> wrote in message
news:10***************@pbht107x.smpi.siemens.ca...
Hi Gang

Our network administrator does not want to install the IIS SMTP server on
our intranet. He wants me to use our existing SMTP server
"mail.smpi.siemens.ca". Can I do this with IIS?? Is this a setting in an
ASP if I'm not running the IIS SMTP server?

We are running on Windows 2000 SP4 with IIS5.

Thanks
Andy

Jul 19 '05 #2
> our intranet. He wants me to use our existing SMTP server
"mail.smpi.siemens.ca". Can I do this with IIS?


Do you mean in ASP? That depends, what mail component are you using?

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
Jul 19 '05 #3
Hi Aaron

Well... we just found out today that our CDONTS does not work in IIS 5 so
I'm trying to convert my code to CDOSYS (with no clue as to what I'm doing).

So if I have the following code, which works fine with CDONTS... how do I
get it to CDOSYS pointing to the external SMTP server
"mail.smpi.siemens.ca"?

Dim mail
Set mail=CreateObject("CDONTS.NewMail")
mail.From = Session("Email")
mail.To = "an***********@siemens.com"
mail.Subject = "Employee Expense Report"
mail.Body = "The body text goes here."
mail.Send
Set mail = Nothing

Please help
Andy
"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
our intranet. He wants me to use our existing SMTP server
"mail.smpi.siemens.ca". Can I do this with IIS?


Do you mean in ASP? That depends, what mail component are you using?

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/

Jul 19 '05 #4
http://www.aspfaq.com/2339

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Andy" <an***********@siemens-nospam.com> wrote in message
news:10***************@pbht107x.smpi.siemens.ca...
Hi Aaron

Well... we just found out today that our CDONTS does not work in IIS 5 so
I'm trying to convert my code to CDOSYS (with no clue as to what I'm doing).
So if I have the following code, which works fine with CDONTS... how do I
get it to CDOSYS pointing to the external SMTP server
"mail.smpi.siemens.ca"?

Dim mail
Set mail=CreateObject("CDONTS.NewMail")
mail.From = Session("Email")
mail.To = "an***********@siemens.com"
mail.Subject = "Employee Expense Report"
mail.Body = "The body text goes here."
mail.Send
Set mail = Nothing

Please help
Andy
"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
our intranet. He wants me to use our existing SMTP server
"mail.smpi.siemens.ca". Can I do this with IIS?


Do you mean in ASP? That depends, what mail component are you using?

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


Jul 19 '05 #5
Aaron

Here's my code. When I run it I get the error:

"Item cannot be found in the collection corresponding to the requested name
or ordinal.
/WebApps/Expenses/testemail.asp, line 5"

This points to the line ".Item(cdoSendUsingMethod) = cdoSendUsingPort" in
the code.

Any ideas??
<%
Set cdoConfig = CreateObject("CDO.Configuration")

With cdoConfig.Fields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) = "mail.smpi.siemens.ca"
.Update
End With

Set cdoMessage = CreateObject("CDO.Message")

With cdoMessage
Set .Configuration = cdoConfig
.From = "an***********@siemens.com"
.To = "an***********@siemens.com"
.Subject = "Sample CDO Message"
.TextBody = "This is a test for CDO.message"
.Send
End With

Set cdoMessage = Nothing
Set cdoConfig = Nothing

%>

"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:uz****************@TK2MSFTNGP09.phx.gbl...
http://www.aspfaq.com/2339

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Andy" <an***********@siemens-nospam.com> wrote in message
news:10***************@pbht107x.smpi.siemens.ca...
Hi Aaron

Well... we just found out today that our CDONTS does not work in IIS 5 so I'm trying to convert my code to CDOSYS (with no clue as to what I'm

doing).

So if I have the following code, which works fine with CDONTS... how do I get it to CDOSYS pointing to the external SMTP server
"mail.smpi.siemens.ca"?

Dim mail
Set mail=CreateObject("CDONTS.NewMail")
mail.From = Session("Email")
mail.To = "an***********@siemens.com"
mail.Subject = "Employee Expense Report"
mail.Body = "The body text goes here."
mail.Send
Set mail = Nothing

Please help
Andy
"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
> our intranet. He wants me to use our existing SMTP server
> "mail.smpi.siemens.ca". Can I do this with IIS?

Do you mean in ASP? That depends, what mail component are you using?

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/



Jul 19 '05 #6
You forgot the metadata tag. Check out the WHOLE code sample.

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Andy" <an***********@siemens-nospam.com> wrote in message
news:10***************@pbht107x.smpi.siemens.ca...
Aaron

Here's my code. When I run it I get the error:

"Item cannot be found in the collection corresponding to the requested name or ordinal.
/WebApps/Expenses/testemail.asp, line 5"

This points to the line ".Item(cdoSendUsingMethod) = cdoSendUsingPort" in
the code.

Any ideas??
<%
Set cdoConfig = CreateObject("CDO.Configuration")

With cdoConfig.Fields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) = "mail.smpi.siemens.ca"
.Update
End With

Set cdoMessage = CreateObject("CDO.Message")

With cdoMessage
Set .Configuration = cdoConfig
.From = "an***********@siemens.com"
.To = "an***********@siemens.com"
.Subject = "Sample CDO Message"
.TextBody = "This is a test for CDO.message"
.Send
End With

Set cdoMessage = Nothing
Set cdoConfig = Nothing

%>

"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:uz****************@TK2MSFTNGP09.phx.gbl...
http://www.aspfaq.com/2339

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Andy" <an***********@siemens-nospam.com> wrote in message
news:10***************@pbht107x.smpi.siemens.ca...
Hi Aaron

Well... we just found out today that our CDONTS does not work in IIS 5 so I'm trying to convert my code to CDOSYS (with no clue as to what I'm doing).

So if I have the following code, which works fine with CDONTS... how do I
get it to CDOSYS pointing to the external SMTP server
"mail.smpi.siemens.ca"?

Dim mail
Set mail=CreateObject("CDONTS.NewMail")
mail.From = Session("Email")
mail.To = "an***********@siemens.com"
mail.Subject = "Employee Expense Report"
mail.Body = "The body text goes here."
mail.Send
Set mail = Nothing

Please help
Andy
"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
> > our intranet. He wants me to use our existing SMTP server
> > "mail.smpi.siemens.ca". Can I do this with IIS?
>
> Do you mean in ASP? That depends, what mail component are you

using? >
> --
> Aaron Bertrand
> SQL Server MVP
> http://www.aspfaq.com/
>
>



Jul 19 '05 #7
Aaron

Sorry, my stupidity. I didn't realize that the metadata tag would actually
do anything. It works great now!!!! Many, many thanks.

Best Regards,
Andy
"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:e7*************@tk2msftngp13.phx.gbl...
You forgot the metadata tag. Check out the WHOLE code sample.

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Andy" <an***********@siemens-nospam.com> wrote in message
news:10***************@pbht107x.smpi.siemens.ca...
Aaron

Here's my code. When I run it I get the error:

"Item cannot be found in the collection corresponding to the requested

name
or ordinal.
/WebApps/Expenses/testemail.asp, line 5"

This points to the line ".Item(cdoSendUsingMethod) = cdoSendUsingPort" in
the code.

Any ideas??
<%
Set cdoConfig = CreateObject("CDO.Configuration")

With cdoConfig.Fields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) = "mail.smpi.siemens.ca"
.Update
End With

Set cdoMessage = CreateObject("CDO.Message")

With cdoMessage
Set .Configuration = cdoConfig
.From = "an***********@siemens.com"
.To = "an***********@siemens.com"
.Subject = "Sample CDO Message"
.TextBody = "This is a test for CDO.message"
.Send
End With

Set cdoMessage = Nothing
Set cdoConfig = Nothing

%>

"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:uz****************@TK2MSFTNGP09.phx.gbl...
http://www.aspfaq.com/2339

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Andy" <an***********@siemens-nospam.com> wrote in message
news:10***************@pbht107x.smpi.siemens.ca...
> Hi Aaron
>
> Well... we just found out today that our CDONTS does not work in IIS
5 so
> I'm trying to convert my code to CDOSYS (with no clue as to what I'm
doing).
>
> So if I have the following code, which works fine with CDONTS... how

do
I
> get it to CDOSYS pointing to the external SMTP server
> "mail.smpi.siemens.ca"?
>
> Dim mail
> Set mail=CreateObject("CDONTS.NewMail")
> mail.From = Session("Email")
> mail.To = "an***********@siemens.com"
> mail.Subject = "Employee Expense Report"
> mail.Body = "The body text goes here."
> mail.Send
> Set mail = Nothing
>
> Please help
> Andy
>
>
> "Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
> news:%2***************@TK2MSFTNGP09.phx.gbl...
> > > our intranet. He wants me to use our existing SMTP server
> > > "mail.smpi.siemens.ca". Can I do this with IIS?
> >
> > Do you mean in ASP? That depends, what mail component are you

using? > >
> > --
> > Aaron Bertrand
> > SQL Server MVP
> > http://www.aspfaq.com/
> >
> >
>
>



Jul 19 '05 #8
CJM
Aaron,

Out of interest, I tried your example, but I got a different error:

(0x8004020F)
The event class for this subscription is in an invalid partition
/fxdb/cdo.asp, line 30

Line 30 calls the .Send method

Any thoughts?

[XP/IIS5.1 machine]

Chris

Any thoughts
"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:uz****************@TK2MSFTNGP09.phx.gbl...
http://www.aspfaq.com/2339

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Andy" <an***********@siemens-nospam.com> wrote in message
news:10***************@pbht107x.smpi.siemens.ca...
Hi Aaron

Well... we just found out today that our CDONTS does not work in IIS 5 so I'm trying to convert my code to CDOSYS (with no clue as to what I'm

doing).

So if I have the following code, which works fine with CDONTS... how do I get it to CDOSYS pointing to the external SMTP server
"mail.smpi.siemens.ca"?

Dim mail
Set mail=CreateObject("CDONTS.NewMail")
mail.From = Session("Email")
mail.To = "an***********@siemens.com"
mail.Subject = "Employee Expense Report"
mail.Body = "The body text goes here."
mail.Send
Set mail = Nothing

Please help
Andy
"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
> our intranet. He wants me to use our existing SMTP server
> "mail.smpi.siemens.ca". Can I do this with IIS?

Do you mean in ASP? That depends, what mail component are you using?

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/



Jul 19 '05 #9
http://www.aspfaq.com/2305

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"CJM" <cj*****@yahoo.co.uk> wrote in message
news:OO**************@tk2msftngp13.phx.gbl...
Aaron,

Out of interest, I tried your example, but I got a different error:

(0x8004020F)
The event class for this subscription is in an invalid partition
/fxdb/cdo.asp, line 30

Line 30 calls the .Send method

Any thoughts?

Jul 19 '05 #10
CJM
Aaron,

The problem is with my smtp server (ie. on WinXP/IIS5.1).

I've tried the code with another (proper!) smtp server on the domain which
I've used with 3rd party components and your example script works fine.

I've never used the XP/IIS smtp server before, and I dont even know if it is
'full' server. Any good sources for swotting that you know about?

cheers

Chris
Jul 19 '05 #11
Yes, use a dedicated SMTP server instead of scattering the task across a
bunch of IIS homegrown things...

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"CJM" <cj*****@yahoo.co.uk> wrote in message
news:eR**************@TK2MSFTNGP10.phx.gbl...
Aaron,

The problem is with my smtp server (ie. on WinXP/IIS5.1).

I've tried the code with another (proper!) smtp server on the domain which
I've used with 3rd party components and your example script works fine.

I've never used the XP/IIS smtp server before, and I dont even know if it is 'full' server. Any good sources for swotting that you know about?

cheers

Chris

Jul 19 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: James | last post by:
How can I take my form data and send it as an email using my SMTP server located @ my ISP using PHP ? my form has several fields: TO: this is a drop down list FROM: this is a drop down...
3
by: Roger | last post by:
Using the objects in System.Web, I am able to send email to internal email address using VB or C#.net. But,if I try to send an email to an external email address, I receive this message: An...
1
by: Jayakumar | last post by:
HI, I am using System.web.mail class in my application to send mails. I am using SMTP server for the same. I can send mail to the intranet addresses, But when i send mails to Hotmail or other...
1
by: Eric Sheu | last post by:
Greetings, I have been searching the web like mad for a solution to my SMTP problem. I am using Windows Server 2003 and ASP.NET 2.0 w/ C# to send out e-mails from a web site I have created to...
14
by: sridhar | last post by:
iam having user account on an exchangeserver. with that can i send an email using python? if iam using the following code iam getting error fromAddress = 'sridhar_kasturi@satyam.com'...
4
by: MMAS | last post by:
I've got my .net application set up to use gmail as a mail server (see code below). Everything works quite well, actually, EXCEPT for one particular email account. I've created an "admin" account...
11
by: fdu.xiaojf | last post by:
Hi, I just want to send a very simple email from within python. I think the standard module of smtpd in python can do this, but I haven't found documents about how to use it after googleing....
7
by: oopsbabies | last post by:
Hello everyone, I am using Apache 1.3.33 as the web server and PHP version 4.3.10. My machine is using Windows XP 2002 professional edition which comes with a Windows firewall. I am using McAfee...
8
by: _spitFIRE | last post by:
Is it possible to run a SMTP server that sends mail to recipients using standard libraries, without using twisted framework, and also without using any relay server?
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.