473,398 Members | 2,335 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,398 software developers and data experts.

php mail() send to outside addresses

Howdy,

I have successfully setup my php.ini file on a web server to
communicate with my Microsoft Exchange Mail server, and can test the
ability to send mail using the mail() function to internet mail
addresses. (mailboxes on our network),

However, when attempting to send mail to an outside address (ex:
someone at gmail dot com) the mail() returns "failed".

Here's my setup.
Windows 2003 IIs 6.0 webserver
Windows 2003 box running Exchange 2003
Is it a change I need to make to php.ini to allow mail to outside e-
mail domains? Is it a setting I need to change within Exchange? Or is
it simply a limitation of mail() to not be able to send mail to
outside domains?

Greatly appreciate your responses!

Chris

Aug 18 '07 #1
2 3733
xx75vulcan wrote:
Howdy,

I have successfully setup my php.ini file on a web server to
communicate with my Microsoft Exchange Mail server, and can test the
ability to send mail using the mail() function to internet mail
addresses. (mailboxes on our network),

However, when attempting to send mail to an outside address (ex:
someone at gmail dot com) the mail() returns "failed".

Here's my setup.
Windows 2003 IIs 6.0 webserver
Windows 2003 box running Exchange 2003
Is it a change I need to make to php.ini to allow mail to outside e-
mail domains? Is it a setting I need to change within Exchange? Or is
it simply a limitation of mail() to not be able to send mail to
outside domains?

Greatly appreciate your responses!

Chris
Chris,

No problem from the PHP end itself - I send mail to outside domains all
the time. It'd be rather pointless if you couldn't, wouldn't it?

Rather, your MTA is probably set up to not be an open relay - which
would make your server invaluable to spammers (for a few hours, at least
- until you get blacklisted).

You need to first understand your Exchange configuration. Depending on
how its set up determines what you need to do from the PHP end.

I suggest you start with an Exchange newsgroup. I doubt many people
here will be able to help you with Exchange configuration.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Aug 18 '07 #2
On Aug 18, 3:22 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
xx75vulcan wrote:
Howdy,
I have successfully setup my php.ini file on a web server to
communicate with my Microsoft Exchange Mail server, and can test the
ability to send mail using the mail() function to internet mail
addresses. (mailboxes on our network),
However, when attempting to send mail to an outside address (ex:
someone at gmail dot com) the mail() returns "failed".
Here's my setup.
Windows 2003 IIs 6.0 webserver
Windows 2003 box running Exchange 2003
Is it a change I need to make to php.ini to allow mail to outside e-
mail domains? Is it a setting I need to change within Exchange? Or is
it simply a limitation of mail() to not be able to send mail to
outside domains?
Greatly appreciate your responses!
Chris

Chris,

No problem from the PHP end itself - I send mail to outside domains all
the time. It'd be rather pointless if you couldn't, wouldn't it?

Rather, your MTA is probably set up to not be an open relay - which
would make your server invaluable to spammers (for a few hours, at least
- until you get blacklisted).

You need to first understand your Exchange configuration. Depending on
how its set up determines what you need to do from the PHP end.

I suggest you start with an Exchange newsgroup. I doubt many people
here will be able to help you with Exchange configuration.

--
Jerry is correct. Well, on all but that last part, anyway :)

You need to configure your Exchange server to allow relaying from a
specific machine (like your webserver) or specific networks (like you
internal network). In the Exchange System Manager, find the SMTP
Virtual server and open the properties for it. On the "Access" tab
click on "Relay" and add the IP address of your webserver. If you
trust your entire local network you could add that, too. Just make
sure you have it set to allow relay for "only the list below" -- not
"all except the list below."

Aug 18 '07 #3

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

Similar topics

2
by: AJ | last post by:
Hi all I've written a little newsletter script that takes addresses from a table and sends an e-mail to them. What I don't understand is what happens to wrong addresses. It all works and when...
2
by: Prashanth | last post by:
Hi, I am sending mails using CDO.Message . It is sending mails successfully only if the destination addresses are within the intranet. If you try to send a mail outside the intranet say...
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...
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 @verizon.net, does not seem to be recieving the message...
39
by: Viken Karaguesian | last post by:
Hello all, <SIGH> I'm soooooo sick and tired of getting spam e-mails. I'm sure that part of the reson for this is that my e-mail address is publicly available on my website, ready to be picked...
34
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access Connection granted to "127.0.0.1". 3. Relay only allow...
10
by: Newbie | last post by:
Hi all, I'm looking for a way to send newsletter to my subscribers (1000+ in total). I've managed to do it using .NET system.net.mail.smtpclient's sendAsync. I read the email addresses from a...
11
by: Ed Bitzer | last post by:
I have been able using the namespace System.Web.Mail and its method Smtp.mail.send to mail simple text messages to a small group within our 55 and older community. I need help expanding the...
1
by: the_ricka | last post by:
Hi all, I'm fairly new to python, but very excited about it's potential. I'm trying to write a simple program that will accept input from a command line and send email. The parameters I used on...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
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...
0
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...
0
agi2029
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.