Jump to content

Can anyone figure out what this is using?


itrinium

Recommended Posts

Hi all

 

Sorry that my first post is a question, but still on a learning curve!

 

I have moved a site from Cpanel on Linux to a dedicated Windows 2003 server and everything works fine except I cannot figure out what the site uses to send email.

 

When I try to get the site to send an email I get Warning:

 

mail() [function.mail]: SMTP server response: 501 5.5.4 Invalid Address in D:\Website\classes\Htmlmail.php on line 287

 

I have attached the htmlmail.php file to see if anyone can point me in the right direction.

 

Any help greatly appreciated

 

Thanks

 

Mark

 

 

 

[attachment deleted by admin]

Hi Maq

 

Thanks for your reply, looks like some bedtime reading!

 

The line of code that seems to cause the problem is:

 

mail($to, $subject, $this->mime, 'From: '.$from."\n".implode("\n", $this->headers)."\n".implode("\n", $xtra_headers));

 

Is then anything that can be deemed from this?

 

Thanks

 

Mark

Hi maq

 

Thanks for your time

 

when echoing '$to' as requested, no error appears

 

 

 

That's not was I was implying.  I want to see the output.  Like the example I provided, the error you're receiving could be caused by the way you're passing the contact information to mail().  Also take a look at PFM's suggestion as mine is just a likely guess.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.