Sending Emails via Visual Studio

Discussion in 'Visual Studio' started by rodmjay, Jun 8, 2006.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I am trying to send an email to a user. How do i go about doing this.

    Here is the code I am currently trying

    Dim smtpClient As New SmtpClient('mail.mydomain.biz')
    Dim msg As New MailMessage(txtFrom.Text, '[email protected]', txtSubject.Text, txtMessage.Text)
    smtpClient.Send(msg)


    Here is the error response i am getting

    Mailbox name not allowed. The server response was: sorry, that domain isn't in my list of allowed rcpthosts (#5.5.3 - chkuser)


    Anyone who has done this let me know and the code they used
     
  2. mjp

    mjp

  3. If you are trying to send locally, check your ISP for your ISP's SMTP server and use that.

    If you are trying to send mail on discountasp.net, use localhost.

    If you are trying to send mail on another ISP, contact them for the proper SMTP server.


    Joel Thoms
    DiscountASP.NET
    http://www.DiscountASP.NET
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page