Erwin Craps
Erwin.Craps at ithelps.be
Thu Jul 10 03:54:42 CDT 2003
This is somewhere in a registry key of internet explorer or something. Just search your registry for you own SMTP server. In VB 5 the getreg or something only works for a specific part of the registry. I believe you need to use an API call to get from other parts in the registry. Maybe a function was added in later version of vb/.NET Greetz Erwin -----Oorspronkelijk bericht----- Van: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Verzonden: donderdag 10 juli 2003 10:39 Aan: Access Developers discussion and problem solving Onderwerp: Re: Re: [dba-VB] [AccessD] OT - Detecting Name/Address of SMTP server ok, say I haven't got my email open and I want to show my SMTP server name/address in a VB6 program how would I do that.... From: "Stuart McLachlan" <stuart at lexacorp.com.pg> Date: Wed 09/Jul/2003 23:52 GMT To: <paul.hartland at fsmail.net>, <accessd at databaseadvisors.com>, dba-vb at databaseadvisors.com Subject: Re: [dba-VB] [AccessD] OT - Detecting Name/Address of SMTP server On 9 Jul 2003 at 15:40, paul.hartland at fsmail.net wrote: > To all, > > I'm working on a project for my own use, and need to know if there's a > way to automatically detect the name/address of the SMTp server that > the person sends email through. > > Paul In general, you just need to parse out the last (in sequence, first in time) Time Stamp Line(s) in the message headers. See RFC 821. Sect 4.1.2 for specifications of this line. Your message tells me: Received: from fep04-svc.ttys.com (mx-out.ttys.com [80.239.199.130]) by databaseadvisors.com (8.11.6/8.11.6) with ESMTP id h69FenQ02022; Wed, 9 Jul 2003 10:40:49 -0500 Received: from localhost ([127.0.0.1]) by fep04-svc.ttys.com (InterMail vM.5.01.03.13 201-253-122-118-113-20010918) with SMTP id <20030709154050.OBHR1637.fep04-svc.ttys.com at localhost>; So your SMTP Server appears to be 80.239.199.130 and it's called both fep04-svc.ttys.com (it's internal name) or mx_out.ttys.com (it's Canonical name which you get when you do a nslookup on 80.239.199.130). It also tells me what mail server software ttys.com is using. Note: If you are trying to use it to track spam though, that won't work for very often since they generally forge some of the headers. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com