Forum Moderators: coopster

Message Too Old, No Replies

Really need help in $mail

was working for month .. stopped working

         

henry0

11:49 pm on Mar 30, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello
what can be the cause (was fine for a few months)
that script does send an email as well as linking to an update area
then I have been advised that the result (when that scipt is processsed) is a blank page
I tried error_reporting and .htacess... to check for error
but got no error
is there a way I can re write the mail part?

I do not see what can go wrong
the commented part is the reason for the script no showing, if I comment and do not use the mail scrip it works
I need to fix that thing by tomorow, I am on a shoe string!
<<<
<?
//$mail_to="XXX@clarityconnect.com&cc=henry@ZZZZ.com";
//$mail_subject= " NYF - New member added";
//$mail_body= "Hello Administrator a new member has joined- check your database report.\n";

// if (mail ($mail_to, $mail_subject, $mail_body))
echo "<a href=\"http://www.zxzxzxzx.info\app_list\update\form.php\"><b>Proceed to Update and Finalize your Profile</b></a>";

?>
>>>
thanks

Timotheos

12:40 am on Mar 31, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm not sure if this is your problem but your $mail_to assignment looks strange to me. This is how I would do it.

$mail_to="XXX@clarityconnect.com";
$mail_headers="Cc:henry@ZZZZ.com\r\n";
$mail_subject= " NYF - New member added";
$mail_body= "Hello Administrator a new member has joined- check your database report.\n";

if (mail ($mail_to, $mail_subject, $mail_body, $mail_headers))
echo "<a href=\"http://www.zxzxzxzx.info\app_list\update\form.php\"><b>Proceed to Update and Finalize your Profile</b></a>";

henry0

1:21 am on Mar 31, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thank you; but now I still get the link to "update"
but nothing is happening at mail level
at least the page is not blank
and provide the update link

realy strange mail behavior
(I verified the address and sent me some mail, so I know it works)

Timotheos

5:14 pm on Mar 31, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hmmm I can't see anything wrong.

BTW, you could solve the blank page problem:
if (mail ($mail_to, $mail_subject, $mail_body))
echo "<a href=\"http://www.zxzxzxzx.info\app_list\update\form.php\"><b>Proceed to Update and Finalize your Profile</b></a>";
else
echo "Whoops! We can't process your registration right now. Please come back another time.";

henry0

6:07 pm on Mar 31, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



thanks
Thimotheos
I did think about the registration part so that was not a major concern
however my ISP aknowledged that they had a mail glitch while working on adding mail security

as of now all works fine