Mail Lib - AddMailAttachment -> Description$ = new filename?

Everything else that doesn't fall into one of the other PB categories.
Marco2007
Enthusiast
Enthusiast
Posts: 648
Joined: Tue Jun 12, 2007 10:30 am
Location: not there...

Mail Lib - AddMailAttachment -> Description$ = new filename?

Post by Marco2007 »

Well I found out, that the Mail-Lib works good at work - so I´ll use it :-)

I need just a little help:
'Description$' will be the information string displayed in the mail. 'Filename$' is the file to add as attachement.

I`m not shure, what information string means, but does it mean, the filename will be renamed to description$? That`s what happens here...
Is that okay?

br and thx
PureBasic for Windows
Fred
Administrator
Administrator
Posts: 18556
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Mail Lib - AddMailAttachment -> Description$ = new filename?

Post by Fred »

It's the description of your attachment (default to filename if none is specified).
Marco2007
Enthusiast
Enthusiast
Posts: 648
Joined: Tue Jun 12, 2007 10:30 am
Location: not there...

Re: Mail Lib - AddMailAttachment -> Description$ = new filename?

Post by Marco2007 »

Hm...

Code: Select all

AddMailAttachment(0, "Anhang", "filename.pdf", "application/pdf") 
-> the file I´m receiving is called anhang.pdf
If the description is an empty string, the name is a windows-generated (ATT.....pdf) name.

So I have to use this, when the name should remain:

Code: Select all

AddMailAttachment(0, GetFilePart(filename$), filename$, "application/pdf")


thx
PureBasic for Windows
Post Reply