Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 32

Thread: emailing from a localhost

  1. #11
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Hey City_coder...

    I still don't have much to add on this topic but I wanted to point you towards the Mercury Mail forums. Perhaps you can find some information there?

    Just an idea. Hope that helps some.

  2. #12
    Join Date
    Mar 2008
    Posts
    218
    Thanks
    7
    Thanked 19 Times in 19 Posts

    Default

    Quote Originally Posted by city_coder View Post
    Ok well il try. I just dont get where it fits in.
    I have a local server setup on my pc, apache and i want to be able to send emails out using a PHP script. Now i know that i need a mail server but does that mean that i need an alias? whatever that is?! i dont know.

    so my questions is i guess...
    what exactly is mercury mail and how do i use that to send emails(is it like forwarding? or do u not associate an email address with it?)
    I'm still guessing here, because you provide little information;
    Do you have a domainname?
    Why do you need to send mail through php?
    What server configuration does mercury has?
    I downloaded the zip of xampp, but I see there is an installer too. What version of xampp are you using?
    Just a few question I can think of.

    Code:
    what exactly is mercury mail
    I assume you're joking!
    Code:
    how do i use that to send emails(is it like forwarding? or do u not associate an email address with it?
    Do you have a domainname? Do you want it to forward?

  3. #13
    Join Date
    Feb 2008
    Location
    Coventry
    Posts
    103
    Thanks
    5
    Thanked 8 Times in 8 Posts

    Default

    Ok, sorry il try again,

    nope no domain name sorry
    im sending mail through a script because im writing a mailing script for signing up to a site. This site is in building & testing at the minute and so there is no point me buying a domain name and web space.

    as to what server configuration mercury has well i dont know and i can tell u that because of the answer you assumed, i still dont know what mercury is besides a mail server, especially dont know how it works.

    erm the latest version of xampp, i dont think it will make much difference to mercury as it will be the same...im guessing, i could be wrong.

    sorry, hope that helps in some way
    The important thing is not to stop questioning. Curiosity has its own reason for existing.

  4. #14
    Join Date
    Mar 2008
    Posts
    218
    Thanks
    7
    Thanked 19 Times in 19 Posts

    Default

    Code:
    erm the latest version of xampp, i dont think it will make much difference to mercury as it will be the same...im guessing, i could be wrong.
    No, you're right. It's just for pointing directory locations. If you haven't configured your server yet, there is no harm in posting your mercury.ini here.

    Code:
    im sending mail through a script because im writing a mailing script for signing up to a site. This site is in building & testing at the minute and so there is no point me buying a domain name and web space.
    Why do you need your script to mail? Why not insert it into a table?

  5. #15
    Join Date
    Feb 2008
    Location
    Coventry
    Posts
    103
    Thanks
    5
    Thanked 8 Times in 8 Posts

    Default

    Right ok, heres my mercury.ini file it should be the same as yours(if you did install it)

    Code:
    #  MERCURY.INI generated by Mercury Setup
    
    [General]
    myname:          localhost    # Canonical name for this server
    timezone:        +0000    # Time Zone to add to date fields
    file_api:        1    # Use the file api instead of queues
    mailqueue:       C:\xampp\MERCURYMAIL\QUEUE    # Where mail should be put for delivery
    smtpqueue:       C:\xampp\MERCURYMAIL\QUEUE    # Where the SMTP client should look for mail
    newmail_path:    C:\xampp\MERCURYMAIL\MAIL\~N    # Where to find the users' WinPMail mailboxes.
    
    [Protocols]
    C:\xampp\MERCURYMAIL\mercurys.dll
    C:\xampp\MERCURYMAIL\mercurye.dll
    C:\xampp\MERCURYMAIL\mercuryp.dll
    C:\xampp\MERCURYMAIL\mercuryd.dll
    C:\xampp\MERCURYMAIL\mercuryx.dll
    C:\xampp\MERCURYMAIL\mercuryf.dll
    C:\xampp\MERCURYMAIL\mercuryh.dll
    C:\xampp\MERCURYMAIL\mercuryw.dll
    C:\xampp\MERCURYMAIL\mercuryi.dll
    C:\xampp\MERCURYMAIL\mercuryb.dll
    
    
    [Mercury]
    failfile:     C:\xampp\MERCURYMAIL\Mercury\FAILURE.MER    # Delivery failure notification template
    confirmfile:  C:\xampp\MERCURYMAIL\Mercury\CONFIRM.MER    # Delivery confirmation template
    aliasfile:    C:\xampp\MERCURYMAIL\Mercury\ALIAS.MER    # System-wide alias file
    synfile:      C:\xampp\MERCURYMAIL\Mercury\SYNONYM.MER    # User synonym database
    listfile:     C:\xampp\MERCURYMAIL\Mercury\LISTS.MER    # List of lists
    logwidth:     30    # Width of address fields in logfile
    retpath:      1    # Do/Don't use 'return-path' for errors
    maxhops:      30    # Used to detect mailing loops
    gullible:     0    # If NZ, don't validate 'From' fields
    bitnethost:   cunyvm.cuny.edu    # Relay host for '.bitnet' rewrites
    poll:         10   # Seconds between queue polling cycles
    scratch:      C:\xampp\MERCURYMAIL\Scratch    # Where we can write temp files
    returnlines:  15    # How many lines of failed messages to return
    postmaster:   Admin    # NetWare UIC of postmaster
    broadcast:    1    # Yes, we want broadcast notifications, but
    receipts:     0    # ... no broadcasts for receipt confirmations
    PM_notify:    1    # Do/Don't send errors to the postmaster
    change_owner: 1    # Change message ownership to recipient
    auto_tzone:   1    # If NZ, obtain timezone information from OS
    LogLevel:     15    # System message reporting level
    LogMax:       100    # Maximum number of system messages to store
    RetryPeriod:  30    # Period between job retries (minutes)
    MaxRetries:   16    # Maximum number of times a job can fail
    TwoPasses:    1    # If NZ, process submission queue in 2 passes
    Autoaddress:  0    # If NZ, auto-generate user addresses based on name
    Daily_exit:   0    # If NZ, auto-restart each day after maintenance
    No_Areply:    0    # If NZ, disable automatic replies system-wide
    Alt_Forward:  0    # If NZ, allow alternate forwarding specification
    Maint_hour:   2    # Hour for daily maintenance (24-hour clock)
    Maint_min:    0    # Minute for daily maintenance
    Retry_Mode:   0    # If NZ, use progressive backoff for queue retries
    
    [MercuryC]
    # Session_logging:  G:\           # Directory to write session transcripts
    host:             # mail mail host which relays for us
    scratch:     C:\xampp\MERCURYMAIL\Mercury   # Where we can write temp files
    poll:        30                   # Seconds between queue polling cycles
    returnlines: 15                   # How many lines of failed messages to return
    failfile:    C:\xampp\MERCURYMAIL\Mercury\FAILURE.MER  # Delivery failure template
    esmtp:       1                    # Yes, we want to use ESMTP extensions
    
    [MercuryE]
    Poll : 15
    Timeout : 60
    # Session_logging : o:\mail\mercury\melogs
    # Session_logmode : 1
    # Nameservers : 139.80.64.1
    
    [MercuryD]
    scratch              :     C:\xampp\MERCURYMAIL\Mercury
    # Timeout : 30
    # Poll : 120               # How often to check hosts for new mail (seconds)
    
    [MercuryS]
    # Session_logging:  G:\           # Directory to write session transcripts
    debug:       1                    # Whether or not to show session progress
    # allow:       192.156.225.2        # A machine we WILL permit to connect
    # refuse:      192.156.225.0        # A group of machines we WON'T permit.
    logfile:     C:\xampp\MERCURYMAIL\Logs\MERCURYS.LOG
    # size:        1500000
    Relay : 0         # Control non-local relaying
    
    
    
    [MercuryP]
    Scratch : C:\xampp\MERCURYMAIL\Mercury
    Stack : 32768
    Mark_Read : 1
    SSL_Mode : 0
    Login_Disabled : 0
    Timeout : 60
    
    [MercuryX]
    # Cmd_Delay: 10
    # Cmd_Wait: 1
    # IE4_Dialling: 0
    # Use_ETRN: 1
    # Clients_only: 1
    # Sunday: 0800,1800,3,15,30,60
    # Monday: 0830,2100,5,15,60,60
    # Tuesday: 0830,2100,5,15,60,60
    # Wednesday: 1500,1900,2,30,5,30
    # Thursday: 0900,1900,2,30,0,0
    # Friday: 0830,2100,5,15,60,60
    # Saturday: 1031,1035,2,45,-1,0
    
    # [Groups]
    # testgroup            :     TESTGRP
    
    [Domains]
    # NetWare Server           Domain name
    localhost  :  localhost
    localhost  :  localhost.net
    localhost  :  localhost.org
    localhost  :  localhost.com
    
    [Maiser]
    Maiser:          Maiser   # 'Username' of mail server account
    Helpfile:        C:\xampp\MERCURYMAIL\Mercury\MAISER.HLP   # Help sent on failed maiser requests
    Lookupfile:      C:\xampp\MERCURYMAIL\Mercury\MAISER.LKP   # Format file for the 'lookup' command
    Send_dir:        C:\xampp\MERCURYMAIL\Mercury\SENDABLE   # Directory for the 'send' command
    Logfile:         C:\xampp\MERCURYMAIL\Logs\MAISER.LOG   # Mail server log file
    Notify:          C:\xampp\MERCURYMAIL\Mercury\TMP   # Dir. for pending 'notify' commands
    NoList:          N   # If 'Y', disable the 'list' command
    Local_only:      Y   # If 'Y', local 'notify' commands only
    
    [MercuryH]
    Logfile              :     C:\xampp\MERCURYMAIL\Logs\MERCURYH.LOG
    # Addressbook : \\CLIO\SYS\SYSTEM\MERCURY\PH.PMR
    # MOTD : \\CLIO\SYS\SYSTEM\MERCURY\PH-MOTD.TXT
    # Administrator : postmaster@clio.pmail.gen.nz
    Timeout : 30
    
    [MercuryI]
    Scratch : C:\xampp\MERCURYMAIL\SCRATCH
    Timeout : 120
    Server_Port : 143
    Idle_Timeout : 1800
    SSL_Mode : 0
    Login_Disabled : 0
    
    [MercuryB]
    Scratch : C:\xampp\MERCURYMAIL\SCRATCH
    # Logfile : o:\mail\tmp\mercuryb.log
    Timeout : 120
    Server_Port : 80
    # Session_logging : o:\mail\mercury\mblogs
    # Session_logmode : 0
    Idle_Timeout : 1800
    # URL_Base : enter_your_domain_here
    [Groups]
    
    [Rewrite]
    
    [Statistics]
    StatFlags:    0  # Statistical reporting settings
    STF_Hours:    24  # How often to write stat log files
    STM_Hours:    24  # How often to e-mail stat log files
    I need to mail as well, i do insert it into a table at the same time based on the results of the email being sent. Its just an easy way to stop web bots signing up and causing havoc in my db straight away. At least this way they can only get so far.

    I noticed at about line 127 of the original mercury.ini that it has [Domains]. Is that something to go on?
    The important thing is not to stop questioning. Curiosity has its own reason for existing.

  6. #16
    Join Date
    Mar 2008
    Posts
    218
    Thanks
    7
    Thanked 19 Times in 19 Posts

    Default

    execute C:\xampp\MERCURYMAIL\Mercury.exe

    1) under configuration / protocol modules - enable mercurys module
    2) under configuration / manage users - create an user account
    3) safe and restart mercury and see if you can send mail to it. I'll probably respond with an error message, but first things first.

    Code:
    noticed at about line 127 of the original mercury.ini that it has [Domains]. Is that something to go on?
    You just can use localhost or an IP number. That is as long as you want to use it locally.

  7. #17
    Join Date
    Feb 2008
    Location
    Coventry
    Posts
    103
    Thanks
    5
    Thanked 8 Times in 8 Posts

    Default

    Well for starters i dont have a mercury.exe but i started it through xampp.

    Then all of the protocol modules are already running but couldnt find a 'mercurys module'

    When i create an account, what account am i creating? my email address that i already have that im testing with? 1 thats completely new? 1 for mercury only?
    The important thing is not to stop questioning. Curiosity has its own reason for existing.

  8. #18
    Join Date
    Mar 2008
    Posts
    218
    Thanks
    7
    Thanked 19 Times in 19 Posts

    Default

    city_coder,

    you're a funny person. If mercury.exe isn't there, mercury wouldn't even start.
    You should uncheck all modules except the first one (mercuryS).
    One for mercury only. Since you don't have a domain, you need to create a mercury only account.

  9. #19
    Join Date
    Feb 2008
    Location
    Coventry
    Posts
    103
    Thanks
    5
    Thanked 8 Times in 8 Posts

    Default

    haha cheers, i am quite proud of my inability to follow instructions and my ability to make jokes, especially my slap-city_coder jokes!!! haha get it? slap-city_coder? like slap-stick? no? well i found it funny

    ok i unchecked all the boxes except for MercuryS SMTP server

    ok this mercury only account is what? the sending account? the receiving account for testing? the im really lost account?

    i take it its the sending account and if so, how does that help with my mail going through. how does it know to send it through mercury?
    The important thing is not to stop questioning. Curiosity has its own reason for existing.

  10. #20
    Join Date
    Mar 2008
    Posts
    218
    Thanks
    7
    Thanked 19 Times in 19 Posts

    Default

    Sending/receiving doesn't matter, but in this case you need to think of receiving.
    Ok, you need to add an alias to that account otherwise you can't send locally.
    Code:
    I take it its the sending account and if so, how does that help with my mail going through. how does it know to send it through mercury?
    patience, patience, all in good time

Bookmarks

Posting Permissions

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