I want to provide the application option to send email from Fox
via SMTP instead of MAPI method. Does anyone know how to retreive
the default SMTP server name from Fox or Windows API?

-----------------------------------------------------------------
Paul Lee ........ Abri Technologies ........ http://www.abri.com/
'Recover' - top rated FoxPro file repair utility.
-----------------------------------------------------------------

Re: Determining SMTP server by Dan

Dan
Thu Mar 23 16:35:02 CST 2006

Paul Lee wrote:
> I want to provide the application option to send email from Fox
> via SMTP instead of MAPI method. Does anyone know how to retreive
> the default SMTP server name from Fox or Windows API?

I suspect there isn't such a thing as "default SMTP server".

Think about it. When you create an email account in Outlook, you tell
Outlook what the POP and SMTP servers are for that account. If you have five
accounts, they may use the same SMTP server but it certainly isn't a
requirement. And Outlook won't know Jack about the accounts in Outlook
Express, Eudora, or any other mail client, which may also use different
servers.

We have the user specify server, user ID and password.

Dan



Re: Determining SMTP server by Andrew

Andrew
Fri Mar 24 04:38:43 CST 2006

"Dan Freeman" <spam@microsoft.com> wrote in message
news:OW1qHosTGHA.5552@TK2MSFTNGP14.phx.gbl...
> Paul Lee wrote:
>> I want to provide the application option to send email from Fox
>> via SMTP instead of MAPI method. Does anyone know how to retreive
>> the default SMTP server name from Fox or Windows API?
>
> I suspect there isn't such a thing as "default SMTP server".

You could maybe attempt

smtp.<your dnsdomain>

but you are clutching at straws at best.
Else do some port scan magic on the subnet and see if anything is responding
on port 25, the default port for SMTP.
All SMTP frontends I've used require the user to set the name/IP and port of
the SMTP server.

--
regards
Andrew Howell



Re: Determining SMTP server by Paul

Paul
Mon Mar 27 11:48:02 CST 2006

Paul Lee <no@spam.please> wrote in news:Xns978FA50CD1DF2JD0MS@
207.46.248.16:

>
> I want to provide the application option to send email from Fox
> via SMTP instead of MAPI method. Does anyone know how to retreive
> the default SMTP server name from Fox or Windows API?

OK. But is there a way to extract the SMTP server and sender email
address from MS Outlook uses, programatically?

-----------------------------------------------------------------
Paul Lee ........ Abri Technologies ........ http://www.abri.com/
'Recover' - top rated FoxPro file repair utility.
-----------------------------------------------------------------

Re: Determining SMTP server by Andrew

Andrew
Tue Mar 28 01:28:28 CST 2006

"Paul Lee" <no@spam.please> wrote in message
news:Xns979378123FA91JD0MS@207.46.248.16...
> Paul Lee <no@spam.please> wrote in news:Xns978FA50CD1DF2JD0MS@
> 207.46.248.16:
>
>>
>> I want to provide the application option to send email from Fox
>> via SMTP instead of MAPI method. Does anyone know how to retreive
>> the default SMTP server name from Fox or Windows API?
>
> OK. But is there a way to extract the SMTP server and sender email
> address from MS Outlook uses, programatically?

I doubt it, or at best not necessarily. I am using Outlook and I have
configured many clients here. There is no SMTP information needed by the
client at all on our site. They only point to an Exchange server with no
SMTP service which in turn is connected to another Exchange server and that
second server runs the SMTP service.

--
regards
Andrew Howell