How to send message with multiply attachments (General questions)
Hello,
I need to send message with several attachments. Does wodSmtp component support it?
Thanks, 
     Alex
Hello,
I need to send message with several attachments. Does wodSmtp component support it?
Thanks, 
     Alex
by woddrazen  ,  (6716 days ago) @ Alex
,  (6716 days ago) @ Alex
Hi Alex,
Yes of course you can add as many files in attachment as you want. For each file you should call wodSMTP SmtpMsg Object Attach Method which will add file to your message attachment.
[code]
    ...
    wodSmtp1.Message.Attach  c:\file1.exe 
    wodSmtp1.Message.Attach  c:\file2.exe 
    wodSmtp1.SendMessage [/code] 
More help for Attach Method you can find here:
http://www.weonlydo.com/Smtp/Help/WODSMTPLib~SmtpMsg~Attach.html
Let us know ho wit goes.
Regards,
Drazen
by Adam  ,  (5544 days ago) @ woddrazen
,  (5544 days ago) @ woddrazen
Hi Alex,
Yes of course you can add as many files in attachment as you want. For each file you should call wodSMTP SmtpMsg Object Attach Method which will add file to your message attachment.
[code]
...
wodSmtp1.Message.Attach c:\file1.exe
wodSmtp1.Message.Attach c:\file2.exewodSmtp1.SendMessage [/code]
More help for Attach Method you can find here:
http://www.weonlydo.com/Smtp/Help/WODSMTPLib~SmtpMsg~Attach.htmlLet us know ho wit goes.
Regards,
Drazen
Every time I use the wodSmtp1.Message.Attach a second time I get the error Failed to open attachment file . In my test I can send each of the attachments individually I just can not add them both to the same message.
-Adam
by wodDamir  ,  (5544 days ago) @ Adam
,  (5544 days ago) @ Adam
Adam,
I just tried calling Attach method twice, one after another, and the attachment was correctly added to the message.
Can you perhaps show me the code you're using to attach multiple attachments?
Regards,
Damba

May I say how nice it is to work with components so complete and self-explanatory that using them in my application is as instinctive as though I wrote them myself?

You have been great as far as offering support is concerned and has been extremely responsive to both support requests and suggestions for product enhancements.

WeOnlyDo!COM will be the first stop I make should I require any further off-the-shelf components.

The wodCrypt product is great and we appreciate your effort to add support for UNIX Crypt.

...wodFtpDlx was exactly what I needed, it worked, and it was priced right...

We have recently completed a large 1200+ location project where reliable Telnet and SSH connectivity was required. wodSSH worked flawlessly and allowed our staff to complete our project ontime and within budget.

...I'm extremely impressed with the product, it represents excellent value for money...

We have recently completed a large 1200+ location project where reliable Telnet and SSH connectivity was required. wodSSH worked flawlessly and allowed our staff to complete our project ontime and within budget.

I would highly recommend this to anyone who needs a good quality SFTP solution.

Congratulations on an excellent product and first rate support!

