Email with smtp a pdf
Posted
#1
(In Topic #696)
Enthusiast

Posted
Regular

sadams54 said
… the mime type to set in the smtp client for sending a pdf file.
…maybe:
http headers - Proper MIME media type for PDF files - Stack Overflow
mime application/pdf
Europaeus sum !
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
Posted
Enthusiast

e.Add(User.Home & "/" & StoreName & SlsID & ".pdf", "application/pdf", StoreName & SlsID & ".pdf")
it works but the mime type is not right as the file can't be opened on the other end.
Posted
Guru

Note that &/ will add a slash, if it is needed. No need for & "/" & which will add a slash if it is needed or not.
Posted
Enthusiast

Posted
Administrator

I had a look at this and discovered (thanks to gbWilly) that you need to load the PDF file, and then it works as expected. Try the following:-
That's a very old post of mine
gbWilly
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories
… there is always a Catch if things go wrong!
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories
… there is always a Catch if things go wrong!
Posted
Guru

That's a very old post of mine
Nice to know you are still around!
1 guest and 0 members have just viewed this.

