Email

Email

Postby Colin Haig » Fri May 05, 2017 5: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
Colin Haig
 
Posts: 310
Joined: Mon Oct 10, 2005 5:10 am

Re: Email

Postby Antonio Linares » Fri May 05, 2017 7:25 am

Colin,

Please review FWH\samples\testsmtp.prg
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42068
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Email

Postby Colin Haig » 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
Colin Haig
 
Posts: 310
Joined: Mon Oct 10, 2005 5:10 am

Re: Email

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42068
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Email

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42068
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Email

Postby Colin Haig » Fri May 05, 2017 10:32 am

Hi Antonio

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

Cheers

Colin
Colin Haig
 
Posts: 310
Joined: Mon Oct 10, 2005 5:10 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 51 guests