Error sending mail when outlook is using Exchange server

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Richard Kure

    Error sending mail when outlook is using Exchange server

    I encountered a problem sending an email on my windows XP, which I thought
    was a bit weird, cause it worked for me before on windows XP.
    So I tried on some other computers with windows XP, and managed to send
    emails on the systems where outlook was not installed.

    So I'm pretty sure the problem lies in outlook using exchange server.

    Does anyone know how to solve this, maybe send the mail to the exchange
    server or outlook instead. I dont wanna use the outlook dll file, like this

    Dim outlookApp As Outlook._Applic ation
    outlookApp = New Outlook.Applica tion

    That is not an acceptable solution, any other ways to work around the
    problem, or solve the problem?


  • Dan Manges

    #2
    Re: Error sending mail when outlook is using Exchange server

    Richard Kure wrote:[color=blue]
    > Does anyone know how to solve this, maybe send the mail to the exchange
    > server or outlook instead. I dont wanna use the outlook dll file, like this
    >[/color]

    Look into the System.Net.Mail class (.NET 2.0) or System.Web.Mail (.NET
    1.x). To send mail through those classes you just need to specify an
    SMTP server, which would be the Exchange server.

    Hope this helps.

    Dan Manges

    Comment

    • Richard Kure

      #3
      Re: Error sending mail when outlook is using Exchange server

      > Look into the System.Net.Mail class (.NET 2.0) or System.Web.Mail (.NET[color=blue]
      > 1.x). To send mail through those classes you just need to specify an SMTP
      > server, which would be the Exchange server.[/color]

      I have tried to use both namespaces, but it wont send the emails. If I try
      on a windows XP without outlook installed, there is no problem, then I can
      send the emails as I want to. the problem only occurs when outlook is
      installed and linked to exchange server.


      Comment

      • Richard Kure

        #4
        Re: Error sending mail when outlook is using Exchange server

        This is what I cannot do, when I have installed outlook and linked it to an
        exchange server:

        Dim mailMessage As New MailMessage()

        mailMessage.To. Add(textBoxTo.T ext)

        mailMessage.Fro m = New MailAddress(tex tBoxFrom.Text)

        mailMessage.Sub ject = "test"

        mailMessage.Bod y = "test"

        Dim smtpClient As New SmtpClient(text BoxSMTP.Text)

        smtpClient.Send (mailMessage)



        (System.Net.Mai l) I also tried with the (System.Web.Mai l).


        Comment

        • Dan Manges

          #5
          Re: Error sending mail when outlook is using Exchange server

          Richard Kure wrote:[color=blue]
          > This is what I cannot do, when I have installed outlook and linked it to an
          > exchange server:
          >
          > Dim mailMessage As New MailMessage()
          > mailMessage.To. Add(textBoxTo.T ext)
          > mailMessage.Fro m = New MailAddress(tex tBoxFrom.Text)
          > mailMessage.Sub ject = "test"
          > mailMessage.Bod y = "test"
          > Dim smtpClient As New SmtpClient(text BoxSMTP.Text)
          > smtpClient.Send (mailMessage)
          >
          > (System.Net.Mai l) I also tried with the (System.Web.Mai l).
          >[/color]

          Now I understand your problem. That's odd that after installing Outlook
          you can't send mail this way. I don't know very much about Outlook. My
          only guess is that it installs something which prevents applications
          from sending mail directly as a way to prevent viruses which send spam,
          but I really have no idea.

          Sorry I can't be of more help.

          Dan Manges

          Comment

          • Richard Kure

            #6
            Re: Error sending mail when outlook is using Exchange server


            "Richard Kure" <test@test.co m> skrev i en meddelelse
            news:%23UqIMfWi GHA.412@TK2MSFT NGP05.phx.gbl.. .[color=blue]
            >I encountered a problem sending an email on my windows XP, which I thought
            >was a bit weird, cause it worked for me before on windows XP.
            > So I tried on some other computers with windows XP, and managed to send
            > emails on the systems where outlook was not installed.
            >
            > So I'm pretty sure the problem lies in outlook using exchange server.
            >
            > Does anyone know how to solve this, maybe send the mail to the exchange
            > server or outlook instead. I dont wanna use the outlook dll file, like
            > this
            >
            > Dim outlookApp As Outlook._Applic ation
            > outlookApp = New Outlook.Applica tion
            >
            > That is not an acceptable solution, any other ways to work around the
            > problem, or solve the problem?
            >[/color]

            DOH, I figurred out the problem, apparently McAfee has a default setting,
            stoppin all outgoing emails, this took me 2 days, but by a process of
            elimination, i managed to find out that it was McAfee which blocked my
            mails.


            Comment

            Working...