Sign in

username:

password:



Not a member?

Search rabbit-semi



Search tips

Subscribe to rabbit-semi



Ads

Discussion Groups

Discussion Groups | Rabbit-Semi | SMTP_AUTH . Helo / Ehlo

This is a group for folks designing and programming embedded systems using the Rabbit Semiconductor C-programmable microcontroller. Rabbit Semi is a spin-off from Z-World who makes a variety of embedded modules and tools. This group is not affiliated with either Rabbit or Z-World, but is a user forum for sharing ideas, asking questions, flaunting knowledge, and other typical user group stuff. The Rabbit is a powerful uC, supported by a full-featured C-compiler.

SMTP_AUTH . Helo / Ehlo - Omar - Apr 29 9:45:49 2008

Hello,
I have developed a controller which send an e-mail for any events.

I have use
..
#declare use_smtp_auth
..

and in a function

...
#ifdef USE_SMTP_AUTH{
smtp_setauth ("username","password");
}
#endif
...

This make that after open the smtp server, the controller send the
"ehlo" command to that server, and then send the user and password in
64 encode. The e-mails are sended ok.

But in somes lan, the smtp server has not requiered authentication.
In not authentication mode, the controller should be send the "helo"
command.

I can erase the statment #declare use_smtp_auth, and compile the program.

My question is if I can make this changes this at runtime.

Regards

------------------------------------



(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )


Re: SMTP_AUTH . Helo / Ehlo - Tom Collins - Apr 30 12:23:33 2008

If you call smtp_setauth with a blank username and password, the library will connect with HELO and not attemp to authenticate with the server.

-Tom
-----Original Message-----
From: "Omar"
Date: Tuesday, Apr 29, 2008 8:46 am
Subject: [rabbit-semi] SMTP_AUTH . Helo / Ehlo
To: r...@yahoogroups.comReply-To: r...@yahoogroups.com

Hello,
I have developed a controller which send an e-mail for any events.

I have use
.
#declare use_smtp_auth
.

and in a function

..
#ifdef USE_SMTP_AUTH{
smtp_setauth ('username','password');
}
#endif
..

This make that after open the smtp server, the controller send the
'ehlo' command to that server, and then send the user and password in
64 encode. The e-mails are sended ok.

But in somes lan, the smtp server has not requiered authentication.
In not authentication mode, the controller should be send the 'helo'
command.

I can erase the statment #declare use_smtp_auth, and compile the program.

My question is if I can make this changes this at runtime.

Regards

------------------------------------



(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )

Re: SMTP_AUTH . Helo / Ehlo - Omar - Apr 30 17:47:09 2008

Yes !.
It works as you say.

Thank you Tom

Omar

--- In r...@yahoogroups.com, "Tom Collins" wrote:
>
> If you call smtp_setauth with a blank username and password, the
library will connect with HELO and not attemp to authenticate with the
server.
>
> -Tom
> -----Original Message-----
> From: "Omar"
> Date: Tuesday, Apr 29, 2008 8:46 am
> Subject: [rabbit-semi] SMTP_AUTH . Helo / Ehlo
> To: rabbit-semi@...: r...@yahoogroups.com
>
>
>
> Hello,
> I have developed a controller which send an e-mail for any events.
>
> I have use
> .
> #declare use_smtp_auth
> .
>
> and in a function
>
> ..
> #ifdef USE_SMTP_AUTH{
> smtp_setauth ('username','password');
> }
> #endif
> ..
>
> This make that after open the smtp server, the controller send the
> 'ehlo' command to that server, and then send the user and password in
> 64 encode. The e-mails are sended ok.
>
> But in somes lan, the smtp server has not requiered authentication.
> In not authentication mode, the controller should be send the 'helo'
> command.
>
> I can erase the statment #declare use_smtp_auth, and compile the
program.
>
> My question is if I can make this changes this at runtime.
>
> Regards
>

------------------------------------



(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )