You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Wednesday, November 22nd 2006, 9:59am

KMail and DCOP

Hi there,
I need help in using kmail and dcop to send emails with an attachment.
I have Qt 3.3.7 KDE 3.5.5. and KMAil 1.9.5 on debian 'testing'.
The following code returns without error, sends the email OK but not the attachment.
Someone out there who can help me with this?
Thanks a lot


#!/bin/bash
#
KMAIL="kmail MailTransportServiceIface"
FROM="me@localhost"
TO="me@localhost"
CC=""
BCC=""
SUBJECT="Hey look at me "
MESSAGE="This script"
ATTACHMENT="'[' ']'"
dcop kmail MailTransportServiceIface "sendMessage(QString, QString, QString, QString, QString, QString, KURL::List)" "$FROM" "$TO" "$CC" "$BCC" "$SUBJECT" "$MESSAGE" \[ /home/me/info.pdf \]
echo $?