Link to home
Create AccountLog in
Avatar of willsavage

asked on

mail function issues - plesk php

Hello, firstly, I am not a wiz at this so please keep things simple and apologies if even the question makes no sense! Here goes...

I have a site running on a virtual dedicated server running windows server 2003 and plesk.

The site is in php and has a rostering system. When a logged in user whose email address is a company one (same domain name as the website) it returns this error...

Warning: mail() [function.mail]: SMTP server response: 550 Requested action not taken: mailbox unavailable or not local in C:\Inetpub\vhosts\\httpdocs\objects\class.Mail.php on line 47

Any advice on where I should be looking to fix this?

Finally, the whole process is confused slightly by the fact that the v-ded server is with goDaddy and all email is handled by server101.

Any advise on this would be great.


Avatar of ritetek

Yeah, this actually isn't JUST a php issue, it's just a hosting issue in general.  I'm not sure if this would work since I'm not a hosting expert, but are you using a "from" header?  If so, you might try changing it to something OTHER than an email at your domain, maybe only if to address is one that IS at your domain.  Again, I'm not sure what you are doing at the moment with the actual code, so I'm not sure if that would even work.  
Hello, try this:

function sendActivationCode($email, $authorisationCode)
		$to = $email;
		$subject = "Registracija na Callidus Elearning System - Ivan `vogor";
		$txt = 
		Dobro doali na sustav za elektroni
ko u
enje Callidus!
		Da bi dovraili registraciju na stranice potvrdite klikom na slijedei link:$authorisationCode
an pozdrav,
		Ivan `vogor
		$headers = 'From: <>' . "\r\n";
		if(mail($to, $subject, $txt, $headers)) 
			return true;
			return false;

Open in new window

Avatar of willsavage


Thanks for the advise. I have an update. The chaps at goDaddy support think it is because my DNS is setup incorrectly so it is looking on my server for email addresses when I am actually managing mail from my domain registrar.

I will try this DNS change and if it is a no go I'll try these suggested solutions.

Thanks a lot

Avatar of orkinoks
Flag of Türkiye image

Link to home
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
I think that will be it, any suggestions where I will be able to find the IP for my mailserver? I am using server101 who don't seem to give you direct access to anything! Is it the ones listed here ending in 213 and 210?


from the links you have sent, it looks like that.
Try one of those Ip addresses, don't forget to disable the mail server of domain in plesk, if the IP's don't work you better open a ticket to your mail service provider for MX IP's.

good luck.