troubleshooting Question

PHP Mail Script will send to MY domain but NEVER outside

Avatar of Defcon5
Defcon5 asked on
PHP
9 Comments1 Solution722 ViewsLast Modified:
Purchased a Clickbank script some time back and it installed great.  When an affiliate signs up or a customer purchases a product they will get some type of e-mail via this script.  Either telling the affiliate they made a sale, welcome to the program or giving the customer download instructions.

Recently, all e-mail from this script quit working EXCEPT if the address being sent to was @freedomfly.net (MY domain).

I contacted my host and they responded with:

The problem is that you're sending mail out from mrcd@stkitts.globat.com. The script
has to be written properly.  If you want to send mail out from globat's servers, you
have to use your globat account *@freedomfly.net.

I contacted the developer and he responded with:

The code for the mail function is a simple one, it uses the
standard php "mail()" function.  The email headers are
determined by how the server and php is setup.

I think you need to ask them this question -
-----------------------------------------------
can you use the php  mail() function  OR do you need
to use the SMTP function to send mail.
-----------------------------------------------

These are the only 2 ways to send email. If they say
SMTP function, then I'll need you to do the following.

1) create a new mailbox (not a forwarder) and give
   me the username/password for that mailbox

2) I'll modify eCM's code to use it. It should work, unless
it requires your master/main mailbox details.


I've got a php.ini file on my domain.  And when I connect to this page:

http://www.freedomfly.net/pinfo.php

I can see all kinds of variables.  I think the php.ini file that is in my domain will allow me to control some.. like the mail account I send from.  Which is setup with a valid address, but does nothing to resolve my problem.

CGI scripts work just fine.  

My main question is:

Why doesn't the php.ini file make a difference?  How can I send mail using this script's simple php function?  Since the developer made the script so simple, I'm thinking he did not include this FROM function.

Can that simply be added?

If you need access to the scripts in question, I can provide a zipped file.

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 9 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros