473,395 Members | 1,464 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,395 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 3392
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.