+ Reply to Thread
Results 1 to 3 of 3
Like Tree2Likes
  • 2 Post By subhra4484

Thread: about smtp connection

  1. #1
    subhra4484 is offline x10Hosting Member subhra4484 is an unknown quantity at this point
    Join Date
    Jul 2011
    Posts
    2

    about smtp connection

    How can I use the smtp server as mail server in my website??

    ---------- Post added at 10:58 AM ---------- Previous post was at 10:42 AM ----------

    I have form and I want to send the data directly to my email id... But it's not working...

    http://reliconindia.x10.mx/mailform.php


    Code for the file is here..

    PHP Code:
    <?php
    if (isset($_REQUEST['email']))
    //if "email" is filled out, send email
      
    {
      
    ini_set('SMTP'"mail.reliconindia.x10.mx");
      
    ini_set('smtp_port'5665);
      
    ini_set('sendmail_from'"subhra44@reliconindia.x10.mx");
      
    //send email
      
    $email $_REQUEST['email'] ;
      
    $subject $_REQUEST['subject'] ;
      
    $message $_REQUEST['message'] ;
      
    mail("subhra44@gmail.com"$subject$message"From:" $email);
      echo 
    "Thank you for using our mail form";
      }
    else
    //if "email" is not filled out, display the form
      
    {
      echo 
    "<form method='post' action='mailform.php'>
      Email: <input name='email' type='text' /><br />
      Subject: <input name='subject' type='text' /><br />
      Message:<br />
      <textarea name='message' rows='15' cols='40'>
      </textarea><br />
      <input type='submit' />
      </form>"
    ;
      }
    ?>

  2. #2
    Anna's Avatar
    Anna is offline I am just me Anna is a name known to allAnna is a name known to all
    Join Date
    Aug 2007
    Location
    Sweden
    Posts
    6,569

    Re: about smtp connection

    smtp port would be 25 in our setup. The from email must be a valid email listed under your cPanel account (click email accounts and create it if it does not already exist).
    Do you have trouble reaching your site?
    Check here first: News and Announcements


    Don't forget that x10hosting has an irc server as well. Come and join the fun
    server: irc.x10hosting.com, main channel: #x10hosting
    There's a lot helpful users there if need help building your site

  3. #3
    subhra4484 is offline x10Hosting Member subhra4484 is an unknown quantity at this point
    Join Date
    Jul 2011
    Posts
    2

    Re: about smtp connection

    Quote Originally Posted by Anna View Post
    smtp port would be 25 in our setup. The from email must be a valid email listed under your cPanel account (click email accounts and create it if it does not already exist).
    Thank you for the reply...
    But it's working now..I have not changed anything..I don't know how...
    Also I got the setup config from the site itself..
    There the outgoing smtp port was 5665...
    Last edited by subhra4484; 07-17-2011 at 11:44 PM.
    dinomirt96 and karimirt47 like this.

+ Reply to Thread

Similar Threads

  1. SMTP Connection Problem
    By derwin-e-tromp92 in forum Free Hosting
    Replies: 2
    Last Post: 07-05-2011, 11:44 AM
  2. Replies: 7
    Last Post: 06-10-2010, 08:39 AM
  3. Replies: 0
    Last Post: 07-04-2009, 11:13 PM
  4. SMTP Connection failed !
    By MATIF123 in forum Free Hosting
    Replies: 4
    Last Post: 10-16-2007, 11:39 AM

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
x10hosting free hosting for the masses
dedicated servers