473,326 Members | 2,732 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Mail's "from" getting reformatted

Hi all,

This may not be a PHP issue, but I was hoping someone might know where to
look. I have a web app that a client purchased which sends an email using
PHP's "mail" function. If it sends a message of the format:
js****@example.com <John Smith>, it arrives with a from line looking like
this:

From: js****@example.com Jo********@server.domain.com

Where the from name has gotten reformatted to look like an email address.
Where should I look for the cause of this? Is it sendmail.cf? PHP.ini?
Httpd.conf?

Thanks,
Kevin
Jul 17 '05 #1
5 1365
On Tue, 24 May 2005 09:44:23 -0400, Kevin wrote:
js****@example.com <John Smith>


Wrong way around. Try: John Smith <js****@example.com>
--
Firefox Web Browser - Rediscover the web - http://getffox.com/
Thunderbird E-mail and Newsgroups - http://gettbird.com/
Jul 17 '05 #2
On Tue, 24 May 2005 15:49:01 +0200, I wrote:
Wrong way around. Try: John Smith <js****@example.com>


Btw, enclose the name in double quotes if it contains other characters
than a-z: "J. Smith" <js****@example.com>
--
Firefox Web Browser - Rediscover the web - http://getffox.com/
Thunderbird E-mail and Newsgroups - http://gettbird.com/
Jul 17 '05 #3
*** Kevin wrote/escribió (Tue, 24 May 2005 09:44:23 -0400):
If it sends a message of the format:
js****@example.com <John Smith>, it arrives with a from line looking like
this:

From: js****@example.com Jo********@server.domain.com


Whatever you enclose in < > chars is treated as an e-mail address. When
mail servers find an address that is not a FQDN (fully-qualified domain
name) they consider it a local recipient and they normally autocomplete the
adress appending server's main domain name.

As Ewoud points you probably mean this:

"John Smith" <js****@example.com>
--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
Jul 17 '05 #4
Thanks to both of you. That was it. Looks like the authors of the
application got their mail format backwards.

- Kevin

"Alvaro G Vicario" <al******************@telecomputeronline.com> wrote in
message news:7k****************************@40tude.net...
*** Kevin wrote/escribió (Tue, 24 May 2005 09:44:23 -0400):
If it sends a message of the format:
js****@example.com <John Smith>, it arrives with a from line looking like
this:

From: js****@example.com Jo********@server.domain.com


Whatever you enclose in < > chars is treated as an e-mail address. When
mail servers find an address that is not a FQDN (fully-qualified domain
name) they consider it a local recipient and they normally autocomplete
the
adress appending server's main domain name.

As Ewoud points you probably mean this:

"John Smith" <js****@example.com>
--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--

Jul 17 '05 #5
Ewoud Dronkert wrote:
On Tue, 24 May 2005 09:44:23 -0400, Kevin wrote:
js****@example.com <John Smith>


Wrong way around. Try: John Smith <js****@example.com>


It's also a good idea to put quotes around the name part eg

"John Smith" <js****@example.com>

--
Chris Hope | www.electrictoolbox.com | www.linuxcdmall.com
Jul 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Doug | last post by:
Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Lines: 14 Message-ID: <9DxFc.23833$bs4.23734@newsread3.news.atl.earthlink.net> Date: Sat, 03 Jul 2004...
1
by: tzuccolo2001 | last post by:
I'm trying to send an email using the mail() function. I've carefully made use of the ini_set(SMTP, "mail.my.server") function to set my SMTP server and also to set my From: address. I'm still...
5
by: John Oliver | last post by:
I'd like the email produced by FormMail to show a specific From: address rather than postmaster@server.host.name Googling isn't helping me... not sure what to look for :-( -- * John Oliver ...
6
by: DigitalRick | last post by:
I have been running CDONTS in my ASPpages to send emails to me sent from my guestbook. It had been working fine untill I upgraded to Server 2003 (I am also running Exchange 2003) all locally. I...
5
by: cashdeskmac | last post by:
I am writing a web application will will be hosted on a few peoples laptops as a local application. It will send e-mails once the user connects to the internet. How can I set up the "Mail.From"...
0
by: U S Contractors Offering Service A Non-profit | last post by:
ALOT of them to pick from... Inbox Reply Craig Somerford to uscosoct24, Matthew, B-eing-I-nstru., Ed, me, New, mw, Natural, (bcc:USA), (bcc:Letters), (bcc:lvargas), (bcc:Le), (bcc:staff),...
0
by: alanwo | last post by:
Hi Experts, I am trying to send out email and bounce back to different from "FROM" email address: Dim webmail As New System.Net.Mail.MailMessage("B@FROM.com", "ghyddfhg@gmail.com", "hello",...
3
by: Jason Huang | last post by:
Hi, In my C# Windows form project, I can receieve the mail from the C# code, however, it's EMPTY in the MAIL FROM: Would someone give me some advice? string Data; byte szData; TcpClient...
1
by: vps | last post by:
I have Apache 2.2 server running on Windows XP SP2 with PHP 5.2.5. I have run go-pear.bat in PHP directory (system-wide, all defaults). Running “pear” command lists additional commands. I...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.