Closed Thread
Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Auto Mail Responder

  1. #11
    Join Date
    Sep 2008
    Location
    Australia
    Posts
    4,834
    Blog Entries
    10
    Rep Power
    51

    Re: Auto Mail Responder

    Both
    jQuery Selectors Tutorial - jQuery Striped Table tutorial - jQuery Events - jQuery Validation
    Sorry if I don't post as often as I did, I'll try to get here as much as possible! I'm working my bum off to get this scholarship and other stuff!

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #12
    intraining is offline Newbie
    Join Date
    Oct 2008
    Posts
    8
    Rep Power
    0

    Re: Auto Mail Responder

    Code:
    <?php
    require_once "mail.php";

    $from "shino_jm@hotmail.com";
    $to "taychorkhee@hotmail.com";
    $subject "Hi!";
    $body "Hi,\n\nHow are you? i want you to call me.";

    $host "mail.singnet.com.sg";
    $username "";
    $password "";

    $headers = array ('From' => $from,
      
    'To' => $to,
      
    'Subject' => $subject);
    $smtp mail::factory('smtp',
      array (
    'host' => $host,
        
    'auth' => true,
        
    'username',

    'password' => $password));

    $mail $smtp->send($to$headers$body);

    if (
    PEAR::isError($mail)) {
      echo(
    "<p>" $mail->getMessage() . "</p>");
     } else {
      echo(
    "<p>Message successfully sent!</p>");
     }
    ?>
    this is the code i am using, but i get this error that say Fatal error: Class 'Mail' not found in C:\Program Files\xampp\htdocs\mail.php on line 16
    Last edited by John; 10-26-2008 at 11:41 AM.

  4. #13
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20

    Re: Auto Mail Responder

    Please use [php], [code], and [quote] tags when appropriate.

    Why in the world are you using PEAR?

  5. #14
    intraining is offline Newbie
    Join Date
    Oct 2008
    Posts
    8
    Rep Power
    0

    Re: Auto Mail Responder

    Do you mean that PEAR is not needed in this piece of code? But without pair it does not work also. After some changing i have received another error:



    authentication failure [SMTP: SMTP server does no support authentication (code: 250, response: smtp12.singnet.com.sg Hello bb220-255-206-168.singnet.com.sg [220.255.206.168], pleased to meet you ENHANCEDSTATUSCODES PIPELINING 8BITMIME SIZE 50000000 HELP)]

    how to solve this?

  6. #15
    intraining is offline Newbie
    Join Date
    Oct 2008
    Posts
    8
    Rep Power
    0

    Re: Auto Mail Responder

    any help? any help on this would be greatly appreciated.

  7. #16
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20

    Re: Auto Mail Responder

    Did you bother reading the link I previously posted? PHP: mail - Manual

    It gives you four copy/paste examples....

Closed Thread
Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. GCC and auto-linking?
    By phirephly in forum C and C++
    Replies: 2
    Last Post: 12-30-2010, 09:33 AM
  2. Auto Clicker
    By Sean0323 in forum C# Programming
    Replies: 5
    Last Post: 07-13-2010, 06:00 PM
  3. Auto resize
    By jclarke in forum HTML Programming
    Replies: 3
    Last Post: 11-16-2009, 07:09 AM
  4. Auto Clicker!
    By S0m30n3 in forum C and C++
    Replies: 4
    Last Post: 11-19-2007, 07:33 AM

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