Email Host and Port Details

Last post 05-17-2008 1:31 AM by arshadtop. 2 replies.

Sort Posts:

  • Email Host and Port Details

    05-16-2008, 2:16 PM
    • Loading...
    • arshadtop
    • Joined on 01-22-2007, 12:02 PM
    • India
    • Posts 255

    Hi,

    Normally i see examples specifying as "Host" and "Port" with the following one:

    dim client as new smptmail

    client.host="localhost"

    client.port=25

    Is this one is default to every webserver for sending mails.

    Can i use ------------> client.host="www.mysitename.com"         client.port=25

    As i know, we can use either ip address or domain name as a host. Right now i don't know my site ip address.

    What you would prefer to use either "IP Address" or "Domain Name"

    Thanks in Advance.

     

    Best Regards

    Arshad

     

     

     

    Please Mark as Answer if the post is helpful to you.
  • Re: Email Host and Port Details

    05-16-2008, 3:41 PM
    Answer
    • Loading...
    • ps2goat
    • Joined on 11-17-2006, 10:43 PM
    • Posts 1,570

    IP can change with the server that the site is hosted on; for example, if your host has to put your site on a different server, your code may not work.  I recommend using the domain, as you should own that, and the code should work no matter if you change hosts or a server goes down.

    ---------------------------------------
    MCP - Web Based Client Development .NET 2.0
  • Re: Email Host and Port Details

    05-17-2008, 1:31 AM
    • Loading...
    • arshadtop
    • Joined on 01-22-2007, 12:02 PM
    • India
    • Posts 255

    Thanks for clearing my doubt. Really its a very nice information for me.

    Best Regards

    Arshad 

     

    Please Mark as Answer if the post is helpful to you.
Page 1 of 1 (3 items)