FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Email
Posts: 310
Joined: Mon Oct 10, 2005 05:10 AM
Email
Posted: Fri May 05, 2017 05:41 AM

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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Email
Posted: Fri May 05, 2017 07:25 AM

Colin,

Please review FWH\samples\testsmtp.prg

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 310
Joined: Mon Oct 10, 2005 05:10 AM
Re: Email
Posted: Fri May 05, 2017 10:17 AM

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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Email
Posted: Fri May 05, 2017 10:27 AM

Colin,

You can send HTML using Class TSmtp

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Email
Posted: Fri May 05, 2017 10:28 AM
<embed src="http://example.com/the.pdf" width="500" height="375" type='application/pdf'>

http://stackoverflow.com/questions/291813/recommended-way-to-embed-pdf-in-html
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 310
Joined: Mon Oct 10, 2005 05:10 AM
Re: Email
Posted: Fri May 05, 2017 10:32 AM

Hi Antonio

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

Cheers

Colin

Continue the discussion