Howdy!
I've encountered an odd error, and it seems to happen only when PHP is used
to send email. I'm using PHP 4.1.2 on RH 7.1. The problem is best seen when
OS Commerce generates email.
Specifically, email that is sent to a local mailbox has the 'F' removed from
the "From " header (I think this is the very first character in email
messages). With the 'F' missing, the mail file is obviously corrupted. For
now, I've resorted to using sed() and lockfile to fix it.
When I had a little time some months ago, I spelunked through the OSC code;
it seems the problem is within a PHP mail handling function.
Has anyone ever seen this? What can I do to fix it? (Or, more politely,
where can I look to learn how to fix it?)
Clueless in Virginia's technological backwater,
Neal 3 1938
In article <h7************ ********@adelph ia.com>, ne***********@a lum.wpi.edu says... Howdy!
I've encountered an odd error, and it seems to happen only when PHP is used to send email. I'm using PHP 4.1.2 on RH 7.1. The problem is best seen when OS Commerce generates email.
Specifically, email that is sent to a local mailbox has the 'F' removed from the "From " header (I think this is the very first character in email messages). With the 'F' missing, the mail file is obviously corrupted. For now, I've resorted to using sed() and lockfile to fix it.
No, the 'From:' header is usually in the center or lower of the headers.
There are a bunch of trace headers before it indicating where the email
has been in transit. When I had a little time some months ago, I spelunked through the OSC code; it seems the problem is within a PHP mail handling function.
Has anyone ever seen this? What can I do to fix it? (Or, more politely, where can I look to learn how to fix it?)
It may be a problem in what is passed to mailto as additional headers.
It can take a "From:" as one of these and overwrite its default value.
Check the 'F' is actually getting passed in, if it isn't being passed at
all you might solve the problem by setting the header yourself this way.
Format for that header is:
'From: "Name Here" <ad**@domain.wh atever>\n'
Quoted String "Name Here" is optional, address can be '<>' if no bounce
is ever wanted.
To prevent bounces with <>, but allow manual replies there is "Reply-
To:" with same format as "From:"
--
AJ
Treehouse Networks abuse@ www.treenetnz.com
TreeNet Admin wrote: In article <h7************ ********@adelph ia.com>, ne***********@a lum.wpi.edu says...
Howdy!
I've encountered an odd error, and it seems to happen only when PHP is used to send email. I'm using PHP 4.1.2 on RH 7.1. The problem is best seen when OS Commerce generates email.
Specificall y, email that is sent to a local mailbox has the 'F' removed from the "From " header (I think this is the very first character in email messages). With the 'F' missing, the mail file is obviously corrupted. For now, I've resorted to using sed() and lockfile to fix it.
No, the 'From:' header is usually in the center or lower of the headers. There are a bunch of trace headers before it indicating where the email has been in transit. When I had a little time some months ago, I spelunked through the OSC code; it seems the problem is within a PHP mail handling function.
Has anyone ever seen this? What can I do to fix it? (Or, more politely, where can I look to learn how to fix it?)
It may be a problem in what is passed to mailto as additional headers. It can take a "From:" as one of these and overwrite its default value.
Check the 'F' is actually getting passed in, if it isn't being passed at all you might solve the problem by setting the header yourself this way.
Format for that header is: 'From: "Name Here" <ad**@domain.wh atever>\n'
Quoted String "Name Here" is optional, address can be '<>' if no bounce is ever wanted.
To prevent bounces with <>, but allow manual replies there is "Reply- To:" with same format as "From:"
Don't forget that all lines *must* end <CR><LF> - that's \r\n
It's in the standard, even though some mail servers don't enforce it.
Steve
TreeNet Admin <cl*@treenetnz. com> wrote: I've encountered an odd error, and it seems to happen only when PHP is used to send email. I'm using PHP 4.1.2 on RH 7.1. The problem is best seen when OS Commerce generates email.
Specifically, email that is sent to a local mailbox has the 'F' removed from the "From " header (I think this is the very first character in email messages). With the 'F' missing, the mail file is obviously corrupted. For now, I've resorted to using sed() and lockfile to fix it.
No, the 'From:' header is usually in the center or lower of the headers. There are a bunch of trace headers before it indicating where the email has been in transit.
What makes you think the OP is talking about the 'From: ' header, he
specifically states the 'From ' header in a local mailbox. That is the
first line in a mbox format:
From me@example.com Sat Nov 27 13:00:00 2004 When I had a little time some months ago, I spelunked through the OSC code; it seems the problem is within a PHP mail handling function.
Has anyone ever seen this? What can I do to fix it? (Or, more politely, where can I look to learn how to fix it?)
Your software is ancient, my guess is you have a software bug, either in
php (research bugs.php.net) or in you MTA. Get out your tools like
ethereal and reading the mailspool dir to see what is acutally being
transmitted. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Wayno |
last post by:
Hoping someone can help me out with this problem. First problem, is I
am unable to view my php error log. In my php.ini I have my log in
/var/www/logs/php_error_log. However, it has remained empty.
Secondly, my sendmail works fine from command prompt. However, when
trying to send mail through a php script (I have tried a couple), it
says it is succesfull, but my mail logs show nothing going out. No
error messages. Can someone take a look...
|
by: polilop |
last post by:
I made a form in which I send the visitor a link to my page
but when the visitor gets that link in the mail it dosent send him
to the page just says invalid syntax
or something like outbound.......
I'm not trying to spam
this is the code iput into body variable
text= "<table width='310' border='0'> "&_
"<tr><td class='all'><p align='center'> Something <br>"&_
"something<br>"&_
|
by: baustin75 |
last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie
only when debugging in php designer 2005
--------------------------------------------------------------------------------
Hello,
I have a very simple problem but cannot seem to figure it out. I have a
very simple php script that sends a test email to myself. When I debug
it in PHP designer, it works with no problems, I get the test email. If
|
by: Phil Mc |
last post by:
Hi has anyone come accross the problem....
with referance to System.Web.Mail.MailMessage and
System.Web.Mail.SmtpMail
THIS WORKS FINE
mail=new MailMessage();
mail.From = "W-MyPcName.mycompany.com";
mail.To=strTo;
mail.Cc=strCC;
mail.Bcc=strBCC;
|
by: B-Dog |
last post by:
I've built a small app that sends mail through our ISP's SMTP server but
when I try to send through my local exchange server I get CDO error. Does
webmail use SMTP or does it strictly rely on CDOmail. I don't want to use
the Outlook reference because outlook prompts each time program access it
and I have found a way to disable that. Can I use webmail with exchange?
Thanks
| |
by: Eric Sheu |
last post by:
Greetings,
I have been searching the web like mad for a solution to my SMTP problem. I
am using Windows Server 2003 and ASP.NET 2.0 w/ C# to send out e-mails from a
web site I have created to the members of my organization. I think my problem
is incorrectly setting the settings on my server or an authentication
problem. Here is the code I have written to send a test message:
-----Code Begins: Sensitive Information Replaced by -----...
|
by: Ryan |
last post by:
Hi,
I receive an access denied error (see below) when attempting to send an
email with BodyFormat=MailFormat.Html from an asp.net page. Exactly the same
code works fine in a console application, and also succeeds from the asp.net
page with BodyFormat=MailFormat.Text.
I've recently upgraded from W2K SP4 to WinXP SP2 and am using .Net Framework
v1.1 SP1. The code worked fine under W2K SP4.
|
by: Ibrahim. |
last post by:
Hello,
Im getting the following error when mail is sent from ASP.NET 2.0 website.
CDO.Messaging componenet is used for sending mail.
"
The message was not able to be transmitted to the SMTP server. The
forwarding error code is 0x800ccc67. The response from the server is as
follows. 421 service not available,
closing transmission channel
|
by: Robert Dufour |
last post by:
I am trying to use framework 1.1 - stuck with it. to send emails from a
windows form application. The email messages can have attachments, usually
two and they can be either text or sounds (wav files) or images (bmp, gif or
tiff)
I can send the email messages OK but the attachments are giving me grief.
Can anyone provide some code that adds attachments to web mail messages.
Thanks for any help,
|
by: undbund |
last post by:
Hi I am creating a newsletter system. The software should run from
desktop computer (localhost) but be able to send email to anyone on
the internet. Can you guys give me some ideas on how to achieve this.
Thanks
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |