472,328 Members | 1,680 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

problems with mail() and email forwarding

Hi All,
I'm experiencing problems with sending mail using mail() to forwarded
email accounts. The problem seems to revolve around the optional 4th
argument of mail(), namely 'additional headers'.

It seems that when I populate this 4th argument of mail(), any emails
sent to an email forwarding service email address (ukreg/fasthosts
actually) fail to reach their destination. Direct email addresses seem
to work fine.

Why is this?. Has anyone any ideas?.

Thanks in advance,
Dave

Jun 24 '07 #1
5 3846
..oO(Dave)
>I'm experiencing problems with sending mail using mail() to forwarded
email accounts.
What problems?
>The problem seems to revolve around the optional 4th
argument of mail(), namely 'additional headers'.

It seems that when I populate this 4th argument of mail(), any emails
sent to an email forwarding service email address (ukreg/fasthosts
actually) fail to reach their destination. Direct email addresses seem
to work fine.

Why is this?. Has anyone any ideas?.
Some more details and/or code would help. What do you send as the 4th
parameter? What happens with the mails? Do they bounce? Are they
considered as spam? Does it rain when you send them?

Micha
Jun 24 '07 #2
Message-ID: <11**********************@k79g2000hse.googlegroups .comfrom
Dave contained the following:
>It seems that when I populate this 4th argument of mail(), any emails
sent to an email forwarding service email address (ukreg/fasthosts
actually) fail to reach their destination. Direct email addresses seem
to work fine.

Why is this?. Has anyone any ideas?.
It will most likely be a Fasthosts thing. They have a tendency to do odd
things IME, especially on Windows hosting. Check their knowledgebase or
drop support a line.
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jun 25 '07 #3
Message-ID: <7i********************************@4ax.comfrom Geoff
Berrow contained the following:
>
>>It seems that when I populate this 4th argument of mail(), any emails
sent to an email forwarding service email address (ukreg/fasthosts
actually) fail to reach their destination. Direct email addresses seem
to work fine.

Why is this?. Has anyone any ideas?.

It will most likely be a Fasthosts thing. They have a tendency to do odd
things IME, especially on Windows hosting. Check their knowledgebase or
drop support a line.
Just remembered. Last time I had a problem like this I had to add the
following line.

ini_set ("sendmail_from", "po********@example.com");

where the domain is the site domain.

I've no idea why, especially as the from address is being defined in the
4th parameter, but it works.

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jun 25 '07 #4
On 24 Jun, 17:46, Michael Fesser <neti...@gmx.dewrote:
.oO(Dave)
I'm experiencing problems with sending mail using mail() to forwarded
email accounts.

What problems?
Try reading beyond the first sentence.
The problem seems to revolve around the optional 4th
argument of mail(), namely 'additional headers'.
It seems that when I populate this 4th argument of mail(), any emails
sent to an email forwarding service email address (ukreg/fasthosts
actually) fail to reach their destination. Direct email addresses seem
to work fine.
Why is this?. Has anyone any ideas?.

Some more details and/or code would help. What do you send as the 4th
parameter? What happens with the mails? Do they bounce? Are they
considered as spam? Does it rain when you send them?
I've experimented further, and these are my findings:
If I define the $headers (4th field) of the mail() function to say:

$headers = "From: fr*******@mydomain.co.uk";

then this will work for both fasthost and non-fasthost email
addresses. However, something like this:

$headers = "From: Fred Smith";

won't ever arrive if a fasthosts forwarding email address is used.
However, it seems ok for normal 'direct' email address.

Any ideas?. Is the second format for headers valid?.

Ta in advance,
Dave

Jun 30 '07 #5
Dave wrote:
On 24 Jun, 17:46, Michael Fesser <neti...@gmx.dewrote:
>.oO(Dave)
>>I'm experiencing problems with sending mail using mail() to forwarded
email accounts.
What problems?

Try reading beyond the first sentence.
>>The problem seems to revolve around the optional 4th
argument of mail(), namely 'additional headers'.
It seems that when I populate this 4th argument of mail(), any emails
sent to an email forwarding service email address (ukreg/fasthosts
actually) fail to reach their destination. Direct email addresses seem
to work fine.
Why is this?. Has anyone any ideas?.
Some more details and/or code would help. What do you send as the 4th
parameter? What happens with the mails? Do they bounce? Are they
considered as spam? Does it rain when you send them?

I've experimented further, and these are my findings:
If I define the $headers (4th field) of the mail() function to say:

$headers = "From: fr*******@mydomain.co.uk";

then this will work for both fasthost and non-fasthost email
addresses. However, something like this:

$headers = "From: Fred Smith";

won't ever arrive if a fasthosts forwarding email address is used.
However, it seems ok for normal 'direct' email address.

Any ideas?. Is the second format for headers valid?.

Ta in advance,
Dave


From: must include a valid email address. "Fred Smith" is not a valid
email address.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jun 30 '07 #6

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

Similar topics

5
by: Ronald Fischer | last post by:
Could someone explain to me what is the difference between <!ENTITY % Foo 'Bar' > and <!ENTITY Foo 'Bar' > From my understanding, the...
5
by: jose luis fernandez diaz | last post by:
Hi, When I compiling the program below: #include <map> using namespace std; template<typename td1, typename td2, typename td3,typename...
7
by: Andy K | last post by:
Hi , I have an existing database (on a Linux Red Hat ES3) where the replication function exists but does not work because the target database...
2
by: Patrick Hill | last post by:
Hello, I have a web form that is a email page. When the user fills out the form and clicks send there is a "The server rejected one or more...
1
by: Tiabes | last post by:
Hi, I am using System.Web.Mail for a email feature in an Intranet Application (ASP.NET). I need to use NTLM Authentication: ...
2
by: Adam Witney | last post by:
Forwarding to the mailing list, as I don't know how to fix it.... ------ Forwarded Message From: Henning Klein <kleinh@rz.uni-potsdam.de> Date:...
3
by: Nathan Sokalski | last post by:
I have an ASP.NET page that sends a Mail.MailMessage to several email addresses (all mine). However, one of the addresses, the one ending in...
3
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...
15
by: Craig Hurley | last post by:
Hello, user@x.com receives an email from user@a.com. I want to forward that email to user@y.com. I want the contents/header to remain intact,...
0
by: tammygombez | last post by:
Hey fellow JavaFX developers, I'm currently working on a project that involves using a ComboBox in JavaFX, and I've run into a bit of an issue....
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
1
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

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.