hi
i'm using php mail (running on windows 2003 server <built-in smtp> ) to send email to abc.com domain, the email is not reaching to the domain as i'm monitoring it. but as i run the script i get the following warning in browser: Warning: mail() [function.mail]: SMTP server response: 452 4.2.2 Mailbox full in C:\Inetpub\wwww root\testdomain \phpmailer\inde x2.php on line 5
Message delivery failed...
here is the script that i used; - <?php
-
$to = "recipient@example.com";
-
$subject = "Hi!";
-
$body = "Hi,\n\nHow are you?";
-
if (mail($to, $subject, $body)) {
-
echo("<p>Message successfully sent!</p>");
-
} else {
-
echo("<p>Message delivery failed...</p>");
-
}
-
?>
when i try to send to gmail it works fine. but when i try to my exchange server i get the above warning but when i change the code to use auth it works fine for my exchange server
5 2622
When your server is set up to use mandatory headers, you need to add e.g. the "From: xxxx@yyy\n" in the fourth parameter of the mail command.
Ronald
ok i have changed the code to use header (from etc) - <?php
-
$headers = 'From: abc@mydomain.info' . "\r\n" .
-
'Reply-To: abc@mydomain.info' . "\r\n" .
-
'X-Mailer: PHP/' . phpversion();
-
$to = "myid@gmail.com";
-
$subject = "Hi!";
-
$body = "Hi,\n\nHow are you?";
-
if (mail($to, $subject, $body,$headers)) {
-
echo("<p>Message successfully sent!</p>");
-
} else {
-
echo("<p>Message delivery failed...</p>");
-
}
-
?>
-
But still i can't get it, when i try on googlemail i get the message successfully.
The Quesiton is Why exchange Server isn't getting email from website (without auth)?
LOL sorry my fault, infact not a fault :-) but just found that If Intelligent Mail Filtering is enable in exchange server sp2 then script like this when use to send email to exchange will be blocked at connection stage. Because exchange needs a proper way to authenticate smtp before sending email
Anyway cheers ! buddy hope this thread help some one else :D
Thanks for sharing your findings with us. Hope this helps somebody else.
Ronald
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: The Plankmeister |
last post by:
Hi...
I seem to remember reading somewhere about the proper way of doing this sort
of thing in the middle of some html, for example:
<a href="<?= $some_url_or_other ?>">Click this!</a>
What is the most proper way of doing such? Would it be to do the full
monty?:
|
by: OldGuy |
last post by:
Hi All
Sendmail 8.12.11
php 4.3.9
Sendmail is installed and works properly.
php is NOT in safemode
from the command line; mail user@domain.com < testmsg works fine.
|
by: Eric A. Forgy |
last post by:
Hello,
I am just learning Java and am trying to write a method that does
something like
//===========================================
public Static List find(double array,double val,String relationalOp)
{
List list = new ArrayList();
|
by: Skip Montanaro |
last post by:
(moving over from webmaster mailbox)
scott> I'm sorry for bothering you, but I've tried to post to the Python
scott> Tutor Mail List, tried to get someone from Bay PIggies to
scott> respond, but no one is responding to my questions. If you don't
scott> want to answer my questions, I'd appreciate an e-mail stating
scott> that. My questions are as follows:
A better place to post this would be to python-list@python.org (I've cc'd
that...
|
by: Grant Edwards |
last post by:
Could whoever is gatewaying this group to a mailing list PLEASE
fix whatever problem is causing Usenet posters to receive
bounce messages and out-of-office messages from subscribers to
your service?
When I post an article to Usenet _I_DONT_CARE_ if your gateway
has problems mailing that article to somebody. I DON'T WANT TO
BE NOTIFIED that somebody I've never heard of in Poland is out
of his office and that somebody else in Slovakia...
| |
by: Les Paul |
last post by:
I'm trying to design an HTML page that can edit itself. In essence, it's
just like a Wiki page, but my own very simple version. It's a page full
of plain old HTML content, and then at the bottom, there's an "Edit"
link. So the page itself looks something like this:
<HTML><HEAD><TITLE>blah</TITLE></HEAD><BODY>
<!-- TEXT STARTS HERE -->
<H1>Hello World!</H1>
<P>More stuff here...</P>
|
by: bissatch |
last post by:
Hi,
I am currently writing a simple PHP program that uses an XML file to
output rows for a 'Whats New' page. Once written, I will only require
updating the XML file and any pages that use the XML file will get
their row content from there. The rows may look some thing similar to
this:
- Added <a>mailing list</a> functionality to <a>homepage</a>
- Competition winners announced, click <a>here</a>
|
by: sf |
last post by:
Hundsome Money Online
Guaranteed payment month after month
· Work part time or full time as you like
. Make quick good cash working 2 to 3 hours a day
. Work anywhere from home/ office without restrictions
·
Get the Secret Formula Money Making Formula a the links below
|
by: Chris F.A. Johnson |
last post by:
On 2008-07-09, Denis McMahon wrote:
If the left-hand column contains any text, use em rather than
px to size it.
In CSS, less is more. Most problems are caused by specifying too
much rather than too little. The default width of a block
element is 100%; you don't need to specify it.
|
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...
|
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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...
|
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...
|
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...
|
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |