Revision 583 src/send_message.c

send_message.c (revision 583)
451 451
{
452 452
	Session *session;
453 453
	SMTPSession *smtp_session;
454
	gchar *out_str;
454 455
	gushort port;
455 456
	SendProgressDialog *dialog;
456 457
	gchar buf[BUFFSIZE];
......
515 516
	smtp_session->from = g_strdup(ac_prefs->address);
516 517
	smtp_session->to_list = to_list;
517 518
	smtp_session->cur_to = to_list;
518
	smtp_session->send_data = get_outgoing_rfc2822_str(fp);
519
	smtp_session->send_data_len = strlen(smtp_session->send_data);
520 519

  
520
	out_str = get_outgoing_rfc2822_str(fp);
521
	smtp_session->send_data = (guchar *)out_str;
522
	smtp_session->send_data_len = strlen(out_str);
523

  
521 524
#if USE_SSL
522 525
	port = ac_prefs->set_smtpport ? ac_prefs->smtpport :
523 526
		ac_prefs->ssl_smtp == SSL_TUNNEL ? SSMTP_PORT : SMTP_PORT;

Also available in: Unified diff