Re: Need advice on correct configuration for an SMTP Transport account



Hi All,

I just wanted to let you know that I (finally!) got Tmut to
actually send out an email, using my Comcast SMTP server!

The solution?  It looks like when I changed the "auth meth"
for the transport account from "login" to "LOGIN" - and viola! -
I could now send out an email...  :)

Now I just need to make my little console application do the
same thing, and I'm (almost) done!  After showing that I can
send an email, I just need to write the code to get notification
that my Gmail inbox has changed (new email, or existing email
deleted, etc.)...

- Steve Rosen


Steve Rosen wrote:
Hi All,

I'm just trying to send an email using the TinyMail library - and I've
written the relatively few lines of code that seem to be needed, but
I'm having a couple of problems.

First, I thought I'd just use Tmut to just send an email (so I could
use the correct "tny_account_set_XXXXX" functions in my program) - but
I just cannot get Tmut to send an email!

I created 2 Tmut accounts: The 1st Tmut account is mapped to a Gmail
account I have (using SSL) - and it works perfect!  In fact, my little
console program can do the exact same thing as Tmut now (for that very
same Gmail account - thanks to some helpful advice you all gave to me
in this last week).  The 2nd Tmut account is mapped to my Comcast SMTP
server, with the following settings:

Account name : smtp-comcast
Protocol     : smtp
Hostname     : smtp.comcast.net
User         : my-username-here
Type(+ From) : store / steverosen polarlight com
Options      : <blank>
Port         : -1 (so it just uses the default port 25)
Auth mech    : login


However, the above configuration just generates the following Tmut
error message:

    SMTP server smtp.comcast.net does not
    support requested authentication type login.


So, I then tried to set the "Protocol" to "esmtp" - same result (ERROR).
Then I tried to set the "Auth mech" to "auth" and "auth login" and
"auth-login" - same result (ERROR).  I also tried explicitly setting
the port to 25 - but that was not the problem, as I verified that Tmut
was at least getting the "helo" command successfully to the Comcast
SMTP server - it's just the authentication that keeps failing.  I can
use telnet to do the following with that Comcast SMTP server:

telnet smtp.comcast.net 25
220 omta15.emeryville.ca.mail.comcast.net comcast ESMTP server ready
helo
501 HELO requires valid address
helo auth
250 omta15.emeryville.ca.mail.comcast.net hello [24.7.14.56], pleased to meet you
auth login
500 5.5.1 command unrecognized
auth login
334 VXNlcm5hbWU6
<my-base64-encoded-username>
334 UGFzc3dvcmQ6
<my-base64-encoded-password>
235 2.7.0 ... authentication succeeded
mail from: <steverosen polarlight com>
250 2.1.0 <steverosen polarlight com> sender ok
rcpt to: <steve dapperlads com>
250 2.1.5 <steve dapperlads com> recipient ok
data
354 enter mail, end with "." on a line by itself
From: steverosen polarlight com
Subject: testing the smtp protocol
hello, steve - this is a test
and this is the end of the test!
.
250 2.0.0 LizY1e00G1CZuGw8bj0vV8 mail accepted for delivery
quit
221 2.0.0 omta15.emeryville.ca.mail.comcast.net comcast closing connection



So, can anyone help me to figure out how to successfully send out
an email using Tmut?

Then, once I can use Tmut to successfully send an email to my
Comcast SMTP server, I should be able to do the same thing
from my little console application, using the TinyMail library.

Thank you in advance,
Steve Rosen



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