473,769 Members | 2,348 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP Mail not sending mail to itnernal email address

Running a PHP mail script on Linux which has Exchange as the mail
server.
The script does not send mail to any internal email address but sends
it to any other address outside its domain!
Can somebody please help...

Thanks
Tanya
www.bluent.co.in
Jul 17 '05 #1
2 4900
Hello,

On 10/13/2003 03:29 AM, Tanya wrote:
Running a PHP mail script on Linux which has Exchange as the mail
server.
The script does not send mail to any internal email address but sends
it to any other address outside its domain!
Can somebody please help...


If the message is not delivered, it is probably being rejected and you
should get a bounce in the return address.

If you do not get a bounce, maybe your Linux server is still retrying
and the message is trapped in a queue.

To analyse your problem and have a quick answer to what it can be, you
may want to try this class that comes with a wrapper function named
smtp_mail(). It emulates the mail() function so you can replace it
without further changes.

You just need to set it to direct delivery mode, so it tries to send to
your Exchange server immediately instead of leaving in your local queue.

If the message is rejected, you will get a self-explanatory error
message that can tell you what is going on.

http://www.phpclasses.org/mimemessage

You also need this:

http://www.phpclasses.org/smtpclass
--

Regards,
Manuel Lemos

Free ready to use OOP components written in PHP
http://www.phpclasses.org/

Jul 17 '05 #2
Hello,

On 10/13/2003 03:29 AM, Tanya wrote:
Running a PHP mail script on Linux which has Exchange as the mail
server.
The script does not send mail to any internal email address but sends
it to any other address outside its domain!
Can somebody please help...


If the message is not delivered, it is probably being rejected and you
should get a bounce in the return address.

If you do not get a bounce, maybe your Linux server is still retrying
and the message is trapped in a queue.

To analyse your problem and have a quick answer to what it can be, you
may want to try this class that comes with a wrapper function named
smtp_mail(). It emulates the mail() function so you can replace it
without further changes.

You just need to set it to direct delivery mode, so it tries to send to
your Exchange server immediately instead of leaving in your local queue.

If the message is rejected, you will get a self-explanatory error
message that can tell you what is going on.

http://www.phpclasses.org/mimemessage

You also need this:

http://www.phpclasses.org/smtpclass
--

Regards,
Manuel Lemos

Free ready to use OOP components written in PHP
http://www.phpclasses.org/

Jul 17 '05 #3

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

Similar topics

2
9967
by: Michael | last post by:
I know that in order to send an e-mail using Perl there must be a '\' in front of the '@' symbol. For example department\@company.com. And it works. The problem that I am having is that we have many customers whom we need to direct towards their own personal online order form. For some reason when I try to place the '\' in front of the '@' symbol it does not work. For example person@isp.com. In order to send them an e-mail we need to
2
2482
by: steve | last post by:
I'm trying to create a PHP script to send mail to a list of addresses. I'm sending mail okay, because the messages arrive in an account that I can check, but messages to a known bad address aren't being bounced back to the sending address. Here's the line of code I'm using: $mailok = mail("me@goodaddress.com,me@badaddress.com","this is a test", "this is a test", "From: me@sendaddress.com");
9
3225
by: B-Dog | last post by:
I've built a small app that sends mail through our ISP's SMTP server but when I try to send through my local exchange server I get CDO error. Does webmail use SMTP or does it strictly rely on CDOmail. I don't want to use the Outlook reference because outlook prompts each time program access it and I have found a way to disable that. Can I use webmail with exchange? Thanks
1
8182
by: Eric Sheu | last post by:
Greetings, I have been searching the web like mad for a solution to my SMTP problem. I am using Windows Server 2003 and ASP.NET 2.0 w/ C# to send out e-mails from a web site I have created to the members of my organization. I think my problem is incorrectly setting the settings on my server or an authentication problem. Here is the code I have written to send a test message: -----Code Begins: Sensitive Information Replaced by -----...
0
3776
by: bambi | last post by:
I am facing issues while adding attachments in an E-mail via Mapisend. The code I use is below. If I try to send , I am getting error messgae in Mailmessage.12. Mailmessage.12 is expected as numeric, I do not know what should it be. If I Provide '0', it is throwing out error. Can any one help what shoudl I do to fix this. I am able to send E-mail sucessfully without Attachments.. Code (Please refer comments near Mailmessage.12) OPTIONS...
12
4593
by: e_matthes | last post by:
Hello everyone, I am trying to use the mail() function to send a simple, text-only message. I have two websites hosted by the same company, on different servers. One is old and established, one I am currently developing. I am testing the mail functionality by sending a test message to an email account associated with my old website, and to my hotmail account. The message seems to be sent to both accounts, and I receive the message on...
7
9834
by: undbund | last post by:
Hi I am creating a newsletter system. The software should run from desktop computer (localhost) but be able to send email to anyone on the internet. Can you guys give me some ideas on how to achieve this. Thanks
5
3594
by: wktarin | last post by:
Hi. I'm a relative newcomer to the world of php, and I keep bumping into a problem with a mail () form. I need to send an automatic email to two addresses, but I can't seem to get it to work. One email address works just fine, but I can't get the email sent to two different addresses no matter what I try. Below is my code. If someone could help me spot my errors, I'd appreciate it. Thanks! Code from actual page: <?php //Check if the form...
1
6148
maliksleo
by: maliksleo | last post by:
hi i am using the following class for email sending but getting this error "Failure sending mail" Imports System.Net.Mail Public Class MailHelper ''' <summary> ''' Sends an mail message ''' </summary> ''' <param name="from">Sender address</param> ''' <param name="recepient">Recepient address</param>
0
9586
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10043
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9861
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8869
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7406
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5446
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3956
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3561
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.