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

  • Home
  • SEARCH
  • 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 7732977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:52:04+00:00 2026-06-01T06:52:04+00:00

i am using php and mail function , but i face this error: Warning:

  • 0

i am using php and mail function , but i face this error:

Warning: mail() [function.mail]: SMTP server response: 550 No such user here in C:\inetpub\vhosts\saj.ir\subdomains\lms\httpdocs\registration\include.php on line 78

my code is :

$srting= "testing email";
ini_set("SMTP","webmail.saj.ir");
ini_set("sendmail_from","info@saj.ir");
$headers= 'MIME-Version: 1.0' . "\r\n";
$headers.= 'Content-type: text/html; charset=utf8' . "\r\n";
$headers .= 'From: www.saj.ir' . "\r\n";
mail("ayoob.khodadadi@gmail.com","class list",$srting,$header);

i don’t know
thanks .

i change webmail.saj.ir to http://ns1.easysoftco.com and now i face this message :
Failed to connect to mailserver at “http://ns1.easysoftco.com” port 25, verify your “SMTP” and “smtp_port”

oh i found my problem : i am using widows and IIS 7.5
is there way to mail in IIS 7.5

  • 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-06-01T06:52:05+00:00Added an answer on June 1, 2026 at 6:52 am

    You have defined $headers and you are using $header

    $srting= "testing email";
    ini_set("SMTP","http://ns1.easysoftco.com");
    ini_set("sendmail_from","info@saj.ir");
    $headers= 'MIME-Version: 1.0' . "\r\n";
    $headers.= 'Content-type: text/html; charset=utf8' . "\r\n";
    $headers .= 'From: www.saj.ir' . "\r\n";
    mail("salman_k18@yahoo.com","class list",$srting,$headers);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im using PHP's mail() function to send some emails. But all my mails land
I am using PHP's mail function to send an email, but I am going
before few days i have been comfortably sending emails using PHP mail function. but
I am using PHP mail function to send mails to my clients. But, I
Using the php mail() function to send out emails when a user requests a
I sent email confirmation massage using php mail() function but it's not processing html
I have a PHP application that sends email using the pear Mail function. Unfortunately
I am using PHP mail() to send daily notice emails. But I noticed that
I have send an email using php mailer class. mail was sending successfully but
I am using this code to send mail with php http://www.siteduzero.com/tutoriel-3-35146-e-mail-envoyer-un-e-mail-en-php.html#ss_part_4 . This code

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.