Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

In a Mailer object, how do I include a username and password for authentication or credentials on my smtp server?

My trace file is pasted below. 


[[NEW SEND]]
SMTP>220-elasmtp-junco.atl.sa.earthlink.net ESMTP Exim 4.34 #1 Wed, 27 Feb 2008 16:51:07 -0500
220-NO UCE.  EarthLink does not authorize the use of its computers or network
220 equipment to accept, transmit, or distribute unsolicited e-mail.
LK>HELO basinenglt
SMTP>250 elasmtp-junco.atl.sa.earthlink.net Hello basinenglt [65.60.113.243]
LK>MAIL FROM:<smclain@basinwater.com>
SMTP>250 OK
LK>RCPT TO:<smclain@basinwater.com>
SMTP>550 Please configure your mail client to use authentication.


In visual basic, I'm able to send an email with this code:


   
        Dim Email As New System.Net.Mail.MailMessage()

        Email.From = New System.Net.Mail.MailAddress("smclain@basinwater.com")

        Email.To.Add("smclain@basinwater.com")

        Email.Subject = "This is a test"

        Email.Body = "Body of email goes here"

        Email.IsBodyHtml = True

        Dim x As New System.Net.Mail.SmtpClient("smtpauth.earthlink.net")

        Dim net As New System.Net.NetworkCredential("username@earthlink.net", "supersecretpassword")

        x.Credentials = net

        x.Port = 587

        x.Send(Email)

Is there some way to use this code in Lookout or is there some Mailer datamember I don't know about that I can setup to provide the right credentials?  I'm at a loss for what to do and how to do it.  If I can't figure it out, I'll have to use the Run object in Lookout to call a program that I'll have to make in VB that'll send out an email.  In that case, I've got to install .Net on 60 computers in the field and then I'll have to make a series of exe files for each alarm condition and associate individual Run objects with each.  Sheesh.  Well, anything you all can do to help would really be appreciated.  Thanks for taking the time to answer me.

Steve
0 Kudos
Message 1 of 2
(5,986 Views)
Lookout mailer object doesn't support authentication. We are considering adding this feature, but not yet.
 
Another option for you is to use other Mail Server. There are some free Mail Server softwares which don't do authentication.
Ryan Shi
National Instruments
0 Kudos
Message 2 of 2
(5,967 Views)