automatically verification e-mail in cart checkout

Discussion in 'PHP' started by Kyriakos, Sep 1, 2008.

  1. #1
    hi,

    i have a shopping cart in php and i want to sent an automatically e-mail verification when the customer is finishing his order.

    can anybody tell me how to do this?
     
    Kyriakos, Sep 1, 2008 IP
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #2
    you need to send an email that include a link to verify the cart, so the job can be handled.. that link needs to point to a script wich is going to accept the cart and it's products.
     
    EricBruggema, Sep 1, 2008 IP
  3. Kyriakos

    Kyriakos Active Member

    Messages:
    155
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #3
    i don't know the way to sent this e-mail. witch is the php code for sending e-mail? i have the wamp server installed in windows xp. is enough this for sending e-mail or is needed another software?
     
    Kyriakos, Sep 1, 2008 IP
  4. Freewebspace

    Freewebspace Notable Member

    Messages:
    6,213
    Likes Received:
    370
    Best Answers:
    0
    Trophy Points:
    275
    #4
    http://in.php.net/mail

    just include the code in the last line of order finished page and also be sure to replace the contents with of yours and also the mail...
     
    Freewebspace, Sep 1, 2008 IP
  5. Kyriakos

    Kyriakos Active Member

    Messages:
    155
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #5
    this is the error message that is displaying

    Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\mail.php on line 10
     
    Kyriakos, Sep 1, 2008 IP
  6. Freewebspace

    Freewebspace Notable Member

    Messages:
    6,213
    Likes Received:
    370
    Best Answers:
    0
    Trophy Points:
    275
    #6

    Are you running it on your PC?

    Just have a look at this

    http://forums.mysql.com/read.php?52,56255,87853#msg-87853

    http://bugs.php.net/bug.php?id=15373

    It may be because you are running it on a PC try to run it from a realtime webserver...
     
    Freewebspace, Sep 1, 2008 IP
  7. Agent_Smith

    Agent_Smith Well-Known Member

    Messages:
    890
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    145
    #7
    As Freewebspace' said,

    You can't send send emails from wamp on a local PC unless you have a mail server installed i believe.
     
    Agent_Smith, Sep 1, 2008 IP