Jabbamonkey
10-11-2002, 05:01 PM
Ok, I'm going completely crazy. I have a web form set up to send emails (with attachments). This was working fine until we switched servers.
Well, now something odd is going on and I need to know how to fix it...
I perform the following....
$ok = mail($toaddress, $subject, $email_message2, $headers);
and then run a check...
if($ok)
{
$mailcontent = nl2br($mailcontent);
echo "<font face=verdana size=3><br><b>Message Sent</b><br><br></font>";
echo "<font face=verdana size=2>The following has been sent:<br><br>";
echo $mailcontent."<br>";
} else {
die ("Sorry but the email could not be sent. Please go back and try again!");
}
When I use an email from the website (i.e. if the website is www.domainname.com then I set the $toaddress to something@domainname.com), the form says that $ok does not exist and prints "Sorry but the email could not be sent. Please go back and try again!"
BUT, if I use another email (for example, my own email address, which is not a domainname.com email address), then the form works absolutely fine.
The email isn't down because I can email the other address (something@domainname.com) through inbox just fine - even if it's with attachments or not.
I have no clue what is going on... I'm lost, please help! Is this a server issue? Do I need to contact my web host? Is there something that I need to do?
Jabbamonkey
Well, now something odd is going on and I need to know how to fix it...
I perform the following....
$ok = mail($toaddress, $subject, $email_message2, $headers);
and then run a check...
if($ok)
{
$mailcontent = nl2br($mailcontent);
echo "<font face=verdana size=3><br><b>Message Sent</b><br><br></font>";
echo "<font face=verdana size=2>The following has been sent:<br><br>";
echo $mailcontent."<br>";
} else {
die ("Sorry but the email could not be sent. Please go back and try again!");
}
When I use an email from the website (i.e. if the website is www.domainname.com then I set the $toaddress to something@domainname.com), the form says that $ok does not exist and prints "Sorry but the email could not be sent. Please go back and try again!"
BUT, if I use another email (for example, my own email address, which is not a domainname.com email address), then the form works absolutely fine.
The email isn't down because I can email the other address (something@domainname.com) through inbox just fine - even if it's with attachments or not.
I have no clue what is going on... I'm lost, please help! Is this a server issue? Do I need to contact my web host? Is there something that I need to do?
Jabbamonkey