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 , (6596 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 , (5425 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 , (5424 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
...your service has been phenomenal. It's always quick and you are there when I need you.
We are having great success with your component ... email server that has over 750 000 mailboxes back ended by a SQL server...
Thank you so much for your hard work and commitment in producing well thought-out solutions. WeOnlyDo is very committed to customer satisfaction!
Your support is fantastic.
I've heard that you are amazing with your replies coming back so quickly - and now I've seen the speed in which you reply first hand.
Just thought you'd like to know that my gateway app with your SMTP Server component held the line against a DDOS attack today...
We are having great success with your component ... email server that has over 750 000 mailboxes back ended by a SQL server...
I've heard that you are amazing with your replies coming back so quickly - and now I've seen the speed in which you reply first hand.
Your component works really great. With minor effort I have been able to convert my delphi application...
Just thought you'd like to know that my gateway app with your SMTP Server component held the line against a DDOS attack today...