need help

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

hussein

heelo
please i'm facing a smaal problem in asp.net, my program
sends reports to the mails of the customers so i used the
following:

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

i used this code when i was useing The exchange as an e-
mail server, but what shall i do when i want to send the e-
mail to accounts on the HOTMAIL? is it by puting the
server of the HOTMAIL and if yes what is it ?
thnk you for responding
 
Hi,

According to the document, the System.Web.Mail namespace needs a SMTP mail
server to deliver emails. As far as I know, hotmail does not support SMTP.

I hope this makes sense to you.
 
If you can find a SMTP server that supports routing emails, you can send the
email to it and it will redirect the emails for you.
 
Hi Hussein,

the SmtpMail.SmptServer - specifies the relay server
through which the outgoing mails are to be sent...

it has got nothing to do with - whether you are sending to
hotmail / yahoo....itz the mail server through which you
are going to send your mails..

the only criteria here is the port 25 of the server should
not be blocked...and it should be exposed in an IP to send
mails to outside network...

hope this answers your query.

anu
 
-----Original Message-----
heelo
please i'm facing a smaal problem in asp.net, my program
sends reports to the mails of the customers so i used the
following:

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

i used this code when i was useing The exchange as an e-
mail server, but what shall i do when i want to send the e-
mail to accounts on the HOTMAIL? is it by puting the
server of the HOTMAIL and if yes what is it ?
thnk you for responding
.
 
Hi there,

If I understand it correctly. You have customers that send mail to you. Your
program create and send a report to the customer.
Your Quiz is howto send mail to customers hotmail accounts?

To send reports to hotmail, or any other for that mather, you fill in the
"mailMsg.To = (e-mail address removed)"
In code from my ASP form
"
'System.Web.Mail.MailMessage Class
Dim message As MailMessage = New MailMessage()
message.From = txtFrom.Text.Trim()
message.To = txtTo.Text.Trim()
message.Subject = txtSubject.Text.Trim()
message.Body = txtBody.Text.Trim()

SmtpMail.SmtpServer = YourRelayServer_as_a_string

'System.Web.Mail.SmtpMail Class
SmtpMail.Send(message)
"
End of code snippet

Hope it helps together with the answer from anuradha
/anders
 
Back
Top