Jump to content


Photo
- - - - -

Generate HTML to create e-mail body

email

  • Please log in to reply
3 replies to this topic

#1 Bruno Henrique da Silva

Bruno Henrique da Silva

    I've come back for more.

  • Members
  • 2 posts
  • Version:LabVIEW 2010
  • Since:2009

Posted 21 November 2011 - 05:20 PM

Hello, I create in labview to send an HTML email, so I would like to have a field where you can type in labview and manages this HTML, I need the same way as a standard, so as an entry where I escrevr write and then send the labview own, the html for the email would contain links and images as in email sent by large retailers.
Can someone help me, I am new to labview.
I do not know if I've been very clear with my words.

#2 Jon Kokott

Jon Kokott

    Very Active

  • Members
  • PipPipPip
  • 176 posts
  • Location:Milwaukee, WI
  • Version:LabVIEW 2010
  • Since:2006

Posted 21 November 2011 - 07:34 PM

You want to use labview to spam the world?
Certified LabVIEW Architect

#3 Ton Plomp

Ton Plomp

    How many lines per hour? Zero!

  • Premium Member
  • 1,973 posts
  • Location:Netherlands
  • Version:LabVIEW 2012
  • Since:2000

Posted 21 November 2011 - 08:11 PM

LabVIEW has an SMTP email client, that allows you to send an email.
If you want that email to contain HTML contents, you just have to put that into the message of the email.
For the actual content of the HTML message I would look at some email's you want to mimic.

Note however that sending email has got quite tricky the most recent years. All large online email-systems (yahoo, google/gmail, microsoft/hotmail/live.com) allmost force you to go through a known email server. It is one of the effects where the normal people suffer from the bad exceptions (spam).

Ton

#4 Phillip Brooks

Phillip Brooks

    The 500 club

  • Members
  • PipPipPipPipPip
  • 749 posts
  • Location:Boston, MA
  • Version:LabVIEW 8.6
  • Since:1999

Posted 22 November 2011 - 12:19 PM

You can use the example VI on the NI Community forum to send email messages via GMAIL.

http://decibel.ni.co...t/docs/DOC-2401

If you want to send HTML in the body of the message, you would need to modify the example to set the MailMessage IsBodyHtml property to TRUE.

Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T