[Gambas-user] PDF file

Steven Lobbezoo steven at ...1652...
Thu Jun 28 15:34:41 CEST 2007


Timothy,

The reponse is in Benoits text :

	hSmtpClient.Add( "something text")
or
	hSmtpClient.Add(something else, mimetype)

Steven



Le mardi 26 juin 2007 19:13, timothy a écrit :
> > -----Original Message-----
> > From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user-
> > bounces at lists.sourceforge.net] On Behalf Of Benoit Minisini
> > Sent: Monday, 25 June 2007 07:58 PM
> > To: mailing list for gambas users
> > Subject: Re: [Gambas-user] PDF file
> >
> > 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
>
> 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...>
>
>
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user




More information about the User mailing list