...continua...
" That is because in the .add you need to use a string for mime type.
Mime.binary will return an integer value.
@ Marty
For text file write .Add(t$, "text/plain","Test.txt")
Assuming that t$ is a File.Load of a text file
@ Rolf
For pfd file write .Add(t$, "application/pdf","Test.pdf")
Assuming that t$ is a File.Load of a pdf file
> I tried with different providers and their different settings. With SSL,
> I got no message at all, just ->quit. With TLS I got the same kind of
> errors and found no way to solve them. That provider uses STARTTLS,
> maybe it's not been fully implemented yet.
>
> Eventually I used an external tool for sending the mails.
Over here in the Netherlands you have to use the smtp server of the
provider that is connecting you.
So at home I have one, going to my girlfriend I need to change my mail
client settings to her providers smtp server. At work I need to change
my mail client settings to that providers smtp server.
Hence all you need here is the smtp DNS name or IP, no username nor
password of the provider that is connecting you at that location.
So I can't help you with the SSl or TSL.
I can only say that I built a Gambas application at work that uses both
gb.smpt and gb.cairo (for pdf making). It sends information on extra
worked hours of personel to the accountants in a mail containing a
general text in the body and custom signature and an attached pdf
containing the information on extra hours for personel.
gb.cairo makes the pdf, next gb.smtp sends it all. I put a Wait 0.1 in
between to make sure pdf is complete before sending all.
Works like a charm.
--
Kind regards,
Willy "
" Thank you for that tip, I've changed it accordingly. So "Test.pdf" just
gives a random name to be added to the data in the string, and it
doesn't need the path?
> Over here in the Netherlands you have to use the smtp server of the
> provider that is connecting you.
We can do the same here, but you could also use any other provider's
access like Yahoo, GMX etc. I tried them all, no success.
> I can only say that I built a Gambas application at work that uses both
> gb.smpt and gb.cairo (for pdf making). It sends information on extra
> worked hours of personel to the accountants in a mail containing a
> general text in the body and custom signature and an attached pdf
> containing the information on extra hours for personel.
Yes, this is pretty near to what I intend to do with my Gambas app.
> gb.cairo makes the pdf, next gb.smtp sends it all. I put a Wait 0.1 in
> between to make sure pdf is complete before sending all.
> Works like a charm.
According to Benoit, Cairo works synchroneously, at least he is pretty
sure it does. But it turned out this wasn't my problem.
Except SMTP sending, it works great here too.
Thanks again for the advice!
Rolf "