How to send a mail with attachment and embedded pi (wodSmtp)
I tried it by merging the two relevant examples, but it doesn't work...
I use VB6 COM component.
Thanks!
by am, (6325 days ago)
I tried it by merging the two relevant examples, but it doesn't work...
I use VB6 COM component.
Thanks!
by wodDamir , (6325 days ago) @ am
Hi Am,
Did you try the Attach method?
In sample 8. With embedded picture , just add something like this:
[code]wodSmtp1.Message.Attach C:\some_file_to_attach.zip [/code]
The above code should be added before the .SendMessage call.
Can you try that and let me know the result?
Regards,
Damba
by am, (6325 days ago) @ wodDamir
Thank you very much! it works!
I have anoter question please: Since I use embedded picture, I have to use Message.HTMLText method.
I tried to combine HTMLText and regular text, but found nothing yet. Is it possible?
I want to just put regular text (not HTML), because if I use it as HTML, all the special characters (line feed etc.) are gone.
In fact, I need to customize a mail with: embedded picture + regular text + attachment.
Thanks again!
Hi Am,
Did you try the Attach method?
In sample 8. With embedded picture , just add something like this:
[code]wodSmtp1.Message.Attach C:\some_file_to_attach.zip [/code]
The above code should be added before the .SendMessage call.
Can you try that and let me know the result?
Regards,
Damba
by wodDamir , (6325 days ago) @ am
Am,
You can try something like this:
[code]wodSmtp1.CreateSimple txtFrom.Text, txtTo.Text, txtSubject.Text, txtPlainText.Text
wodSmtp1.Message.Attach Text1.Text, image/gif , 1
wodSmtp1.Message.Parts(1).ContentDisposition = inline
wodSmtp1.SendMessage[/code]
This will send a message with plain text, and an embedded picture. If you wish to attach another file, just call Attach method again with the specific parameters.
I would also suggest that you try checking the following link: http://www.weonlydo.com/Smtp/Help/WODSMTPLib~SmtpMsg~Attach.html
For more information on wodSmtp's Attach method.
Can you please check it out and try?
Regards,
Damba
by am, (6324 days ago) @ wodDamir
Thank you very much!
The last example you sent is working, but the picture is attached, not embedded.
I will look further on manual to see a solution to my question.
Thanks!
The people at WeOnlyDo are amazing! ... I always get a super fast response from customer service, and the products are great too. Thanks WeOnlyDo
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?
...I'm extremely impressed with the product, it represents excellent value for money...
...with the SFTP interface you produced, everything was so simple to understand, we were able to start coding almost immediately!
Congratulations on an excellent product and first rate support!
Not only wodSFTPdll is excellent, the service you have provided is outstanding and second to none!
Fantastic product by the way, it has helped us tremendously on a daily basis. Keep up the good work.
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.
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?
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.