Send Mail

  • cnyballer

    cnyballer - 2011-03-11

    The answer is probably SOL but throwing it out there..

    I run an Apache Webserver on a home PC.  I recently switched ISPs (to Verizon Fios).  I've found that they block port 25 and 587.  Is there any other way to get the Contact Us php page to work other than the current method when ports are being blocked?  I think the only option I have with Verizon is switching to their business accounts which for the cost is not something I plan on doing.

  • Botag

    Botag - 2011-03-11

    Maybe try port 2525?

  • cnyballer

    cnyballer - 2011-03-15

    I found a port I can use, but the smtp server requires authentication.  I see some commented out lines in sendemail.php for using authentication. What lines would I need to edit and is there anything else I'd need to do?

  • cnyballer

    cnyballer - 2011-03-16

    I messed around with uncommenting the lines and I was able to get this piece working! So now my dillema is how can I massage bracket.php to use the same workaround so that when users submit their entry to me we get an email copy? 

    The part of code I'm referring to from sendmail.php is this:

    $mail = new PHPMailer();

    $mail->From = $email;
    $mail->FromName = $name;
    $mail->Subject = "Website Contact Form";
    $mail->AddAddress('my@email', 'Me');
    //$mail->AddAddress('xxxxx', 'xxxxxx');
    $mail->Body = $comments;


    $mail->Mailer = "smtp";
    $mail->Host = "mymailserver";
    $mail->Port = 587;
    $mail->SMTPSecure = "";

    $mail->SMTPAuth = true; // turn on SMTP authentication
    $mail->Username = "xxxxx"; // SMTP username
    $mail->Password = "xxxx"; // SMTP password


    Appreciate any help with this!


Log in to post a comment.