Cannot send mail suing WAMP!

Discussion in 'PHP' started by scutari, Jun 14, 2008.

  1. #1
    I have installed wamp on my computer, and trying to make an experiment and send an email..but after build the form I have this kind of problem when I try to submit it ....


    Any suggestions?

    p.s I have set the "ini_set()" before the mail() function
     
    scutari, Jun 14, 2008 IP
  2. MattDunbar

    MattDunbar Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Do you have your PC set up as a mail server?

    Also, I highly recommend against WAMP in a production environment which is the only reason I could see you using mail functions.
     
    MattDunbar, Jun 14, 2008 IP
  3. scutari

    scutari Peon

    Messages:
    431
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    what does that mean?How do I set my pc work as a mail server(I think wamp does that)..Oh I am not using it for publishing just making experiments.
     
    scutari, Jun 14, 2008 IP
  4. rohan_shenoy

    rohan_shenoy Active Member

    Messages:
    441
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #4
    To use your PC as a SMTP mail server, download an install the 'Fee SMTP server' software from SoftStack. I just installed it on my local machine and it works like charm. There are no much settings or configurations installed. Just start the server and run your mailing script. Thats it.

    I also observed that even though the mail is sent by the server, your script may tell you that it failed to send the mail. I don't know if this is a bug or I a doing things wrong way, but the emails are sent successfully.
     
    rohan_shenoy, Jun 14, 2008 IP
  5. wisdomtool

    wisdomtool Moderator Staff

    Messages:
    15,826
    Likes Received:
    1,367
    Best Answers:
    1
    Trophy Points:
    455
    #5
    In Windows you can install the SMTP server that comes with it. That's also much easier. You may also want to consider Mailenable standard which works great and is free.
     
    wisdomtool, Jun 14, 2008 IP
  6. scutari

    scutari Peon

    Messages:
    431
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks for sharing, so I must install FTP client?
     
    scutari, Jun 15, 2008 IP