Results 1 to 4 of 4

Thread: Question about sending hushmail email via vb.net.

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2014
    Posts
    26

    Question Question about sending hushmail email via vb.net.

    Hey coders,i have make email senders in the past with gmail. After many frustrating error messages i was able to change a gmail setting allowing "use of unsecure apps" on my gmail security settings. Now i am trying to send email with my hushmail.com account. I googled their smtp and found them here https://help.hushmail.com/entries/24...ames-and-ports. So i inerted my login info andhushmail smtp stuff where gmails used to be in this code here

    Try
    Dim SmtpClient As New SmtpClient("smtp.gmail.com", 587)
    SmtpClient.Credentials = New Net.NetworkCredential("Your Email Login", "Your Email Password")
    SmtpClient.EnableSsl = True
    emailmessage.From = New MailAddress("From Email Address")
    emailmessage.To.Add("Email Address Being Sent To")
    emailmessage.Subject = ("Enter Subject Here")
    emailmessage.Body = ("Enter Body Here")
    SmtpClient.Send(emailmessage)
    MessageBox.Show("Email Sent Successful")
    Catch ex As System.Net.Mail.SmtpException
    Dim code As System.Net.Mail.SmtpStatusCode = ex.StatusCode
    MessageBox.Show(ex.ToString + " : " + code.ToString)
    End Try

    Tomarow when i login to my computer i can post the actual error message but i think it has something to do with me not being logged in. Can anybody give me some pointers on some setting i might need to import.thanks

  2. #2
    You don't want to know.
    Join Date
    Aug 2010
    Posts
    4,578

    Re: Question about sending hushmail email via vb.net.

    So i inerted my login info andhushmail smtp stuff where gmails used to be in this code here
    Read this sentence again, then compare your code to the reality it describes. You'll find a discrepancy.
    This answer is wrong. You should be using TableAdapter and Dictionaries instead.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Oct 2014
    Posts
    26

    Re: Question about sending hushmail email via vb.net.

    Quote Originally Posted by Sitten Spynne View Post
    Read this sentence again, then compare your code to the reality it describes. You'll find a discrepancy.
    not sure what you ment but here is the code i used Try
    Dim SmtpClient As New SmtpClient("smtp.hushmailmail.com", 587)
    SmtpClient.Credentials = New Net.NetworkCredential("my hushmail username", "my hushmail password")
    SmtpClient.EnableSsl = True
    emailmessage.From = New MailAddress("my hushmail adress")
    emailmessage.To.Add("my gmail")
    emailmessage.Subject = ("textbox11.text)
    emailmessage.Body = (textbox2.text)
    SmtpClient.Send(emailmessage)
    MessageBox.Show("Email Sent Successful")
    Catch ex As System.Net.Mail.SmtpException
    Dim code As System.Net.Mail.SmtpStatusCode = ex.StatusCode
    MessageBox.Show(ex.ToString + " : " + code.ToString)
    End Try

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Oct 2014
    Posts
    26

    Re: Question about sending hushmail email via vb.net.

    here is my errorName:  Capture.jpg
Views: 194
Size:  43.8 KB

Tags for this Thread

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