[Gambas-user] PDF file

timothy timothy.marshal-nichols at ...247...
Fri Jun 29 08:46:47 CEST 2007


> > >
> > > 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
> >
> > I am probably missing something very simple. But how do you set the
> > message body of the SmtpClient email. There appears to be no Body
> > property?
> >
> > Thanks
> >
> > 8-{)} Timothy Marshal-Nichols
> > <mailto: timothy.marshal-nichols at ...247...>
> >
> >
> >
> Timothy,
> 
> The reponse is in Benoits text :
> 
> 	hSmtpClient.Add( "something text")
> or
> 	hSmtpClient.Add(something else, mimetype)
> 
> Steven
> 
>


Thanks, I have just tried this. Alas it adds a text attachment to the
mail message. Which I guess is what you would expect when looking at the
help. It does not set the message body.


Thanks

8-{)} Timothy Marshal-Nichols
<mailto: timothy.marshal-nichols at ...247...>







More information about the User mailing list