I'm developing my web site and running it on my local machne during development. In my php.ini file I've set the SMTP to point to the smtp server out on the actual domain that will eventually host the site and set the sendmail_from to be one of my email accounts, already set up, on that domain.
When I invoke mail() from my PHP code I receive an error message: -
SMTP server response: 553 Sorry, that domain isn't in my list of allowed rcpthosts
-
I'm trying to send the email to MyUsername@aol. com, so it's unlikely that the problem is actually a disallowed rcpthost. Reading through posts elsewhere on the Internt I conclude that the real problem is that I'm not providing logon information (username and password) to the smtp server. (Via Outlook Express I can indeed send emails out through that smpt server, but Outlook Express allows me to specify the username and password for my domain).
But the PHP mail() function does not appear to have any way to specify username and password. What do I need to do in order to tell the smtp server what my username and password is, so I can successfully use PHP mail() ?
7 1915 Motoma 3,237
Recognized Expert Specialist
PHP's built in mail() function does not allow SMTP Authentication. You could try the PEAR Mail package, or try writing your own with fsockopen().
Oh boy. Yet another package to download, install, learn, get confused by, and spend hours getting working right.
Thanks, :)
Motoma 3,237
Recognized Expert Specialist
Good luck. Come back if you have any other questions.
pbmods 5,821
Recognized Expert Expert
Oh boy. Yet another package to download, install, learn, get confused by, and spend hours getting working right.
Yes... computer programming. Wonderful, isn't it? :)
[EDIT: Computers in general, come to think of it....]
Motoma 3,237
Recognized Expert Specialist
Hey, computers are easier to understand than people!
Purple 404
Recognized Expert Contributor
and they generally do what they are asked - and there in lies the issue....
pbmods 5,821
Recognized Expert Expert
and they generally do what they are asked - and there in lies the issue....
My sig (which currently doesn't show up in the forums):
The exciting part of computer programming is getting a machine that does exactly what you tell it to do... to do what you want it to do.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: James M. Luongo |
last post by:
Hello,
I am having problems with the mail() function, but I don't know what the
problems are.
Here is a snippet of code:
$to = "jmluongo@comcast.net";
$from = "Gallery@gafok.com";
$subject = "Gallery Comment";
|
by: Karuna |
last post by:
Hi everybody,
I have been trying to write a simple mail script using PHP and apache
on Windows XP. Eventhough the script is saying that the mail is
successfully sent, I am unable get it in my mailbox(I have given my
mail address in $to). I am using the mail() function and I have made
the following changes in php.ini
; For Win32 only.
SMTP = localhost
|
by: vishal |
last post by:
i am getting following error.
Warning: mail() : Failed to connect to mailserver at
"smtp.gmail.com" port 465, verify your "SMTP" and "smtp_port" setting
in php.ini or use ini_set() in D:\LUGUBA\root\site\temp5.php on line 8
i have done the following
(1) in php.ini file
|
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 will include the code I
originally used. I understand I should switch from CDONTS to CDO mail but
after several sttempts I am finding a very hard time getting the new CDO mail
to work properly. Any assistance with this would be greatly...
|
by: tencip |
last post by:
Hey everyone,
We've got FreeBSD 5.3, with Sendmail running. All we want to do is to
get sendmail to send emails to another server for actual outbound
email. We've got a very basic php script which utilizes the mail()
function, but for some reason, sendmail is never getting the command
from PHP.
So, we can successfully send email using sendmail from the command
prompt, but when it comes to using the PHP mail() function, nothing
| |
by: bilal |
last post by:
I have installed PHP , Apache on WinXP . I am using php mail function but i am getting error i also have installed Argosoft mail server and it is running properly using port 25 and php.ini is also configured properly. But i m getting error
Warning: mail() : Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in D:\Program Files\Apache Group\Apache2\htdocs\email.php...
|
by: Ibrahim. |
last post by:
Hello,
Im getting the following error when mail is sent from ASP.NET 2.0 website.
CDO.Messaging componenet is used for sending mail.
"
The message was not able to be transmitted to the SMTP server. The
forwarding error code is 0x800ccc67. The response from the server is as
follows. 421 service not available,
closing transmission channel
|
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...
|
by: Nert |
last post by:
hello every one, i need help..
how can i use the mail() funtion in php? when ever i execute the mail function i continuesly receive this error message:
what do i need to do in order for me to connect with my localhost mailserver?
can anyone help me with this?
thanks in advance..(^_^)
|
by: mukeshrasm |
last post by:
Hi I am no able to send mail and it is giving this error
Warning: mail(): SMTP server response: 530 5.7.3 Client was not authenticated in c:\inetpub\wwwroot\eshop\includes\classes\email.php on line 522
and the code is:
<?php
/*
$Id: email.php,v 1.12 2003/06/17 17:29:44 dgw_ Exp $
|
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: 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: 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();...
|
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: 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: 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...
| | |