Re: Trouble trying to send an email



El jue, 20-05-2010 a las 18:47 -0700, Steve Rosen escribió:

> And I have a TRANSPORT store account all setup to use SMTP to send
> the message.  So the really simple code looks like this:
> 
>     // create a test message...
>     TnyMsg * msg = create_test_msg ();
> 
>     // send the test message...
>     TnySendQueue * queue = tny_camel_send_queue_new
> (TNY_CAMEL_TRANSPORT_ACCOUNT (account));
>     tny_send_queue_add (queue, msg, &l_err);
> 
> Then I just call the "gtk_main()" function to see if the test message
> gets sent - but nothing happens...  :(
> 
> In gdb, I put a break at the "smtp_connect" function, but it never
> gets called...
> 
> Using a similar SMTP account that I setup in Tmut, the "smtp_connect"
> function DOES get called (although it fails to successfully connect
> to my Comcast SMTP server - but that's my next question!)...
> 
> So, any thoughts on what is wrong?

	Maybe it's missing the call to tny_camel_send_queue_flush. Though from
what I see, the worker thread (create_worker function in camel send
queue) should be called on adding the message.

	Could you check with gdb if create_worker is called?


> telnet smtp.comcast.net 25
> helo auth
> auth login
> <base64 encoded username>
> <base64 encoded password>
> data
> ... (etc.)
> 
> So how do you configure a Tmut SMTP account to exchange the correct
> authentication conversation with the Comcast SMTP server?

	You need to have a handler for set_func (see tny_account_set_pass_func
and tny_account_forget_pass_func). The username is set with
tny_account_set_user.

	Br,

-- 
José Dapena Paz <jdapena igalia com>
Igalia



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]