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
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
501 HELO requires valid address
250 omta15.emeryville.ca.mail.comcast.net hello [188.8.131.52], pleased to meet you
500 5.5.1 command unrecognized
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
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
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,