473,249 Members | 1,849 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,249 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 1362
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...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...

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.