SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Sep 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Anyone Using USBwebserver SMTP ?

    Newbie here, and I'm hoping that someone here might be familiar with USBwebserver's SMTP capacity and configuration. I've installed usbwebserver on a home PC (thin client usbstick), opened port 80 on firewall+router, using afraid.org's dynamic DNS forwarding. Home server seems to work just fine, accessible from anywhere, but I'm having problems with SMTP outgoing mail processing. I did set php.ini with my ISP's smtp server, port 25, and username, but the mail script doesn't seem to process. I'm not seeing any mail related log files being generated, and so I'm wondering what to do. It's it even capable of using php form method=post & "$mailto"? Do I need to open port 25 on win7 firewall and router? Any clues? Any feedback would be appreciated.
    Thanks in Advance,
    Harley

  2. #2
    SitePoint Member
    Join Date
    Sep 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Update:
    I seem to me making some progress with my troubleshooting. Using this mini php email test script below, I'm now seeing that the smtp server and port are not accessible (error message), which led me to discover that ATT (Comcast) now requires SSL authentication; which means that connection likely being refused. I'll have to do more testing (authentication or another SMTP server).

    Code:
    <?php
    $email_to = "recepient@gmail.com";
    $name="SenderName";
    $email="SenderEmail@gmail.com";
    $phone="0247123456";
    $email_subject = 'TestingUSBWebserverSMTP';
    $headers = 'From: me@there.com\r\n';
    $message='Name: ' .$name. "\r\n". 'Email: ' .$email. "\r\n". 'Phone: ' .$phone;
    $sent = mail($email_to, $email_subject, $message, $headers);
    if($sent) 
    {print "Your mail was sent successfully to $email_to"; }
    else 
    {print "We encountered an error sending your mail"; }
    ?>


Tags for this Thread

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
  •