PHP send yahoo email using smtp

Previous ArticlePHP Creating watermark text
  • mechergui

    if we want just simple replay like “sended” or “error” because i dont want complete message. so what we can do?

    • Hello,
      You can simply check if response exist or not as following.

      $response = sendEmail($FromEmail,$Subject,$Message,$FromName,$ToEmail);
      if(!empty($response)) {
      echo ‘Email is sent’;
      } else {
      echo ‘Email sent error’;

      Hope this would be help.


  • omprakash

    This is the mail system at host

    I’m sorry to have to inform you that your message could not
    be delivered to one or more recipients. It’s attached below.

    For further assistance, please send mail to postmaster.

    If you do so, please include this problem report. You can
    delete your own text from the attached returned message.

    The mail system

    : delivery temporarily suspended: lost connection
    with[] while sending RCPT TO

    i found this error please help