Page 1 of 1

Email

Posted: Fri May 05, 2017 5:41 am
by Colin Haig
Hi All

I would like to embed a word document/ pdf into an email for a newsletter mail out - I am using an
older version of xHarbour and have linked in the tsmtp.prg

Regards

Colin

Re: Email

Posted: Fri May 05, 2017 7:25 am
by Antonio Linares
Colin,

Please review FWH\samples\testsmtp.prg

Re: Email

Posted: Fri May 05, 2017 10:17 am
by Colin Haig
Hi Antonio

I checked the testsmtp.prg in the samples folder but it only showed attachments - I need to embed a document in the body of the email.

Regards

Colin

Re: Email

Posted: Fri May 05, 2017 10:27 am
by Antonio Linares
Colin,

You can send HTML using Class TSmtp

so you need to find how to embed those documents into HTML

Re: Email

Posted: Fri May 05, 2017 10:28 am
by Antonio Linares
<embed src="http://example.com/the.pdf" width="500" height="375" type='application/pdf'>

http://stackoverflow.com/questions/2918 ... df-in-html

Re: Email

Posted: Fri May 05, 2017 10:32 am
by Colin Haig
Hi Antonio

Thanks for the help - I will look at the html option.

Cheers

Colin