Closed Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 12
Like Tree1Likes

Thread: i can't send email with php sendmail function

  1. #1
    listysite76 is offline x10Hosting Member listysite76 is an unknown quantity at this point
    Join Date
    Sep 2010
    Posts
    28

    i can't send email with php sendmail function

    PHP Code:
                 $to "$email1";
                                             
        
    $from 'lislia';
        
    $subject 'Complete Your Registration';
        
    //Begin HTML Email Message
        
    $message "Hi $yourname,

       Complete this step to activate your login identity at 
    $dyn_www

       Click the line below to activate when ready

      // http://
    $dyn_www/activation.php?id=$id&sequence=$db_password
       If the URL above is not an active link, please copy and paste it into your browser address bar

       Login after successful activation using your:  
       //E-mail Address: 
    $email1 
      // Password: 
    $pass1

       See you on the site!"
    ;
       
    //end of message
        
    $headers  "From: $from\r\n";
        
    $headers .= "Content-type: text\r\n";

        
    mail($to$subject$message$headers); 
    i have a free hosting account.i want to sent email with php but email function is is not working.what's the problem?
    Last edited by listysite76; 06-18-2011 at 07:30 AM.

  2. #2
    stpvoice's Avatar
    stpvoice is offline Community Support Rep stpvoice has a brilliant futurestpvoice has a brilliant futurestpvoice has a brilliant future
    Join Date
    Dec 2008
    Location
    United Kingdom
    Posts
    5,939

    Re: i can't send email with php sendmail function

    Hello,

    What domain are you trying to send messages to?
    Also, try $headers .= 'Content-type: text/plain; charset=iso-8859-1' . "\r\n"; instead of the current content type line you have under $headers.
    Last edited by stpvoice; 06-18-2011 at 07:34 AM.
    listysite76 likes this.


  3. #3
    listysite76 is offline x10Hosting Member listysite76 is an unknown quantity at this point
    Join Date
    Sep 2010
    Posts
    28

    Re: i can't send email with php sendmail function

    this is a part of a register forum

  4. #4
    stpvoice's Avatar
    stpvoice is offline Community Support Rep stpvoice has a brilliant futurestpvoice has a brilliant futurestpvoice has a brilliant future
    Join Date
    Dec 2008
    Location
    United Kingdom
    Posts
    5,939

    Re: i can't send email with php sendmail function

    No reason why you can't change it.
    Please answer the question. I can't help you unless you co-operate.
    Last edited by stpvoice; 06-18-2011 at 07:38 AM.


  5. #5
    listysite76 is offline x10Hosting Member listysite76 is an unknown quantity at this point
    Join Date
    Sep 2010
    Posts
    28

    Re: i can't send email with php sendmail function

    i can't change it because email is given by user.it is not a fixed address which i am trying to send email.i added that little script too but still not working
    Last edited by listysite76; 06-18-2011 at 07:44 AM.

  6. #6
    stpvoice's Avatar
    stpvoice is offline Community Support Rep stpvoice has a brilliant futurestpvoice has a brilliant futurestpvoice has a brilliant future
    Join Date
    Dec 2008
    Location
    United Kingdom
    Posts
    5,939

    Re: i can't send email with php sendmail function

    What about changing the line of code I asked you to?


  7. #7
    listysite76 is offline x10Hosting Member listysite76 is an unknown quantity at this point
    Join Date
    Sep 2010
    Posts
    28

    Re: i can't send email with php sendmail function

    i 've done it , but still not working[COLOR="Silver"]

    ---------- Post added at 12:53 PM ---------- Previous post was at 12:51 PM ----------
    Last edited by listysite76; 06-18-2011 at 08:14 AM.

  8. #8
    stpvoice's Avatar
    stpvoice is offline Community Support Rep stpvoice has a brilliant futurestpvoice has a brilliant futurestpvoice has a brilliant future
    Join Date
    Dec 2008
    Location
    United Kingdom
    Posts
    5,939

    Re: i can't send email with php sendmail function

    Did you check the spam/junk email folders?
    Last edited by stpvoice; 06-18-2011 at 08:04 AM.


  9. #9
    listysite76 is offline x10Hosting Member listysite76 is an unknown quantity at this point
    Join Date
    Sep 2010
    Posts
    28

    Re: i can't send email with php sendmail function

    yes checked in junked folders and tried sending mail to my all ,Gmail,yahoo and hotmail accounts............but still e mail is not working
    Last edited by listysite76; 06-18-2011 at 08:06 AM.

  10. #10
    stpvoice's Avatar
    stpvoice is offline Community Support Rep stpvoice has a brilliant futurestpvoice has a brilliant futurestpvoice has a brilliant future
    Join Date
    Dec 2008
    Location
    United Kingdom
    Posts
    5,939

    Re: i can't send email with php sendmail function

    Quote Originally Posted by listysite76
    ????????????????????????
    It's a simple question.
    Did you check the spam/junk email folders at the recipient's email account?
    Last edited by stpvoice; 06-18-2011 at 08:18 AM.


Closed Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. php sendmail function
    By vincent189770 in forum Free Hosting
    Replies: 0
    Last Post: 03-04-2011, 02:57 PM
  2. PHP sendmail function
    By xfm_rox in forum Free Hosting
    Replies: 11
    Last Post: 09-22-2010, 03:13 PM
  3. Replies: 3
    Last Post: 09-18-2009, 06:31 PM
  4. Sendmail function not always working .
    By booster666 in forum Free Hosting
    Replies: 3
    Last Post: 04-29-2008, 11:40 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