need help

  • Thread starter Thread starter hussein hariri
  • Start date Start date
H

hussein hariri

hello
i'm facing a small problem in my program, i have done a
program on the ASp.NET and i wanted to use and email
account in order to send reports through this program so i
uesed this code :

Dim mailMsg As Mail.MailMessage = New Mail.MailMessage()
mailMsg.BodyFormat = Mail.MailFormat.Html
Mail.SmtpMail.SmtpServer= exchange

this code was working when i used the exchange server as a
local e-mail for the useres so they will recieve the
reports on there local mails , but i faced some problems
in the exchange so i wanted to send it to the accounts on
the hotmail, so what am i supposed to put in the
SMTPSERVER?
 
I think you need some kind of SMTP relay agent to send message, so you would
need Exchange, or the SMTP service on your web server in order to forward
your messages to a valid mail server in your network, and then it would
forward your message on to Hotmail. But if I'm wrong, I'm sure someone will
tell me!
 
Back
Top