Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - sebas

Pages: [1]
1
Support Questions / Re: Emailer threading
« on: June 19, 2017, 03:32:41 PM »
Did you test with anything other than gmail and did it work?

2
Support Questions / Re: Emailer threading
« on: June 18, 2017, 09:06:22 PM »
I managed to run the emailertest that you made me try at Reply # 15 by modifying the code as follows:

  Client.Credentials = NewSystem.Net.NetworkCredential( m_SmtpLoginUserName , m_SmtpLoginPassword)
 

I modify the line so high by:

  Client.Credentials = NewSystem.Net.NetworkCredential ("sebastienduhaime@gmail.com", "xxxxxxxx")

But when I made the same change in the anvanced HMI emailer its not working.


Thank you very much for your help it is very appreciated!!!

3
Support Questions / Re: Emailer threading
« on: June 16, 2017, 05:29:08 PM »
I did it and it works very well its the emailer function which wants not to work with the same email setting.

4
Support Questions / Re: Emailer threading
« on: June 16, 2017, 05:12:54 PM »
I do not understand what you mean?

5
Support Questions / Re: Emailer threading
« on: June 16, 2017, 04:48:21 PM »

 Credentials = {System.Net.NetworkCredential}         

UseDefaultCredentials = False

6
Support Questions / Re: Emailer threading
« on: June 16, 2017, 04:13:16 PM »
I start with visual studio so I do not understand everything but if you want one could use team viewer you could see for yourself.

7
Support Questions / Re: Emailer threading
« on: June 16, 2017, 02:55:35 PM »
Same error message.

An unhandled exception of type 'System.Net.Mail.SmtpException' occurred in System.dll

Additional Information: The SMTP server requires a secure connection or the client is not authenticated. The server response was: Authentication required


thanks!!

8
Support Questions / Re: Emailer threading
« on: June 14, 2017, 08:02:09 PM »
Sorry i translated it

thanks!!

9
Support Questions / Re: Emailer threading
« on: June 14, 2017, 07:34:06 PM »
This is an email send by emailer1 with button

Sorry for french !


An unhandled exception of type 'System.Net.Mail.SmtpException' occurred in System.dll

Additional Information: The SMTP server requires a secure connection or the client is not authenticated. The server response was: Authentication required



10
Support Questions / Re: Emailer threading
« on: June 14, 2017, 07:30:40 PM »
hello Archie,

This is an email send by a code its works well


view screnshot.


thanks!!

11
Support Questions / Re: Emailer threading
« on: June 14, 2017, 09:49:19 AM »
Attach a screenshot

thanks and best regard!!

12
Support Questions / Re: Emailer threading
« on: June 13, 2017, 10:09:27 PM »
Hello I have a small problem with sending email when I do code myself and I press button1 its works very well but when I use the function emailler1 its not working. I use visual studio 2015.

Imports System.Web
Imports System.IO
Imports System.Net.Mail



Public Class MainForm
    '*******************************************************************************
    '* Stop polling when the form is not visible in order to reduce communications
    '* Copy this section of code to every new form created
    '*******************************************************************************
    Private NotFirstShow As Boolean

    Private Sub Form_VisibleChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.VisibleChanged
        '* Do not start comms on first show in case it was set to disable in design mode
        If NotFirstShow Then
            AdvancedHMIDrivers.Utilities.StopComsOnHidden(components, Me)
        Else
            NotFirstShow = True
        End If
    End Sub

    '***************************************************************
    '* .NET does not close hidden forms, so do it here
    '* to make sure forms are disposed and drivers close
    '***************************************************************
    Private Sub MainForm_FormClosing(sender As Object, e As FormClosingEventArgs) Handles Me.FormClosing
        Dim index As Integer
        While index < My.Application.OpenForms.Count
            If My.Application.OpenForms(index) IsNot Me Then
                My.Application.OpenForms(index).Close()
            End If
            index += 1
        End While
    End Sub

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Buttontest.Click
        Try
            Dim Smtp_Server As New SmtpClient
            Dim e_mail As New MailMessage()
            Smtp_Server.UseDefaultCredentials = False
            Smtp_Server.Credentials = New Net.NetworkCredential("sebastienduhaime@gmail.com", "xxxxxx")
            Smtp_Server.Port = 587
            Smtp_Server.EnableSsl = True
            Smtp_Server.Host = "smtp.gmail.com"

            e_mail = New MailMessage()
            e_mail.From = New MailAddress("sebastienduhaime@gmail.com")
            e_mail.To.Add("sebastienduhaime@live.ca")
            e_mail.Subject = "Email Sending"
            e_mail.IsBodyHtml = False
            e_mail.Body = TxtMessage.Text
            Smtp_Server.Send(e_mail)
            MsgBox("Mail Sent")

        Catch error_t As Exception
            MsgBox(error_t.ToString)
        End Try

    End Sub

    Private Sub DataSubscriber1_DataChanged(sender As Object, e As Drivers.Common.PlcComEventArgs) Handles DataSubscriber1.DataChanged

    End Sub
End Class




Here are the mistakes I have when I use emailler:


Exception levée : 'System.NullReferenceException' dans AdvancedHMIControls.dll
Exception levée : 'System.NullReferenceException' dans AdvancedHMIControls.dll
Exception levée : 'System.NullReferenceException' dans AdvancedHMIControls.dll
Exception levée : 'System.NullReferenceException' dans AdvancedHMIControls.dll
Exception levée : 'System.NullReferenceException' dans AdvancedHMIControls.dll
Exception levée : 'System.Net.Mail.SmtpException' dans System.dll
Exception levée : 'System.Net.Mail.SmtpException' dans System.dll
Exception levée : 'System.Net.Mail.SmtpException' dans System.dll
Exception levée : 'System.NullReferenceException' dans AdvancedHMIControls.dll
Exception levée : 'System.NullReferenceException' dans AdvancedHMIControls.dll
Exception levée : 'System.NullReferenceException' dans AdvancedHMIControls.dll
Le thread 0x28d8 s'est arrêté avec le code 0 (0x0).
Le thread 0x3edc s'est arrêté avec le code 0 (0x0).
Le thread 0x359c s'est arrêté avec le code 0 (0x0).
Le thread 0x3784 s'est arrêté avec le code 0 (0x0).
Le programme '[15132] AdvancedHMI.vshost.exe' s'est arrêté avec le code 0 (0x0).


thanks and best regard!!!

Sebastien Duhaime




Pages: [1]