sending email

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Marcin Wiszowaty

    sending email

    Hello all,

    I am using the code below in on my own machine to send email and it works
    just fine. VB console application.

    When i tried to run the same program from one of our servers it doesnt.

    There isnt even an error message generated.

    A collegue told me that it is because this dll is using iis and it is
    installed on my maching but not on the server.

    Is this true and if so how to do this without installing iis?



    Thank you

    Marcin

    *************** *************** *************** *******

    Dim client As New Net.Mail.SmtpCl ient("mail.finm edsys.com")

    Dim msg As New Net.Mail.MailMe ssage("mis@finm edsys.com", _

    "mwiszowaty@fin medsys.com", _

    "Email test program", _

    ex.tostring & vbNewLine & Date.Now.ToStri ng)


  • kimiraikkonen

    #2
    Re: sending email

    On May 12, 6:58 pm, "Marcin Wiszowaty" <mwiszow...@fin medsys.com>
    wrote:
    Hello all,
    >
    I am using the code below in on my own machine to send email and it works
    just fine. VB console application.
    >
    When i tried to run the same program from one of our servers it doesnt.
    >
    There isnt even an error message generated.
    >
    A collegue told me that it is because this dll is using iis and it is
    installed on my maching but not on the server.
    >
    Is this true and if so how to do this without installing iis?
    >
    Thank you
    >
    Marcin
    >
    *************** *************** *************** *******
    >
    Dim client As New Net.Mail.SmtpCl ient("mail.finm edsys.com")
    >
    Dim msg As New Net.Mail.MailMe ssage("m...@fin medsys.com", _
    >
    "mwiszow...@fin medsys.com", _
    >
    "Email test program", _
    >
    ex.tostring & vbNewLine & Date.Now.ToStri ng)
    Hi,
    ..NET framework must be installed on machine to send the mail from this
    machine. Or if you expand the issue which does not work exactly, it'll
    be more helpful.

    Thanks,

    Onur

    Comment

    • rowe_newsgroups

      #3
      Re: sending email

      On May 12, 11:58 am, "Marcin Wiszowaty" <mwiszow...@fin medsys.com>
      wrote:
      Hello all,
      >
      I am using the code below in on my own machine to send email and it works
      just fine. VB console application.
      >
      When i tried to run the same program from one of our servers it doesnt.
      >
      There isnt even an error message generated.
      >
      A collegue told me that it is because this dll is using iis and it is
      installed on my maching but not on the server.
      >
      Is this true and if so how to do this without installing iis?
      >
      Thank you
      >
      Marcin
      >
      *************** *************** *************** *******
      >
      Dim client As New Net.Mail.SmtpCl ient("mail.finm edsys.com")
      >
      Dim msg As New Net.Mail.MailMe ssage("m...@fin medsys.com", _
      >
      "mwiszow...@fin medsys.com", _
      >
      "Email test program", _
      >
      ex.tostring & vbNewLine & Date.Now.
      So are you running any antivirus software on the server? McAfee loves
      to kill System.Net.Mail ....

      Thanks,

      Seth Rowe [MVP]

      Comment

      • Marcin Wiszowaty

        #4
        Re: sending email

        Im teribly sorry guys.
        Mistake in code.

        It works just fine.
        Thank you for your efforts.

        Marcin


        Comment

        Working...