473,465 Members | 1,444 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Sending email to an Exchange Server


I think I've confused myself completely here :-)

I have used System.Web.Mail, but am not sure if this works with Exchange Server 5.5. I asked the client if they're email server supported SMTP, and got the following reply (exact quote):
Exchange 5.5 uses IMS connector for communication between the internal and the external world. IMS is based on SMTP Protocol.

For mail flow within the organization Exchange 5.5 uses Message Transfer Agent.

Does this mean that SMTP is not used on their internal LAN, and I can't use System.Web.Mail?

And if not, how do I send emails from within a stand alone VB.Net application?

BTW, the computer running the VB.Net program is Windows 2000 Pro and will NOT have Outlook installed.

Regards,
Frank

Nov 20 '05 #1
8 4328
DC
Frank:

In the case of WebForms, SMTP email sending is a piece of cake, since it
relies on the server SMTP services being available.

On client WinForms, however, you have to do more work. If you use SMTP
(using System.Web.Mail) then you are forced to rely on SMTP services running
on each client, which will not be available in most cases.

If the computer does NOT have Outlook installed, you will not be able to use
Exchange, though. From my experience with Outlook and Exchange 5.5 - you
will need to log into an Outlook profile in order to create mail objects. If
the Exchange server is not available (which it wont because Outlook isnt
installed and a profile wont be created on the client), you wont be able to
call the Login method and pass it the necessary profile data. You dont HAVE
to specify a profile when you login - if you leave the Profile name blank it
uses the default profile on the client, but this still requires a profile be
present.

Sending email requires SOME kind of protocol. If Outlook isnt available,
perhaps you can connect to an SMTP server elsewhere, but this most certainly
prevents you from using Exchange to do things like save sent messages, for
example.

"Frank" <frank2003AToptusnetDOTcomDOTau> wrote in message
news:%2*****************@TK2MSFTNGP09.phx.gbl...

I think I've confused myself completely here :-)

I have used System.Web.Mail, but am not sure if this works with Exchange
Server 5.5. I asked the client if they're email server supported SMTP, and
got the following reply (exact quote):
Exchange 5.5 uses IMS connector for communication between the internal and
the external world. IMS is based on SMTP Protocol.

For mail flow within the organization Exchange 5.5 uses Message Transfer
Agent.

Does this mean that SMTP is not used on their internal LAN, and I can't use
System.Web.Mail?

And if not, how do I send emails from within a stand alone VB.Net
application?

BTW, the computer running the VB.Net program is Windows 2000 Pro and will
NOT have Outlook installed.

Regards,
Frank
Nov 20 '05 #2
DC
Frank:

In the case of WebForms, SMTP email sending is a piece of cake, since it
relies on the server SMTP services being available.

On client WinForms, however, you have to do more work. If you use SMTP
(using System.Web.Mail) then you are forced to rely on SMTP services running
on each client, which will not be available in most cases.

If the computer does NOT have Outlook installed, you will not be able to use
Exchange, though. From my experience with Outlook and Exchange 5.5 - you
will need to log into an Outlook profile in order to create mail objects. If
the Exchange server is not available (which it wont because Outlook isnt
installed and a profile wont be created on the client), you wont be able to
call the Login method and pass it the necessary profile data. You dont HAVE
to specify a profile when you login - if you leave the Profile name blank it
uses the default profile on the client, but this still requires a profile be
present.

Sending email requires SOME kind of protocol. If Outlook isnt available,
perhaps you can connect to an SMTP server elsewhere, but this most certainly
prevents you from using Exchange to do things like save sent messages, for
example.

"Frank" <frank2003AToptusnetDOTcomDOTau> wrote in message
news:%2*****************@TK2MSFTNGP09.phx.gbl...

I think I've confused myself completely here :-)

I have used System.Web.Mail, but am not sure if this works with Exchange
Server 5.5. I asked the client if they're email server supported SMTP, and
got the following reply (exact quote):
Exchange 5.5 uses IMS connector for communication between the internal and
the external world. IMS is based on SMTP Protocol.

For mail flow within the organization Exchange 5.5 uses Message Transfer
Agent.

Does this mean that SMTP is not used on their internal LAN, and I can't use
System.Web.Mail?

And if not, how do I send emails from within a stand alone VB.Net
application?

BTW, the computer running the VB.Net program is Windows 2000 Pro and will
NOT have Outlook installed.

Regards,
Frank
Nov 20 '05 #3

"DC" <so*****@microsoft.com> wrote in message news:ub***************@TK2MSFTNGP09.phx.gbl...

If the computer does NOT have Outlook installed, you will not be able to use
Exchange, though. From my experience with Outlook and Exchange 5.5 - you
will need to log into an Outlook profile in order to create mail objects. If
the Exchange server is not available (which it wont because Outlook isnt
installed and a profile wont be created on the client), you wont be able to
call the Login method and pass it the necessary profile data. You dont HAVE
to specify a profile when you login - if you leave the Profile name blank it
uses the default profile on the client, but this still requires a profile be
present.


So basically if I can't get access to a SMTP server, (and therefore can't use System.Web.Mail), then my only other option is to have a copy of Outlook installed on the machine so as to be able to send emails via an Exchange Server.

But if I automate Outlook, wont I end up tripping the security warnings? Kind of painful if your application is supposed to run un-attended!

Regards,
Frank

Nov 20 '05 #4

"DC" <so*****@microsoft.com> wrote in message news:ub***************@TK2MSFTNGP09.phx.gbl...

If the computer does NOT have Outlook installed, you will not be able to use
Exchange, though. From my experience with Outlook and Exchange 5.5 - you
will need to log into an Outlook profile in order to create mail objects. If
the Exchange server is not available (which it wont because Outlook isnt
installed and a profile wont be created on the client), you wont be able to
call the Login method and pass it the necessary profile data. You dont HAVE
to specify a profile when you login - if you leave the Profile name blank it
uses the default profile on the client, but this still requires a profile be
present.


So basically if I can't get access to a SMTP server, (and therefore can't use System.Web.Mail), then my only other option is to have a copy of Outlook installed on the machine so as to be able to send emails via an Exchange Server.

But if I automate Outlook, wont I end up tripping the security warnings? Kind of painful if your application is supposed to run un-attended!

Regards,
Frank

Nov 20 '05 #5
> So basically if I can't get access to a SMTP server, (and therefore =
can't use System.Web.Mail), then my only other option is to have a copy = of Outlook installed on the machine so as to be able to send emails via = an Exchange Server.
But if I automate Outlook, wont I end up tripping the security warnings? = Kind of painful if your application is supposed to run un-attended!


There are solutions that support queueing of messages - so
that if you cannot get a connection to an SMTP server you can queue the messages
to disk - and then send all of those queued messages whenever you are ready (and
can access the mail server). IP*Works! Is one of these
(http://www.nsoftware.com/products/sh...x?part=IPN6-A).
Regards,
Lance R.
/n software
http://www.nsoftware.com/

-

Nov 20 '05 #6
> So basically if I can't get access to a SMTP server, (and therefore =
can't use System.Web.Mail), then my only other option is to have a copy = of Outlook installed on the machine so as to be able to send emails via = an Exchange Server.
But if I automate Outlook, wont I end up tripping the security warnings? = Kind of painful if your application is supposed to run un-attended!


There are solutions that support queueing of messages - so
that if you cannot get a connection to an SMTP server you can queue the messages
to disk - and then send all of those queued messages whenever you are ready (and
can access the mail server). IP*Works! Is one of these
(http://www.nsoftware.com/products/sh...x?part=IPN6-A).
Regards,
Lance R.
/n software
http://www.nsoftware.com/

-

Nov 20 '05 #7
>
There are solutions that support queueing of messages - so
that if you cannot get a connection to an SMTP server you can queue the messages
to disk - and then send all of those queued messages whenever you are ready (and
can access the mail server). IP*Works! Is one of these
(http://www.nsoftware.com/products/sh...x?part=IPN6-A).


The problem here is I will never get access to a SMTP server.

After doing some searching around the web, it appears I could (might?) use CDO.

Is this possible in VB.Net with Exchange 5.5? If so, any pointers to some sample code?

Regards,
Frank

Regards,
Lance R.
/n software
http://www.nsoftware.com/

-

Nov 20 '05 #8
>
There are solutions that support queueing of messages - so
that if you cannot get a connection to an SMTP server you can queue the messages
to disk - and then send all of those queued messages whenever you are ready (and
can access the mail server). IP*Works! Is one of these
(http://www.nsoftware.com/products/sh...x?part=IPN6-A).


The problem here is I will never get access to a SMTP server.

After doing some searching around the web, it appears I could (might?) use CDO.

Is this possible in VB.Net with Exchange 5.5? If so, any pointers to some sample code?

Regards,
Frank

Regards,
Lance R.
/n software
http://www.nsoftware.com/

-

Nov 20 '05 #9

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

Similar topics

15
by: Sven Templin | last post by:
Hello all, our configuration is as following described: - OS: Windows 2000 - Apache server 1.3 - Php 3.8 - MS outlook client 2000 _and_ no SMTP server available in the whole intranet.
17
by: Bonj | last post by:
Right guys. (I would like a solution to this in VB6 as this is what our needy app is written in, but any solutions that involve .NET would be much appreciated likewise as I could instantiate...
2
by: Gaz | last post by:
Hi all I am currently trying to send and email via exchange except I'm having a nightmare getting it working, you'd think this would be pertty simple wouldn't you? I have added a reference to...
2
by: RedEye | last post by:
Hello, I am trying to create a class to send email via POP3 or Exchange. Everything works fine when sending via POP3 but fails when sending via exchange. Error: Could not access 'CDO.Message'...
2
by: Jim in Arizona | last post by:
I've made an application that is a computer problems (tickets) system. The employee goes to a web page and posts the comptuer problem they're having. Then, the IS staff goes to another webpage...
8
by: Frank | last post by:
I think I've confused myself completely here :-) I have used System.Web.Mail, but am not sure if this works with Exchange Server 5.5. I asked the client if they're email server supported SMTP, and...
9
by: B-Dog | last post by:
I've built a small app that sends mail through our ISP's SMTP server but when I try to send through my local exchange server I get CDO error. Does webmail use SMTP or does it strictly rely on...
1
by: Gilbert Cheung | last post by:
Hello. I am writing a website for my company. There is a sign-up form that requires us to send a confirmation email to our customer. Our company uses Exchange Server 2000 as our mail server. We...
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'...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.