Hey PHP masters need your help....

yasitha_o3

Member
Oct 5, 2006
2,081
83
0
37
IN YOUR HEART
on my site i tried to send a mail to 3 different addresses after sussesfull transaction. but it it gives me a error saying "SMTP server response: 550 Access denied - Invalid HELO name" if you can please give me a help.. i'm completely stuck on this error
:no::no::no::no::no:
 

kumu123

Active member
  • Oct 26, 2007
    479
    27
    28
    cyber space
    waradi email address ekakda ?

    error handling balanna. "HELLO name" email address parameter eka debug karala value eka balanna.

    mama php danne naha.
     

    yasitha_o3

    Member
    Oct 5, 2006
    2,081
    83
    0
    37
    IN YOUR HEART

    kasuncs

    Well-known member
  • May 21, 2007
    3,590
    271
    83
    Machan,
    wht you going to do is sending email with out authenticatoion of smtp.
    My suggestion is create a mail account and use that username and password and send mails.
    PHP:
    <?php
    
           require_once "Mail.php";
    
            $from = "<from.gmail.com>";
            $to = "<to.yahoo.com>";
            $subject = "Hi!";
            $body = "Hi,\n\nHow are you?";
    
            $host = "ssl://smtp.gmail.com";
            $port = "465";
            $username = "<myaccount.gmail.com>";
            $password = "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>");
             }
    
        ?>
     

    ltty head

    Well-known member
  • May 28, 2009
    3,683
    647
    113
    $to=$email.","."[email protected]";
    $subject = " Chapter.";
    $message = "Hello"." ".$fullname." \n"."You have successfully registerd at Chapter </br> your package is"." ". $orderinfo."\n"."Room Type is"." ".$room."\n"."Amount is"." ".$amount."\n"."Your Transaction number is"." ".$Trnsnubr;
    $mail_hrd = "From: [email protected]";
    if ( mail($to,$subject,$message,$mail_hrd) ) {
    echo "The email has been sent!";
    } else {
    echo "The email has failed!";

    Machan me code eke awulak naha neda.. it must work nah..
     

    yasitha_o3

    Member
    Oct 5, 2006
    2,081
    83
    0
    37
    IN YOUR HEART
    Machan,
    wht you going to do is sending email with out authenticatoion of smtp.
    My suggestion is create a mail account and use that username and password and send mails.
    PHP:
    <?php
    
           require_once "Mail.php";
    
            $from = "<from.gmail.com>";
            $to = "<to.yahoo.com>";
            $subject = "Hi!";
            $body = "Hi,\n\nHow are you?";
    
            $host = "ssl://smtp.gmail.com";
            $port = "465";
            $username = "<myaccount.gmail.com>";
            $password = "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>");
             }
    
        ?>
    ow machn mama ehema thami kare... webserver 1a cpnl 1n email addrs 1k hadala me code 1ata a details dala thamai try kare.. bt errors wagayak awa. mama ayeth try karla ubata pvmsg 1k ewnnam errors tika. puluwan unoth uba balala pdi help 1k deepn
    thanks bro