Wednesday, March 28, 2012

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 "Intranet_App@dotnet.itags.org.company.com"
on Exchange? Sorry, kind of dumb about this.

Any clues appreciated.

thanks.

KathyAs far as I know is you can specify anything@.Company.com
or xyz@.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" <KathyBurke40@.attbi.com> wrote in message
news:75e8d381.0308271130.ff52d25@.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 "Intranet_App@.company.com"
> on Exchange? Sorry, kind of dumb about this.
> Any clues appreciated.
> thanks.
> Kathy
Dim message = New MailMessage()

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

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

HTH,

bill

"Kathy Burke" <kathyburke40@.attbi.com> wrote in message
news:#f7v4pWbDHA.2580@.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!

0 comments:

Post a Comment