PLS. Sending email in PHP using Wamp Server
Results 1 to 6 of 6

Thread: PLS. Sending email in PHP using Wamp Server

  1. #1
    Junior Member
    Join Date
    Feb 2010
    Posts
    1

    PLS. Sending email in PHP using Wamp Server

    Hi there. I just installed WAMP on my Windows 7 PC and php is configured and installed working fine on a localhost.

    Now I am not able to send emails using PHP. I know we need to do something with SMTP on the IIS but I cannot run IIS coz WAMP is running on this machine and we cannot run both IIS and WAMP together.

    Because if I run IIS and then run WAMP, it can't be run, as it says port 80 used by IIS.

    How can I do it? I have the code of sending email using PHP but the email just wouldn't go.

    It is only a matter of SMTP setup. But how?

    Can i use a remote SMTP on my localhost can I do some other thing.

    Please its been almost a week and still scratching my head.

    Please reply.

    Thank you!

  2. #2
    Pna lbh ernq guvf¿
    Join Date
    Jul 2004
    Location
    Kansas City area
    Posts
    19,429
    You need an SMTP server to send mail, yes.

    If you're just looking to test your scripts locally while developing them, one option might be to use your ISP's SMTP servers to send the e-mails. Note that many ISPs require authentication to use their SMTP servers; if this is the case, you won't be able to use the internal mail() function and must instead use some 3rd party class (e.g. PHPMailer) that supports SMTP authentication.

  3. #3
    Senior Member
    Join Date
    Apr 2003
    Location
    Silver Lake
    Posts
    4,874
    Pear::Mail is a good SMTP mail client. I have recently found that it works better than PHPMailer.
    IMPORTANT: STOP using the mysql extension. Use mysqli or pdo instead.
    World War One happened 100 years ago. Visit Old Grey Horror for the agony and irony.

  4. #4
    Pna lbh ernq guvf¿
    Join Date
    Jul 2004
    Location
    Kansas City area
    Posts
    19,429
    Out of curiosity, can you elaborate on how it works "better" than PHPMailer? Either the message is sent or it's not... I don't understand how one works "better" than another?

  5. #5
    Senior Member
    Join Date
    Apr 2003
    Location
    Silver Lake
    Posts
    4,874
    Using PHPMailer, I was unable to authenticate with a particular SMTP server due to some handshaking problem. I googled the problem and learned that PHPMailer had a problem like this sometimes. I tried using Pear::Mail instead and it authenticated perfectly. So "better" in this case means that Pear::Mail sent the email and PHPMailer did not.
    IMPORTANT: STOP using the mysql extension. Use mysqli or pdo instead.
    World War One happened 100 years ago. Visit Old Grey Horror for the agony and irony.

  6. #6
    Pedantic Curmudgeon Weedpacket's Avatar
    Join Date
    Aug 2002
    Location
    General Systems Vehicle "Thrilled To Be Here"
    Posts
    21,885
    If you're already using IIS as your web server, you didn't need to install the Apache web server as well (which is what the 'A' in WAMP stands for). It sounds more as though you should just install PHP (and maybe MySQL as well, if you're planning to use that) separately. It makes little sense to install two web servers (especially if they're both configured to listen on port 80) on the same machine.
    THERE IS AS YET INSUFFICIENT DATA FOR A MEANINGFUL ANSWER
    FAQs! FAQs! FAQs! Most forums have them!
    Search - Debugging 101 - Collected Solutions - General Guidelines - Getting help at all

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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