Re: How to send a mail with attachment and embedde - WeOnlyDo Discussion board

Re: How to send a mail with attachment and embedde (General questions)

by wodDamir, Sunday, May 11, 2008, 22:41 (5800 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


Complete thread: