[Gambas-user] PDF file

Benoit Minisini gambas at ...1...
Mon Jun 25 20:58:13 CEST 2007


On lundi 25 juin 2007, Steven Lobbezoo wrote:
> Sorry about that
> I transferred it as root,
> changed the access rights to 777
> so, you can read them now.
>
> Sorry again,
> Steven
>

I got the file, and I succeeded in sending it to myself by using another 
Internet provider. I didn't get any error. Here is the code I used:

  DIM hSmtpClient AS NEW SmtpClient

  WITH hSmtpClient
    
    .Host = "smtp.noos.fr"
    .From = "gambas at ...764..."
    .Subject = "Test du composant SMTP de Gambas - " & Str(Now)
    .To.Add("XXXXX") ' Here is my private e-mail address
    .Add(File.Load("~/tempfile.pdf"), "application/pdf")
    
    .Send()
    
  END WITH

-- 
Benoit Minisini




More information about the User mailing list