LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get email and plot attachment

The problem is that the mailer you're using is generating the boundary tag without enclosing the value in quotes. The VI searches for boundary=". Note the ending quote. In your sample there is no ending quote (the first array element has boundary=------------000601030507070009040808), so the VI never finds the text after the boundary tag to find the message parts.

Whether or not this meets email specs I don't know. I'm just telling you what's happening. When I send an email with an attachment from my Outlook at work to my Comcast account and I get the messages with the OGIC POP VI I see the quotes after the boundary= text.

To fix it, you just need to modify the code in the Save Attachments VI to look like this:

Notes
  1. The \r\n string is set to '\' code display. Do not place a string element on the block diagram and enter the text directly as "\r\n". This will not work. Instead, place a string constant and inside it enter two carriage returns. Right-click on the string constant and select '\' code display. The text will change to something like "\n\n", where "\n" is a newline character. Just change the first "\n" to "\r".
  2. This will only work with your specific mailer.


Message Edited by smercurio_fc on 03-03-2008 11:05 AM
0 Kudos
Message 11 of 14
(1,072 Views)
That appears to work.  Thanks for the help
0 Kudos
Message 12 of 14
(1,058 Views)

Hi

Could you please send OGIC_Base64.Vi to me.

 

My email is:

Hong.zhang@agresearch.co.nz

 

Thanks

 

0 Kudos
Message 13 of 14
(758 Views)

Hi Hong,

 

This thread is over 5 years old, so I would recommend starting a new thread with details about what you want to accomplish. There may be updated ways to accomplish this is LabVIEW.

 

Regards,

Matthew B.
Offering Manager
NI
0 Kudos
Message 14 of 14
(742 Views)