aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-callbacks.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r--mail/mail-callbacks.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index 989698bfac..33b7c2ee30 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -417,8 +417,11 @@ composer_send_cb (EMsgComposer *composer, gpointer data)
message = composer_get_message (composer);
if (!message)
return;
+
transport = mail_config_get_default_transport ();
-
+ if (!transport)
+ return;
+
send = g_malloc (sizeof (*send));
send->psd = psd;
send->composer = composer;