Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.