Sign in

username:

password:



Not a member?

Search rabbit-semi



Search tips

Subscribe to rabbit-semi



Ads

Discussion Groups

Discussion Groups | Rabbit-Semi | Re: SMTP Port

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.

Re: SMTP Port - Dan Allen - Mar 14 11:33:57 2008

#define SMTP_PORT 25

On Fri, Mar 14, 2008 at 10:01 AM, bluetech_th wrote:

> Hi All,
> I would like to change SMTP port 25 to another, please advise me.
>
> Sakorn
>
>



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


Re: SMTP Port - bluetech_th - Mar 14 12:11:08 2008

if I would like to change to the value that I config. ( example, from 25
to 2525 ) . What should I do on runtime ?

Sakorn

--- In r...@yahoogroups.com, "Dan Allen"
wrote:
>
> #define SMTP_PORT 25
> On Fri, Mar 14, 2008 at 10:01 AM, bluetech_th
wrote:
>
> > Hi All,
> > I would like to change SMTP port 25 to another, please advise me.
> >
> > Sakorn
> >
> >
> >
>
------------------------------------



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

Re: Re: SMTP Port - Dan Allen - Mar 14 12:39:36 2008

That would require modifying the library, in which case you're on your own.
Dan...

On Fri, Mar 14, 2008 at 11:43 AM, bluetech_th wrote:

> if I would like to change to the value that I config. ( example, from
> 25
> to 2525 ) . What should I do on runtime ?
>
> Sakorn
>
> --- In r...@yahoogroups.com , "Dan
> Allen"
> wrote:
> >
> > #define SMTP_PORT 25
> >
> >
> >
> >
> > On Fri, Mar 14, 2008 at 10:01 AM, bluetech_th
> wrote:
> >
> > > Hi All,
> > > I would like to change SMTP port 25 to another, please advise me.
> > >
> > > Sakorn
> > >
> > >
> > >
> > >
> >
>



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

RE: Re: SMTP Port - Dave Moore - Mar 14 13:22:56 2008

I think if you just do a

#define SMTP_PORT

Before you do a #use "smtp.lib" you'll be fine. The library checks to see
if the symbol is already defined:

#ifndef SMTP_PORT
#define SMTP_PORT 25
#endif

-- Dave

Dan Allen wrote:
> That would require modifying the library, in which case you're on
> your own.
> Dan...
> On Fri, Mar 14, 2008 at 11:43 AM, bluetech_th > > wrote:
> if I would like to change to the value that I config. ( example,
> from 25 to 2525 ) . What should I do on runtime ?
>
> Sakorn
>
> --- In r...@yahoogroups.com
> , "Dan Allen"
> wrote: >
> > #define SMTP_PORT 25
> >
> >
> >
> >
> > On Fri, Mar 14, 2008 at 10:01 AM, bluetech_th
> wrote:
> >
> > > Hi All,
> > > I would like to change SMTP port 25 to another, please advise
me.
> > >
> > > Sakorn
> > >
> > >
> > >
> > >
> >
------------------------------------



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

Re: Re: SMTP Port - Dan Allen - Mar 14 13:26:33 2008

I read the request as a desire to change the port without re-compiling, and
at run-time.
Dan...
On Fri, Mar 14, 2008 at 1:19 PM, Dave Moore
wrote:

> I think if you just do a
>
> #define SMTP_PORT Before you do a #use "smtp.lib" you'll be fine. The library checks to see
> if the symbol is already defined:
>
> #ifndef SMTP_PORT
> #define SMTP_PORT 25
> #endif
>
> -- Dave
> Dan Allen wrote:
> > That would require modifying the library, in which case you're on
> > your own.
> >
> >
> > Dan...
> >
> >
> > On Fri, Mar 14, 2008 at 11:43 AM, bluetech_th
> > > > wrote:
> >
> >
> > if I would like to change to the value that I config. ( example,
> > from 25 to 2525 ) . What should I do on runtime ?
> >
> > Sakorn
> >
> > --- In r...@yahoogroups.com
> > , "Dan Allen"
> > wrote: >
> > > #define SMTP_PORT 25
> > >
> > >
> > >
> > >
> > > On Fri, Mar 14, 2008 at 10:01 AM, bluetech_th
> >
> >
> > wrote:
> > >
> > > > Hi All,
> > > > I would like to change SMTP port 25 to another, please advise
> me.
> > > >
> > > > Sakorn
> > > >
> > > >
> > > >
> > > >
> > >
> >
> >
> >
> >
> >
> >
>



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

RE: Re: SMTP Port - Dave Moore - Mar 14 13:30:37 2008

Oh, runtime. Didn't see that part. ;-)

Dan's got it...you're on your own modifying the lib.

-- Dave

Dan Allen wrote:
> That would require modifying the library, in which case you're on
> your own.
> Dan...
> On Fri, Mar 14, 2008 at 11:43 AM, bluetech_th > > wrote:
> if I would like to change to the value that I config. ( example,
> from 25 to 2525 ) . What should I do on runtime ?
>
> Sakorn
>
> --- In r...@yahoogroups.com
> , "Dan Allen"
> wrote: >
> > #define SMTP_PORT 25
> >
> >
> >
> >
> > On Fri, Mar 14, 2008 at 10:01 AM, bluetech_th
> wrote:
> >
> > > Hi All,
> > > I would like to change SMTP port 25 to another, please advise
me.
> > >
> > > Sakorn
> > >
> > >
> > >
> > >
> >
------------------------------------



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

Re: Re: SMTP Port - Scott Henion - Mar 14 14:24:53 2008

Dave Moore wrote:
> I think if you just do a
>
> #define SMTP_PORT Before you do a #use "smtp.lib" you'll be fine. The library checks to see
> if the symbol is already defined:
>
> #ifndef SMTP_PORT
> #define SMTP_PORT 25
> #endif
>
> -- Dave
>

You can try using:

unsigned smtp_port;
#define SMTP_PORT smtp_port

Then set the smtp_port value before sending any emails. The definition
and variable would need to be defined before any network #use statements.

--
------------------------------------------
| Scott G. Henion| s...@shdesigns.org |
| Consultant | Stone Mountain, GA |
| SHDesigns http://www.shdesigns.org |
------------------------------------------
Rabbit libs: http://www.shdesigns.org/rabbit/
today's fortune
"What terrible way to die."
"There are no good ways."
-- Sulu and Kirk, "That Which Survives", stardate unknown
------------------------------------



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