Thanks, did'nt knew that.

The problem is indeed in the xdg-email script, or rather it's 
thunderbird.  Tried a new version of xdg an then I saw on there website 
that attach not working with thunderbird.

So don't look further.

I still learned a lot so thank you all.



*Vriendelijke Groeten*

*Johny Provoost*

*mailto: [email protected] <mailto:[email protected]>*

*mailto: [email protected] <mailto:[email protected]>*

*Website:* *http://www.johnyprovoost.net* <http://www.johnyprovoost.net/>




Benoît Minisini schreef:
>> Hi,
>>
>> I want to send mail throug my program but I'm unable to use a attachement.
>> The vTo, vSubject and vBody are filled in correctly in Thunderbird, but
>> in vAttach I put the path to a jpg file and Thunderbird do not attach
>> the file.
>> If I Try to put an incorrect path in vAttach, I get an error form Gambas
>> as expected.  Is it the fault of Gambas, my code or Thunderbird?
>>
>> PUBLIC SUB btVersturen_Click()
>>   DIM vTo AS NEW String[]
>>   DIM vSubject AS String
>>   DIM vBody AS String
>>   DIM vAttach AS String
>>   ........................
>>   Desktop.SendMail(vTo,,, vSubject, vBody, vAttach)
>>
>> I work with gambas 2.8 in Ubuntu 9.04 and QT
>> (GTK gives the same result)
>>
>> I tested with evolution as my default email program, but I get an error
>> from evolution.  Evolution seemt to replace all the '/' with '%2F'.
>> I don't know if Thunderbird does the same.  Thunderbird gives no error
>> (but no attach either).
>>
>>     
>
> Desktop.SendMail is just an interface to xdg-email. So try to send your mail 
> with the xdg-email command. If it works, then there is a bug in Gambas, 
> otherwise the problem is in the xdg-email script.
>
> Regards,
>
>   

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to