Re: [twsocket] SMTP Client and Streams
Hello Veit, You have to override TriggerGetData method. FEmailfiles is a TStringList holding the filenames to attach. I think the most easy way is to use the Objects of this stringlist to add TStreams instead of filenames. In TriggerGetData Stream is opened from filename, so you can just use the streams over there. Maybe a day work or so, maybe little longer with test case.. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Wednesday, February 20, 2008, 08:27, Veit Zimmermann wrote: Wilfried Mestdagh wrote: Hello Arno, Is there a possibility to use a stream as an attachment of an email? Besides of programming it all by myself, of course. I don't think so, I recall that Wilfried asked the same questing last year, possibly he has implemented that feature yet and can help with some tips? You have a good memory :) No I did not implemented it because it was a small project where the time to invest it was out of budget. Because it was not a heavy load application I did a quick workaround by saving the stream to a temp file before sending the mail. Thanks Arno and Wilfried I thought about Wilfrieds solution, too, and I probably will go that way. What are the chances and what would the time frame be of implementing stream input to ICS? I definitely need this in future projects. I might try it myself, but at the moment... Also I'm not sure that I have enough experience in this field. Veit -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] SMTP Client and Streams
Wilfried Mestdagh wrote: Hello Veit, You have to override TriggerGetData method. FEmailfiles is a TStringList holding the filenames to attach. I think the most easy way is to use the Objects of this stringlist to add TStreams instead of filenames. In TriggerGetData Stream is opened from filename, so you can just use the streams over there. Maybe a day work or so, maybe little longer with test case.. Thanks Wilfried for the short instruction. Maybe I can do this in a few weeks. Is there a general interest to have this in ICS (besides Arno)? Veit -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
[twsocket] SMTP Client and Streams
Hi Is there a possibility to use a stream as an attachment of an email? Besides of programming it all by myself, of course. I couldn't find anything at first glance. Thanks Veit -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] SMTP Client and Streams
Hello Arno, Is there a possibility to use a stream as an attachment of an email? Besides of programming it all by myself, of course. I don't think so, I recall that Wilfried asked the same questing last year, possibly he has implemented that feature yet and can help with some tips? You have a good memory :) No I did not implemented it because it was a small project where the time to invest it was out of budget. Because it was not a heavy load application I did a quick workaround by saving the stream to a temp file before sending the mail. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] SMTP Client and Streams
Veit Zimmermann wrote: Hi Is there a possibility to use a stream as an attachment of an email? Besides of programming it all by myself, of course. I don't think so, I recall that Wilfried asked the same questing last year, possibly he has implemented that feature yet and can help with some tips? -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] SMTP Client and Streams
Hello, I think that would be a nice feature to put on top of the (virtual) todo list. I don't need that currently, but it makes much sence to me. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html Wilfried Mestdagh wrote: Hello Arno, Is there a possibility to use a stream as an attachment of an email? Besides of programming it all by myself, of course. I don't think so, I recall that Wilfried asked the same questing last year, possibly he has implemented that feature yet and can help with some tips? You have a good memory :) No I did not implemented it because it was a small project where the time to invest it was out of budget. Because it was not a heavy load application I did a quick workaround by saving the stream to a temp file before sending the mail. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] SMTP Client and Streams
Wilfried Mestdagh wrote: Hello Arno, Is there a possibility to use a stream as an attachment of an email? Besides of programming it all by myself, of course. I don't think so, I recall that Wilfried asked the same questing last year, possibly he has implemented that feature yet and can help with some tips? You have a good memory :) No I did not implemented it because it was a small project where the time to invest it was out of budget. Because it was not a heavy load application I did a quick workaround by saving the stream to a temp file before sending the mail. Thanks Arno and Wilfried I thought about Wilfrieds solution, too, and I probably will go that way. What are the chances and what would the time frame be of implementing stream input to ICS? I definitely need this in future projects. I might try it myself, but at the moment... Also I'm not sure that I have enough experience in this field. Veit -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be