473,569 Members | 2,652 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Why am I not able to receive email on mydomain.com when I am able to send emails?

kamill
71 New Member
Dear Friends,

I am using a php mail function, with this script i am sending mail to customer of my client. Script id doing well with other domain but with same domain emails script is unable to send mail.

example:

my domain name where i am running script is www.example.com
and i have two email ids as xyz@example.com and xyz@abc.com then i am able to receive email at xyz@abc.com but not able to receive mail at xyz@example.com .

[PHP]<?php
$from='test@exa mple.com';
$headers = "From: $from";
$headers = "Content-type: text/html; charset=iso-8859-1\r\n"; $to1='xyz@examp le.com';
$to2='xyz@abc.c om';
$subject='Test Subject';
$msg='Test Message';
mail($to1, $subject, $msg, "From:$from\n". $headers);
mail($to2, $subject, $msg, "From:$from\n". $headers);
?>
[/PHP]


I have got stuck with it. Please help me.
Oct 17 '08 #1
1 1618
dlite922
1,584 Recognized Expert Top Contributor
This may not be a PHP problem but your mail server.

telnet to your mail server on port 25 (SMTP) and send an email through the command line.

check Google for SMTP commands and examples of how to do that.



Dan
Nov 1 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

12
8756
by: Chuck Anderson | last post by:
Can anyone point me in the right direction? I want to use Php to automate confirmation of someone joining an email list by them replying to an email (so they don't have to have a browser?). I will probably use a hyperlink with a unique ID, but I also want to know how to go about reading from a mailbox with Php so I can use an email reply...
7
7377
by: James Thompson | last post by:
I need to send out about 800 emails from addresses stored in an Access Database, can this be achieved using ASP and maybe an emailing component? Any other resources? Thanks
3
1766
by: Bruno G. | last post by:
Hello! Is it possible for IIS to send some sort of notification when an ASP error occurs on a page? I can see them in the web logs, but I was wondering if there was a way to receive an email or some other alert... I thought about using CDO Send Mail, but this object is often what cause the error in the first place.
5
394
by: John | last post by:
Having a problem sending emails through vb.net. Our inhouse software automatically sends an email to the programming staff whenever an error is encountered. This code works just fine on machines that are windows 2000 based. We recently upgraded from Outlook 2000 to Outlook 2003, and it still works. We have one machine with XP service pack...
4
1135
by: Rob Meade | last post by:
Hi all, I'm using the following code:
3
6811
by: VB Programmer | last post by:
I have an ASPX page where I send out emails through my mail server mail.MyDomain.com. When I send emails to MyName@MyDomain.com it sends PERFECTLY. When I try sending an email to any other address (non-MyDomain.com address) I get the following error: The server rejected one or more recipient addresses. The server response was: 550 You must...
14
9116
by: supz | last post by:
Hi, I use the standard code given below to send an email from an ASP.NET web form. The code executes fine but no Email is sent. All emails get queued in the Inetpub mail queue. I'm using my local default SMTP Server and my from address is a valid Yahoo/Hotmail address. I have configures the local SMTP Server to allow the IP Address...
12
1325
by: Adrian | last post by:
Is there a way to know which email addresses viewed my website? Thanks, Adrian.
1
3825
by: TD | last post by:
I have the code below under a button on a form. At this point am just testing how to send email from MS Access. Access is installed on a machine running WinXP Pro. I checked the box next to Microsoft CDO for Windows 2000 under References. I can send one message and then if can close Access no problems. If I click the button several times...
0
7614
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8125
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...
1
7676
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7974
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...
0
6284
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...
0
5219
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...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2114
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

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.