[Gambas-user] Sendmail problems

Johny Provoost johny.provoost at ...27...
Mon Oct 12 19:10:03 CEST 2009


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: johny.provoost at ...27... <mailto:johny.provoost at ...27...>*

*mailto: johny.provoost at ...626... <mailto:johny.provoost at ...626...>*

*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,
>
>   




More information about the User mailing list