[Gambas-user] smtp client

ron ronstk at ...239...
Tue Apr 24 17:13:20 CEST 2007


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.




More information about the User mailing list