External SMTP server

Discussion in 'PHP' started by inManila, Jan 8, 2009.

  1. #1
    Hi

    Im running a windows server with Apache 2.2.8 on it (wamp if it matters), I signed for a paid SMTP (dnsmadeeasy's) and got a username and password for their smtp server.

    How can I login and send mail through PHP? do I need something installed?

    Thanks
     
    inManila, Jan 8, 2009 IP
  2. Danltn

    Danltn Well-Known Member

    Messages:
    679
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    120
    #2
    Danltn, Jan 8, 2009 IP
  3. inManila

    inManila Peon

    Messages:
    22
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    But it doesn't take care of the authentication issue, Im not using the windows's smtp but an external one (which requires my php to login)
     
    inManila, Jan 8, 2009 IP
  4. nyxano

    nyxano Peon

    Messages:
    417
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Unfortunately, the built in PHP mail() Function does not support SMTP authentication.

    A quick Google Search, I came across this posting: http://email.about.com/od/emailprogrammingtips/qt/et073006.htm that uses PEAR Mail Package, typically installed by hosting companies with PHP 4 and above.

    I've also read somewhere that fsockopen() could be used but I can't recall off hand where I saw that.
     
    nyxano, Jan 8, 2009 IP
  5. inManila

    inManila Peon

    Messages:
    22
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks, I will check the pear extension
     
    inManila, Jan 12, 2009 IP
  6. ryandanielt

    ryandanielt Well-Known Member

    Messages:
    1,797
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    185
    #6
    What you are looking to do requires SMTP Authentication while sending mail and it needs to be integrated into your mail function.

    I have a pre made script for this if you want it. I sell little scripts like this for $5!
     
    ryandanielt, Jan 12, 2009 IP
  7. artflutter

    artflutter Member

    Messages:
    49
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #7
    phpmailer can send mail through an smtp server and it's GNU
     
    artflutter, Jan 13, 2009 IP