+ Reply to Thread
Page 2 of 2
FirstFirst 1 2
Results 11 to 16 of 16

Thread: Auto Mail Responder

  1. #11
    Code Warrior Brandon W is a name known to all Brandon W is a name known to all Brandon W is a name known to all Brandon W is a name known to all Brandon W is a name known to all Brandon W is a name known to all Brandon W's Avatar
    Join Date
    Sep 2008
    Location
    Australia
    Age
    16
    Posts
    4,824
    Blog Entries
    10

    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. #12
    Newbie intraining is an unknown quantity at this point
    Join Date
    Oct 2008
    Posts
    8

    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 01:41 PM.

  3. #13
    Co-Administrator John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John's Avatar
    Join Date
    Jul 2006
    Age
    21
    Posts
    5,885
    Blog Entries
    25

    Re: Auto Mail Responder

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

    Why in the world are you using PEAR?

  4. #14
    Newbie intraining is an unknown quantity at this point
    Join Date
    Oct 2008
    Posts
    8

    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?

  5. #15
    Newbie intraining is an unknown quantity at this point
    Join Date
    Oct 2008
    Posts
    8

    Re: Auto Mail Responder

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

  6. #16
    Co-Administrator John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John's Avatar
    Join Date
    Jul 2006
    Age
    21
    Posts
    5,885
    Blog Entries
    25

    Re: Auto Mail Responder

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

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

+ Reply to Thread
Page 2 of 2
FirstFirst 1 2

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. i give money to anyone who help me out with this!!!
    By Shakmun in forum MarketPlace
    Replies: 12
    Last Post: 12-18-2009, 12:27 PM
  2. Php Mail
    By Jaan in forum PHP Forum
    Replies: 4
    Last Post: 07-17-2008, 06:26 AM
  3. Problem with mail headers
    By ReekenX in forum PHP Forum
    Replies: 4
    Last Post: 06-14-2008, 08:02 AM
  4. Don't use mail()?
    By bruder in forum PHP Forum
    Replies: 3
    Last Post: 01-24-2008, 04:58 PM
  5. combo box
    By Shakmun in forum Visual Basic Programming
    Replies: 2
    Last Post: 10-13-2006, 11:10 AM

Bookmarks

Bookmarks

     
        Algorithms and Data Structures

        Java tutorials

        Algorithms Forum

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts