[Gambas-user] smtp client

Steven Lobbezoo steven at ...1652...
Tue Apr 24 17:22:03 CEST 2007


Of course you are right, 
but how can I do otherwise.
I cannot change the pdf, and the attachement has to be given as a string .

Steven

Le mardi 24 avril 2007 17:13, ron a écrit :
> On Tuesday 24 April 2007 12:12, Steven Lobbezoo wrote:
> > Hi,
> >
> > Advanced a bit on using it. The problem with To: was my own failure :-(
> > (as usual)
> > However, if i do :
> >       Ema.Add(tmp, "text/pdf")
> > where Ema is my smtp client,
> > i get a signal 11, and the program aborts.
> >
> > In tmp is a pdf file of about 1.6 Mbyte. Is it to large ?
> >
> > Here is a bit of the code I used :
> >
> > PRIVATE SUB MailDoc(ddoc AS String)
> > DIM tmp AS String
> > DIM Ema AS SmtpClient
>
> ........
>
> >       tmp = file.Load(User.Home & "/request/work/tempfile.pdf")
> >       Ema.Add(tmp, "text/pdf")              <---------- here is my sig 11
> > ! Ema.Send
> >   END IF
> >
> >
> > Any suggestions ?
> >
> > Steven
>
> Declaration of tmp is String
> You load a PDF file that is not pure a (ASCII) string.
>
> >From the help
> > http://gambasdoc.org/help/comp/gb.net.smtp/smtpclient/alternative
>
> SmtpClient.Alternative (gb.net.smtp)
>
> PROPERTY Alternative AS Boolean
>  Returns or sets if mail attachments are actually different alternatives of
> the same data. For example, a mail encoded in HTML, in UTF-8, or only in
> ASCII.
>
>  By default, this property is FALSE. You must define it before using the
> Add method.
>
> What happens if you try when this property is true?
> pdf files are more like the UTF-8 (8bit) instead of ASCII (7bit)
>
> Ron
>
>
> -------------------------------------------------------------------------
> 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