Page 1 of 1

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

Posted: Sun Oct 18, 2009 1:51 pm
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

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

Posted: Sun Oct 18, 2009 1:57 pm
by Fred
It's the description of your attachment (default to filename if none is specified).

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

Posted: Sun Oct 18, 2009 2:02 pm
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