Re: looking for HTML email script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  <?php
    require_once "Mail.php";

    $from = "your-email>";
    $to = "Your-targetEmail>";
    $subject = "Hi!";
    $body = "Hi,\n\nHow are you?";

    $host = "ssl://mail.example.com";
    $port = "465";
    $username = "smtp_username";
    $password = "smtp_password";

    $headers = array ('From' => $from,
      'To' => $to,
      'Subject' => $subject);
    $smtp = Mail::factory('smtp',
      array ('host' => $host,
        'port' => $port,
        'auth' => true,
        'username' => $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>");
     }
    ?>



________________________________
From: Muruganantham <mk2402@xxxxxxxxx>
To: php-objects@xxxxxxxxxxxxxxx
Sent: Fri, June 4, 2010 2:33:55 PM
Subject: Re:  looking for HTML email script

just code the html page and send it as html email from your pop3 mail
client.

thx
muruganantham


On Fri, Jun 4, 2010 at 09:28, shridhar <shridharshenoy2000@xxxxxxxxxxx>wrote:

>
>
> Hi anyone has or can any one give the html email sending script via
> google from local system. Its urgent
>
> [Non-text portions of this message have been removed]
>
>  
>


[Non-text portions of this message have been removed]



------------------------------------

Are you looking for a PHP job?
Join the PHP Professionals directory Now!
http://www.phpclasses.org/jobs/
Yahoo! Groups Links




      

[Non-text portions of this message have been removed]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux