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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:52:39+00:00 2026-05-25T06:52:39+00:00

I am using simple mail() function to send mails, and everything works fine tile

  • 0

I am using simple mail() function to send mails, and everything works fine tile I supply a header info, as shown below:

$headers  = "MIME-Version: 1.0\r\n";    
                            $headers.= "Content-type: text/html; carset=iso-8859-1;\r\n";   
                            $headers.= "From: TESTSITE <".$mailfrom.">\r\n";

Also, on another note, my cpanel server doesn’t show the msg log, so I can’t exactly figure out why the mail failed. But for one thing, I am quite sure the problem is due to the inclusion of the header, any ideas what could be wrong and how to debug?

  • 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-25T06:52:40+00:00Added an answer on May 25, 2026 at 6:52 am

    You have a mistake: carset=iso-8859-1 shuld be charset=iso-8859-1.

    Also due to PHP – mail() manual : ”
    If messages are not received, try using a LF (\n) only instead of CRLF (\r\n). Some poor quality Unix mail transfer agents replace LF by CRLF automatically (which leads to doubling CR if CRLF is used). This should be a last resort, as it does not comply with » RFC 2822.”

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

Sidebar

Related Questions

I'm using mail() to send simple mails. For convenience, i'm using a header to
I'm using PHP's Mail function to send emails to individuals. I wanted an easy
The Code I'm Using to send a simple mail import javax.mail.*; import javax.mail.internet.*; import
I need to do a simple mail merge in OpenOffice using C++, VBScript, VB.Net
I'm sending a simple mail with attachment using SmtpClient but I get this error:
I'm trying to write a simple mail server using Python. I found smtpd that
I have a PHP form simply using mail() function of PHP. After i changed
I get this warning sending mails with php Warning: mail(1) [function.mail]: failed to open
i'm working on a simple mail list app in PHP using Zend Mail. The
I have a simple mail sending application which runs in python using Django. After

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.