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 8538289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:06:02+00:00 2026-06-11T11:06:02+00:00

I am trying to use the function mail in a server over windows with

  • 0

I am trying to use the function mail in a server over windows with iss7 and i am getting this warning which doesn’t let me send mails:

Warning: mail(mail.log): failed to open stream: Permission denied in xxxx 

That line is:

mail("mail@myserver.com", "subject", 'body',"From: mail2@myserver.com")

At php.ini i have configured SMTP server, port and sendmail_from like this:

; http://php.net/smtp
SMTP = 128.x.x.xxx
; http://php.net/smtp-port
smtp_port = 110

; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = mymail@myserver.com

; The path to a log file that will log all mail() calls. Log entries include
; the full path of the script, line number, To address and headers.
mail.log = mail.log

I have also created a file called “mail.log” inside C:/php/ and i have changed permissions to write and read for all users.

Also, at phpinfo() safe_mode is Off.

I am currently sending mails with PHPMailer but it is soooo slow that i want to try it with mail function.

Do you know what am I doing wrong?
Thanks.

  • 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-11T11:06:02+00:00Added an answer on June 11, 2026 at 11:06 am

    You should have a mail.log entry in your php.ini file which should log all the mail() function calls. Search for it and if you don’t have this line, then it’s taking some strange default or previously defined value, so you better define it and point it to the file you have created in your PHP folder and hopefully assigned good permissions to. For more check what phpinfo() is saying about mail.log.

    For more info: mail configuration.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to use the php mail function on my windows server over
so I'm trying to use PHP's mail() function to send an email when users
I am trying to use this function from a COM API which enables the
I am trying to use a function pointer and I am getting this error:
I'm trying to send email in windows server using PHP. When I use php
I'm trying to use php's mail() function but keep getting an error. I've installed
I am trying to use html() function of jquery over the specific child like:
I'm trying to use SendInput() function. I wrote this code: #include <stdio.h> #include <stdlib.h>
Can somebody please help me with this mail script. I'm simply trying to send
Im trying to use a function from Windows API on delphi, functions for Windows

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.