ngoodman Posted January 27, 2010 Share Posted January 27, 2010 a strange one here I have a app that logs alarms to a text file I can open the text file and all is OK but when i email from within daqfactory the file becomes corrupted any ideas? function that does the email is copied below email.strHost = "mailsvr2" email.strUserName = "" //username email.strPassword = "" //password email.strTo = "xxxx@kesxxxxlbce.co.uk" email.strCC = " " email.strReplyAddress = "" email.strSubject = "Log file attached" email.strFile = "x:\daqfactory\skinalarm.txt" email.Port = "25" email.strAuthenticate = "NoLogin" email.Send() I can email the file within lotus notes and it arrives ok? any ideas?????????? Thanks Link to comment Share on other sites More sharing options...
AzeoTech Posted January 27, 2010 Share Posted January 27, 2010 what sort of corruption? Link to comment Share on other sites More sharing options...
ngoodman Posted January 28, 2010 Author Share Posted January 28, 2010 by trial and error I solved the problem if i added a body field to the script and entered some text the file arrived intact ?????????? Link to comment Share on other sites More sharing options...
AzeoTech Posted January 28, 2010 Share Posted January 28, 2010 Attachments actually end up as part of the body in the email encoded using MIME, so its possible that either our client or your server is mangling things if there is no regular body to add the attachment to the end of. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.