Closed Thread
Results 1 to 4 of 4
Like Tree3Likes
  • 1 Post By wifibazaar89
  • 1 Post By Corey
  • 1 Post By xav0989

Thread: changing email server from x10hosting to gmail app

  1. #1
    wifibazaar89 is offline x10Hosting Member wifibazaar89 is an unknown quantity at this point
    Join Date
    Sep 2011
    Posts
    8

    changing email server from x10hosting to gmail app

    i want to know how i can change email server from x10hosting to gmail apps server
    mx records setting working fine...
    i can send and recive email from admin@wifibazaar.pcriot.com
    but php script is not working

    tried many scripts and same result

    got return msg

    admin@wifibazaar.pcriot.com
    Gid 14305 is not permitted to relay mail, or has directly called /usr/sbin/exim instead of /usr/sbin/sendmail.

    ------ This is a copy of the message, including all the headers. ------

    Return-path: <wbazaar@lotus.x10hosting.com>
    Received: from wbazaar by lotus.x10hosting.com with local (Exim 4.69)
    (envelope-from <wbazaar@lotus.x10hosting.com>)


    i am new here and need this fix urgent plz help....
    thanks in advance.
    dinomirt96 likes this.

  2. #2
    Corey's Avatar
    Corey is offline VPS Migration Professional Corey is a glorious beacon of lightCorey is a glorious beacon of light
    Join Date
    Dec 2004
    Location
    Northfield, NH
    Posts
    17,151

    Re: changing email server from x10hosting to gmail app

    You need to change your PHP script to use gmails SMTP server.
    karimirt47 likes this.
    Corey Arbogast | CEO
    █ 888-X10-9668 - corey[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004
    Premium Hosting | VPS Services

  3. #3
    wifibazaar89 is offline x10Hosting Member wifibazaar89 is an unknown quantity at this point
    Join Date
    Sep 2011
    Posts
    8

    Re: changing email server from x10hosting to gmail app

    thanks for quick replay after all search about this....
    i found in gmail forums to install phpmailer


    i figured out then and installed it...

    now i need scipt can some one help me with script

    i am using this script but its not working
    <?php
    //error_reporting(E_ALL);
    error_reporting(E_STRICT);
    date_default_timezone_set('America/Toronto');
    require_once('../class.phpmailer.php');
    //include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded
    $mail = new PHPMailer();
    $field_name = $_POST['cf_name'];
    $field_email = $_POST['cf_email'];
    $field_message = $_POST['cf_message'];
    $field_subject = $POST ['cf_subject'];
    $body = '$field_message';


    $mail->IsSMTP(); // telling the class to use SMTP
    $mail->SMTPDebug = 2; // enables SMTP debug information (for testing)
    // 1 = errors and messages
    // 2 = messages only
    $mail->SMTPAuth = true; // enable SMTP authentication
    $mail->SMTPSecure = "ssl"; // sets the prefix to the servier
    $mail->Host = "smtp.gmail.com"; // sets GMAIL as the SMTP server
    $mail->Port = 465; // set the SMTP port for the GMAIL server
    $mail->Username = "admin@wifibazaar.pcriot.com"; // GMAIL username
    $mail->Password = "******"; // GMAIL password

    $mail->SetFrom('info@wifibazaar.pcriot.com', 'Information department Department');
    $mail->AddReplyTo('complain@wifibazaar.pcriot.com', 'complain Department');
    $mail->Subject = '$field_subject';
    $mail->AddAddress('$field_email', '$field_name');

    if(!$mail->Send()) {
    echo "Mailer Error: " . $mail->ErrorInfo;
    } else {
    echo "Message sent!";
    }
    ?>



    and my html page...

    !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Contact Form</title>
    </head>
    <body>
    <form action="gmail.php" method="post">
    Your name<br>
    <input type="text" name="cf_name"><br>
    Your e-mail<br>
    <input type="text" name="cf_email"><br>
    Subject<br>
    <input type="text" name="cf_subject"><br>
    Message<br>
    <textarea name="cf_message"></textarea><br>
    <input type="submit" value="Send">
    <input type="reset" value="Clear">
    </form>
    </body>
    </html>

  4. #4
    xav0989's Avatar
    xav0989 is offline Community Public Relation xav0989 is just really nice
    Join Date
    Jul 2008
    Location
    ifk
    Posts
    4,438

    Re: changing email server from x10hosting to gmail app

    what errors are you getting? Also, the programming help category could be able to provide better help.
    verlmirt17 likes this.
    Xavier L | Community Public Relations Manager (Free Hosting Support)
    █ Yes, my position is too cool to even exist!
    How am I helping? Rate this post by clicking the icon below! (this is even better than "liking" a post)
    Terms of Service | Acceptable Use Policy | x10Hosting Wiki

Closed Thread

Similar Threads

  1. Replies: 4
    Last Post: 11-01-2011, 03:40 PM
  2. Gmail email.
    By takeawayleicester51 in forum Free Hosting
    Replies: 0
    Last Post: 07-24-2011, 11:47 AM
  3. SMTP Email using ASP.NET from x10hosting server
    By audichya in forum Free Hosting
    Replies: 2
    Last Post: 01-21-2010, 02:34 PM
  4. Email server cossacks.x10hosting.com
    By acidserver in forum Free Hosting
    Replies: 0
    Last Post: 06-16-2008, 08:14 AM
  5. Changing an MX records for gmail hosting?
    By subodh in forum Free Hosting
    Replies: 4
    Last Post: 05-18-2007, 11:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers