From: yahalom on
I am trying to use smtp package and with different smtp servers I
fail. Seems like smtp package does not work in the modern spam
terrified world. my code:

package require tls
package require mime
package require smtp

set userName test
ser password test

set token [::mime::initialize -canonical text/plain -string hello]
::mime::setheader $token Subject "This is a test message"

::smtp::sendmessage $token -debug 1 -usetls 1 -ports 465 -originator
test(a)gmail.com -recipients "test2(a)gmail.com" -servers smtp.gawab.com -
username $userName -password $password

I tried with gmail and got that the service is not available. The same
account works fine with outlook

I tried with gawab.com and got "553 you have to authenticate"

I tried with are web host and again got "553 you have to authenticate"

and I doing something wrong
From: dave.joubert on
On Apr 23, 5:28 am, yahalom <yahal...(a)gmail.com> wrote:
> I am trying to use smtp package and with different smtp servers I
> fail. Seems like smtp package does not work in the modern spam
> terrified world. my code:


I cannot give you the time to help solve this particular problem, but
I can tell you what has helped me in the past:

a) use a debug proxy server between yourself and the target

b) use telnet to investigate what the remote server is doing

c) set up your own server (say postfix) and get it working to that
first

All of these are overkill if your problem is simple, but that is not
always easy to predict from the outside.

Dave
From: yahalom on
On Apr 23, 1:20 pm, "dave.joub...(a)googlemail.com"
<dave.joub...(a)googlemail.com> wrote:
> On Apr 23, 5:28 am, yahalom <yahal...(a)gmail.com> wrote:
>
> > I am trying to use smtp package and with different smtp servers I
> > fail. Seems like smtp package does not work in the modern spam
> > terrified world. my code:
>
> I cannot give you the time to help solve this particular problem, but
> I can tell you what has helped me in the past:
>
> a) use a debug proxy server between yourself and the target
>
> b) use telnet to investigate what the remote server is doing
>
> c) set up your own server (say postfix) and get it working to that
> first
>
> All of these are overkill if your problem is simple, but that is not
> always easy to predict from the outside.
>
> Dave

I tried debugging but it took me nowhere. I also find it strange that
such a trivial task like sending an email is so difficult with tcl.
this is totally contrary to my experience with tcl that I cannot
believe that there is something wrong in the package. I was able to
send email to my through my work place server but it is without ssl
encryption. Am I the only one that tries to send email with gmail
account using tcl? and if my code perfect, then what can be wrong?
From: dave.joubert on
On Apr 25, 7:56 am, yahalom <yahal...(a)gmail.com> wrote:
> On Apr 23, 1:20 pm, "dave.joub...(a)googlemail.com"
> <dave.joub...(a)googlemail.com> wrote:
> > On Apr 23, 5:28 am, yahalom <yahal...(a)gmail.com> wrote:
>
> > a) use a debug proxy server between yourself and the target
>
>
> I tried debugging but it took me nowhere .... and if my code perfect, then what can be wrong?

We can't help you unless we see something, say the trace from a debug
server; I certainly do not have the time to set up a debug
environment.

Dave

From: Gerald W. Lester on
yahalom wrote:
> I am trying to use smtp package and with different smtp servers I
> fail. Seems like smtp package does not work in the modern spam
> terrified world. my code:
>
> package require tls
> package require mime
> package require smtp
>
> set userName test
> ser password test
>
> set token [::mime::initialize -canonical text/plain -string hello]
> ::mime::setheader $token Subject "This is a test message"
>
> ::smtp::sendmessage $token -debug 1 -usetls 1 -ports 465 -originator
> test(a)gmail.com -recipients "test2(a)gmail.com" -servers smtp.gawab.com -
> username $userName -password $password
>
> I tried with gmail and got that the service is not available. The same
> account works fine with outlook
>
> I tried with gawab.com and got "553 you have to authenticate"
>
> I tried with are web host and again got "553 you have to authenticate"
>
> and I doing something wrong

Most servers want a From and a To in the mime headers.

--
+------------------------------------------------------------------------+
| Gerald W. Lester |
|"The man who fights for his ideals is the man who is alive." - Cervantes|
+------------------------------------------------------------------------+
 |  Next  |  Last
Pages: 1 2
Prev: fickle problem...
Next: wikit on Mac OS 10.5.8