Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    Mar 2006
    Posts
    478
    Thanks
    3
    Thanked 0 Times in 0 Posts

    wish to get log of scripts that send out emails

    I have only just been made aware of a problem with my coding and face 100's of emails being sent to my main email account due to an incorrectly formed variable in my code!!

    i now wish to find out which site and script file is sending out these emails and have looked at logs provided by my host but these do not show much apart from the date and time how do i get a list of these files as someone i once knew and can not get hold of now once had this sort of thing and was able to get a list of the scripts and site urls that sent out the emails.

    hope someone can help out as i am now getting way to many on my phone to cope with. as i use my phone mainly for this address and can not possibly change it now.

  • #2
    Senior Coder
    Join Date
    Jul 2009
    Location
    South Yorkshire, England
    Posts
    2,318
    Thanks
    6
    Thanked 304 Times in 303 Posts
    Examine the e-mail headers. All of the I.P's in the transport path will be listed there, including the I.P of the originating server.

  • #3
    Regular Coder
    Join Date
    Mar 2006
    Posts
    478
    Thanks
    3
    Thanked 0 Times in 0 Posts
    i had used the mail() command so no scripts are logged.

    i have been told elsewhere to use...

    http://wiki.kartbuilding.net/index.p...and_mail.28.29

    but have no idea what i do with this or where to put it

  • #4
    Senior Coder
    Join Date
    Jul 2009
    Location
    South Yorkshire, England
    Posts
    2,318
    Thanks
    6
    Thanked 304 Times in 303 Posts
    Again, examine the headers of an e-mail which you have received from one of these servers.

  • #5
    Regular Coder
    Join Date
    Mar 2006
    Posts
    478
    Thanks
    3
    Thanked 0 Times in 0 Posts
    these are the ful headers from one such email....



    Return-path: <nobody@xxxxx.xxxxx.com>
    Envelope-to: xxxxx@xxxxx.com
    Delivery-date: Tue, 22 Sep 2009 00:43:34 -0500
    Received: from nobody by xxxxx.xxxxx.com with local (Exim 4.69)
    (envelope-from <nobody@xxxxx.xxxxx.com>)
    id 1pMAy2-0000n8-R3
    for xxxxx@xxxxx.com; Tue, 22 Sep 2009 00:43:34 -0500
    To: xxxxx@xxxxx.com
    Subject: the subject
    Content-Type: text/html; charset=ISO-8859-1
    From: xxxxx@xxxxx.com
    Message-Id: <xxxxx-xxxxx-xxxxx@xxxxx.xxxxx.com>
    Date: Tue, 22 Sep 2009 00:43:34 -0500

  • #6
    Senior Coder
    Join Date
    Jul 2009
    Location
    South Yorkshire, England
    Posts
    2,318
    Thanks
    6
    Thanked 304 Times in 303 Posts
    Are you viewing the complete headers? Those seem a tad sparse of info. However, these are from the originating server:

    Received: from nobody by xxxxx.xxxxx.com with local (Exim 4.69)
    (envelope-from <nobody@xxxxx.xxxxx.com>)

    If you need to trace any deeper, get in touch with the admin(s) of the remote server and they can backtrace from their logs.
    Last edited by MattF; 09-23-2009 at 12:16 AM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •