Results 1 to 13 of 13

Thread: STMP Server !

  1. #1

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

    STMP Server !

    Is there any default stmp server for sending message all over the net ?? I'm using this SmtpMail "www.digitalims.net" but it's not sending the message.raise an error on the line

    myMailServer.SmtpServer = "www.digitalims.net"
    any ideas ?

  2. #2

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    *bump* ^._.^

  3. #3

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

  4. #4
    Member
    Join Date
    Dec 2002
    Location
    NY, USA
    Posts
    52

    Re: STMP Server !

    Originally posted by Pirate
    Is there any default stmp server for sending message all over the net ?? I'm using this SmtpMail "www.digitalims.net" but it's not sending the message.raise an error on the line

    myMailServer.SmtpServer = "www.digitalims.net"
    any ideas ?
    I have the same problem. I send the message with SMTP server that I have at work, but when I try to do the same using the SMTP server of my Web e-mail provider I am getting message that the user is not Authenticated.
    In order to send email, you must set your email software to use authentication when connecting to
    the outgoing mail server.
    I am using SystemWeb.dll and setting the mail object like

    Dim oMail As MailMessage
    oMail = New MailMessage()

    But I cannot find the property of this object to send the name and pwd.

    Did somebody solved this problem?
    Iouri Boutchkine

  5. #5
    Junior Member
    Join Date
    Dec 2001
    Location
    Northern Michigan
    Posts
    24
    I use my own mail server to send out everything.

    That is probably the best way to go, because then you can have total control over the funtionality.

    I am presently using Visnetic Mailserver from Deerfield.com. It is the most stable mail server I have tried and I spent a great deal of time searching for one.

    -korendir

  6. #6

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    I want to use MS's mailserver .Is this possible ?

  7. #7

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    I think I need something like this one here
    according to this site I a user can uses his ISP'S smtp server for sending msgs .How can I detect this local stmp in vb.net ??
    thanx for any help

  8. #8
    Junior Member
    Join Date
    Dec 2001
    Location
    Northern Michigan
    Posts
    24
    The MS SMTP server should work fine.

    The SmtpMail class should automatically send to the local server. if you need to specifiy the server set the SmtpMail.SmtpServer property to 127.0.0.1.

    -korendir

  9. #9

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    It says (Couldn't access 'CDO.message' Object ) .This error message shows after 2 or 3 seconds .What the hell does it mean ?

  10. #10

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    This is the code I'm using .It seems everything need is there but
    VB Code:
    1. Private Function EmailCust()
    2.         Dim myMessage As New System.Web.Mail.MailMessage()
    3.         Dim myMailServer As System.Web.Mail.SmtpMail
    4.  
    5.         myMessage.To = TextBox1.Text
    6.         myMessage.From = TextBox2.Text
    7.         myMessage.Subject = TextBox3.Text
    8.  
    9.         myMessage.Body = TextBox4.Text
    10.  
    11. ' myMailServer.SmtpServer = "www.digitalims.net"
    12.  
    13.         myMailServer.SmtpServer = "127.0.0.1"
    14.  
    15.         Try
    16.             'the error occures here
    17.             myMailServer.Send(myMessage)
    18.         Catch x As Exception
    19.             MsgBox(x.Message)
    20.         End Try
    21.  
    22.         myMessage = Nothing
    23.     End Function
    24.  
    25.     Private Sub Button1_Click(ByVal sender As System.Object _
    26. , ByVal e As System.EventArgs) Handles Button1.Click
    27.         EmailCust()
    28.     End Sub

  11. #11

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    any idea !!

  12. #12
    Member
    Join Date
    Dec 2002
    Location
    NY, USA
    Posts
    52
    Did you set MS SMTP virtual server? You have to go to the properties and add 127.0.0.1 to the Connection and Relay
    Iouri Boutchkine

  13. #13

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    I want to do this by code .There's a way I am sure .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width