Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6468677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T05:54:43+00:00 2026-05-25T05:54:43+00:00

I am using xampp 1.7.4 (PHP 5.3.5) and when i send emails to my

  • 0

I am using xampp 1.7.4 (PHP 5.3.5) and when i send emails to my email address its working. and even i used mail server as examples its not working. below is the code.

<?php
    ini_set("SMTP","mail.sweetinteractive.com");
    $suc = mail("uzair@sweetinteractive.com","Learning PHP","Message is not working ","From: uzair@sweetinteractive.com");
    if($suc){
        echo "Mail sent";
    } else {
        echo "Mail sending Failed.";
    }
?>

And even i tried out working with our mail server. But its showing and error

Warning: mail() [function.mail]: SMTP server response: 550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1) in C:\xampp\htdocs\LearnPhp\email1.php on line 3
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T05:54:43+00:00Added an answer on May 25, 2026 at 5:54 am

    Please configure your php.ini and sendmail.ini files in xampp folder.

    First : need to change the fields in php.ini (rootdrive:\xampp\php\php.ini)


    (Note : semicolon ‘;’ signifies a comments in ini files)

    [mail function]
    ; For Win32 only.
    ; http://php.net/smtp
    SMTP = mail.sweetinteractive.com
    ; http://php.net/smtp-port
    smtp_port = 25
    
    ; For Win32 only.
    ; http://php.net/sendmail-from
    sendmail_from = uzair@sweetinteractive.com
    

    second step : change the sendmail.ini file (rootdirectory:\xampp\sendmail\sendmail.ini)


    note : remove semicolon (;) form give below fields
    and make changes in sendmail.ini file

    smtp_server=mail.sweetinteractive.com
    
    ; smtp port (normally 25)
    
    smtp_port=25
    
    auth_username=uzair@sweetinteractive.com
    auth_password=give your password here without any quotes
    

    I believe this should gonna work. Because you are not providing any authentication parameters in previous post.

    Note : after making the changes in php.ini and sendmail.ini files, stop the apache service from Xampp control panel and run it again.

    and your php code


    <?php
        ini_set("SMTP","mail.sweetinteractive.com");
        $suc = mail("uzair@sweetinteractive.com","Learning PHP","Message sending will work now","From: uzair@sweetinteractive.com");
        if($suc){
            echo "Mail sent";
        } else {
            echo "Mail sending Failed.";
        }
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a PHP application using our XAMPP setup as a test server.
in windows (using apache as server), my file path directory will be C:\xampp\htdocs\mysvn\PhpDocumentor\phpdoc.php. But
I am trying to send an e-mail using php script but i am getting
I want to send a mail from localhost. I am using XAMPP to develop
I'm using XAMPP Server 1.7.7 While opening the php file, i receive the error
Having big problems trying to get my php script to send email. Using this
I've been using pear mail package 1.20 to send plan text email. I have
I'm having an error trying to send mail with PHP using the mail() function.
Hi im using xampp & I am trying to connect using php. <?php $server
I was using xampp to develop locally and then I installed the PHP from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.