473,321 Members | 1,877 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

PHP Mail() function, getting 553 error

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:

Expand|Select|Wrap|Line Numbers
  1. SMTP server response: 553 Sorry, that domain isn't in my list of allowed rcpthosts
  2.  
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() ?
Jun 14 '07 #1
7 1898
Motoma
3,237 Expert 2GB
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().
Jun 14 '07 #2
Oh boy. Yet another package to download, install, learn, get confused by, and spend hours getting working right.

Thanks, :)
Jun 14 '07 #3
Motoma
3,237 Expert 2GB
Good luck. Come back if you have any other questions.
Jun 14 '07 #4
pbmods
5,821 Expert 4TB
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....]
Jun 14 '07 #5
Motoma
3,237 Expert 2GB
Hey, computers are easier to understand than people!
Jun 14 '07 #6
Purple
404 Expert 256MB
and they generally do what they are asked - and there in lies the issue....
Jun 15 '07 #7
pbmods
5,821 Expert 4TB
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.
Jun 15 '07 #8

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

Similar topics

3
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";...
1
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...
3
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...
6
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...
1
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...
5
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...
3
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...
0
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,...
13
Nert
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...
7
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.