473,387 Members | 1,549 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,387 software developers and data experts.

smtp mail in asp.net -- Must specify FROM -- interacts with Exchange?

Hi,

My first time trying to use the Mail class in asp.net. I've got some
standard code to use, but the class will be used in an intranet
application and we use Outlook.

How does my intranet app server, and the mail class, deal with the
separate Outlook Exchange server?

Do I need to set up a specific user such as "In**********@company.com"
on Exchange??? Sorry, kind of dumb about this.

Any clues appreciated.

thanks.

Kathy
Nov 17 '05 #1
2 1109
As far as I know is you can specify an******@Company.com
or xy*@company.com as long as you use @company.com
I did not have to have an actual account called anything or xyz or whatever
or Info

"KathyB" <Ka**********@attbi.com> wrote in message
news:75*************************@posting.google.co m...
Hi,

My first time trying to use the Mail class in asp.net. I've got some
standard code to use, but the class will be used in an intranet
application and we use Outlook.

How does my intranet app server, and the mail class, deal with the
separate Outlook Exchange server?

Do I need to set up a specific user such as "In**********@company.com"
on Exchange??? Sorry, kind of dumb about this.

Any clues appreciated.

thanks.

Kathy

Nov 17 '05 #2
Dim message = New MailMessage()

message.To = "strTo"
message.From = ...

SmtpMail.SmtpServer = "exchangeserver"
SmtpMail.Send( message )

HTH,

bill
"Kathy Burke" <ka**********@attbi.com> wrote in message
news:#f**************@TK2MSFTNGP09.phx.gbl...
Thanks. Could you please tell me what other steps I need to take to make
the mail class work? Again, I will have my intranet app on one network
server, the company's Exchange server is another, etc.

Right now, I've just added the usual to my vb code behind:

Dim msgMail = New Message)_
msgMail.To = "strTo"
msgMail.From = etc....

SmtpMail.Send(msgMail)

I also have, of course, added Imports System.Web.Mail to the page.

Thanks again.

Kathy

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 17 '05 #3

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

Similar topics

6
by: M P | last post by:
Need help! Whats wrong with my code? My plan is this, I have my IIS5.0 on Server A and then I will use SMTP service of Server B. I already configured IIS to use Server B as its SMTP Server but I...
6
by: Jason | last post by:
Sorry for the post here but could not find an Exchange newgroup. I developed an application a year or 2 ago that sends SMTP email. The application allows the user to customize the text from...
0
by: Mark Miller | last post by:
I'm puzzled by this situation. I'm running on Windows XP Pro 2002 SP 2. I started on an ASP.Net project, initially using the standard SmtpServer and MailMessage classes. For testing, I used the...
0
by: darin | last post by:
I am trying to send email through our Exchange server but the emails are sitting the queue folder. In the Default SMTP Virtual Server properties of IIS I *think* I have to point to our Exchange...
7
by: Razzie | last post by:
Hey all, I need to connect to an SMTP server and get a notification when it gets a new mail to send. I want to be able to 'read' that email (retrieve recipient information for example). Is that...
1
by: Comconix | last post by:
I have some ideas that I would like to try in eliminating DoS, unwanted SMTP connections/sessions, etc. to my Exchange server. To do this I need to write code that examines each SMTP attempt to...
9
by: Bob Jones | last post by:
We have developed a commercial ASP.net application (personal nutrition management and tracking); we want to send smtp email from within it. For our development box, we use WinXP Pro, IIS 5.5,...
1
by: michi | last post by:
Hi there.... Got here a tricky thing with my SMTP. First I show you what works on my machine.. **This Works** SmtpMail.SmtpServer = "mail.gmx.net" <-gmx is my mail provider...
4
by: Tushar | last post by:
Please help: I found some of the following information in messeges in this group but I would like someone to confirm them please. I would like to use the following web-services / ASP.Net code to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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...

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.