Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Mail() Function - Warning: Unknown Error


I have been getting the crap beat out of me by the mail function. It just wont send the mail. I have even tried this simple test:

if (mail('myrealaddress@yahoo.com','Getting this to work','what the hell is it going to take?'))

The result -
Warning: Unknown error in c:phpdev5wwwalaskaerrandsindex.php on line 135

And when I say myrealaddress I mean I really used a valid email address. I know that the mail function just isn't working for me and it has to do with something other than my code.




View Complete Forum Thread with Replies

Related Forum Messages:
Warning: Mail() [function.mail]: SMTP Server Response: 501 Syntax Error
When I try this under windows :

mail("User <user@example.com>",$subject, "", $headers);

I get this error :

Warning: mail() [function.mail]: SMTP server response: 501 Syntax error,
parameters in command "RCPT TO:<User <user@example.com>>" unrecognized
or missing in

It seems to add it's own <> characters. If I run the same script under Linux it works fine !?

View Replies !
Unknown Php Error - Warning: Unknown():
mys site displays an error message everytime i perform a certain function however the error message disappears after i refresh the page and doesnt affect but it doenst look very professional. Code:

View Replies !
Mail Function Warning Error
when i use mail functions i am getting this error what to do...

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:Program FilesEasyPHP 2.0b1wwwlavanyamail.php on line 18

Your email has been sent!

View Replies !
Mail() Function - Warning: Server Error
i'm trying to send out emails, only my colligues can receive em' (they can't be sent outside). what cud be the problem? it keeps on giving me "Warning: Server Error".OR maybe it might be because my colligues uses the same mail-server as mine..

been using:
<?php
$email = "lmpofu@fnb.co.za";


$to = "malaya@studentvillage.co.za";
//$headers = "To: Bob <kagiso@po.gov.za>
";
$headers = "From: $email
";
$headers .= "Bcc: kagiso@po.gov.za
";

$result = mail($to, "Hi?", "So do you know this Kagiso guy", $headers);

if ($result) {
echo "Your message has been sent! ";
echo "Return to <a href='home.html'>home</a> page.";

} else {
echo "There was an error!";
}
?>

View Replies !
Please Help With This Error: Warning: Unknown(): A Session Is Active.
I've searched high and low for this on the net but stil haven't found an
answer.

I'm trying to install both postnuke and xoops on a win2k server with php
4.3.3. and mysql installed.

Both applications are loading terribly slow. When the page finally has been
rendered I got the following error:

Warning: Unknown(): A session is active. You cannot change the session
module's ini settings at this time. in Unknown on line 0

Is it a bug in PHP? Has it something to do with the fact that I'm running it
at win2k?

Since I think it has something to do with sessions, I attach a snapshot of
the results for phpinfo()

Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 On On
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 100 100
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path D:programfilesphpsessiondata
D:programfilesphpsessiondata
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid Off Off

View Replies !
Warning: Odbc_connect(): SQL Error: [MySQL][ODBC 3.51 Driver]Unknown
I'm trying to connect to an Access database via a system DNS called PromoDB which has a username of root but no password, and I am currently getting the following error: Quote:

Warning: odbc_connect(): SQL error: [MySQL][ODBC 3.51 Driver]Unknown database 'promodb',SQL state S1T00 in SQLConnect in fileMaintMaster.php

The line of code that generates this error is:

$access = odbc_connect('PromoDB','root','');

View Replies !
Warning: Preg_replace() [function.preg-replace]: Unknown Modifier
Warning: preg_replace() [function.preg-replace]: Unknown modifier 'a' in index.php on line 6

my code as following;


<?php //line 1

$str=' test & me '
$p='^[^a-z]+$'
$r='_'
$str=preg_replace($p, $r, $str); // here is line 6
echo $str;

?>

View Replies !
Unknown Mail Error
I am working on a site and for some reason the mail function keeps returning false for no reason when all the input is correct and should be sending, the script is below. Code:

View Replies !
Mail Problem - Warning: Mail() [function.mail]: SMTP Server Response: 550 Invalid Recipient:
Whenever the recipient's email address includes a hyphen ( - ), I get the following error message...

Warning: mail() [function.mail]: SMTP server response: 550 Invalid recipient:

I should stress that this only seems to occur when the hyphen is in the URL portion of the address, i.e example@perfect-example.com

The current code works along the lines of...

mail ($_POST['email'], 'Email subject is here', $body, $headers);

View Replies !
Fatal Error: Unknown Function: Islogged()
I am trying to setup a shopping cart, but after I installed it, I got this error.

Fatal error: Unknown function: islogged() in /home/mentorlo/public_html/sunshop/global.php on line 2709

Normally I can do troubleshooting on PHP errors, but I have never seen this one before.

View Replies !
Warning: Mail() [function.mail]: SMTP Server Response: 501 5.5.4 Invalid Address
I receive this error:


PHP Warning: mail() [function.mail]: SMTP server response: 501 5.5.4 Invalid Address in D:clientsebiblecommentary.comconcordia-seminary.caconcordia-seminary.ca\_demo
egister.php on line 464

Both of my mail() uses fail, and I'm not sure why. I've followed the same syntax before on this my server and not had a problem.

My code is below: ....

View Replies !
Warning: Mail() [function.mail]: Permission Denied: Headers Injection
I wrote many years ago a small shop application as hobby for a customer. Worked well until a few days. I'm not a php guru and don't understand why I get now this permission problem.

Warning: mail() [function.mail]: Permission denied: headers injection (empty line) in /home/www/edfedca4df03c5ff2685003537a08dd5/web/minishop/mail.php on line
145

mail($this->to, $this->subject, "", $mime); <- LIGNE 145

View Replies !
Warning: Mail() [function.mail]: SMTP Server Response: 550 5.7.1
I'm making e-mailing with php script and i setup mailtraq mailserver this thing is just a lil confusing to me first thing i want to know if i can use apache instead of this as mail server second when i wrote my script with that mail function i received an error this is it :

Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for monalisa20042006@yahoo.com in D:wampwww1stmail.php on line 2

what's that mean if this means that the mail server not configured right...SO third how to use or configure this server to use as my mail server. Code:

View Replies !
Warning: Mail() [function.mail]: Failed To Connect To Mailserver
Why do i keep getting this error:

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:wampwwwproject_upload Code:

View Replies !
Warning: Mail() [function.mail]: SMTP Server Response: 553
my php.ini mail section is setup as follows:

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

then in my php script:
<?php
mail("joecool@hotmail.com", "Testing", "Line 1
Line 2
Line 3", "From: tom@hotmail.com") or die("email error");
?>

i have also run mercury mail but i keep getting this error:

Warning: mail() [function.mail]: SMTP server response: 553 We do not relay non-local mail, sorry. in C:Program Filesxampphtdocsest.php on line 2

on all tutorials that i went, the mail function is written this way what is wrong?

View Replies !
Warning: Ftp_exec() [function.ftp-exec]: SITE EXEC Is An Unknown Extension
This is kind of a part II to a question a posted earlier about exec and shell_exec not working.

I'm trying to use ftp_exec to execute some simple command:

$conn_id = ftp_connect("$server") or die ("Cannot initiate connection to host");
ftp_login($conn_id, "$username", "$userpass") or die("Cannot login");
$command = 'cd..'
if (ftp_exec($conn_id, $command)) {
   echo "$command executed successfully";
} else {
   echo "could not execute $command";
}
ftp_close($conn_id);


I'm getting the following error:

Warning: ftp_exec() [function.ftp-exec]: SITE EXEC is an unknown extension in /home/urieilam/public_html/work/video/test1.1.php on line 21
could not execute cd..

Have tried other commands as well, get the same. Could this be a security issue or something to do with p Safe Mode? I don't know much about commands, shell, etc..

View Replies !
Warning: Mysql_connect() [function.mysql-connect]: Unknown MySQL Server Host 'sql1bravehostcom'
Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host 'sql1bravehostcom' (1) in /misc/13/000/126/295/2/user/web/jeppers90.com/includes/fiction_mysql.inc.php on line 11
Cannot connect to server

this message is what i get when i try to upload it to a webserver..things i have done set up database put in correct information from the database in to my php form. what ever i try i can't seem to set it up .

View Replies !
Warning: Mail(): Bad Parameters To Mail() Function, Mail Not Sent. In /
I have a website with a contact form and I tested to see if the form would actually send the submitted info to my email but I get this error...

Warning: mail(): Bad parameters to mail() function, mail not sent. in /home/content/g/o/l/goldenhills/html/email_us.php on line 62

Here's the php code:

View Replies !
Warning: Mail() Expects... Error
I got this error trying to set up a form... Does the mail() option only allow for 5 parameters to be sent? Warning: mail() expects at most 5 parameters, 9 given

View Replies !
Warning: Mail() [function.mail]: Failed To Connect To Mailserver At "localhost" Port 25
Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in send.php on line 9

Warning: Cannot modify header information - headers already sent by (output started at send.php:9) in send.php on line 10

why this warning and error coming when i am using this cording help me to solve this problem.

View Replies !
Warning: Mail() [function.mail]:
I am trying to send an email through php using the mail() function but getting the following error:

Warning: mail() [function.mail]: SMTP server response: my-server-name-here [my-ip-address-here] is currently not 550-permitted to relay through this server. Perhaps you have not logged into 550-the pop/imap server in the last 30 minutes or do not have SMTP 550 Authentication turned on in your email client.My PHP Code is:

<?php
$to = 'nobody@example.com'
$subject = 'the subject'
$message = 'hello'
$headers = 'From: webmaster@example.com' . "" .
'Reply-To: webmaster@example.com' . "" .
'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);
?>

FYI: I am running this code on windows 2003 server and i can send email using Horde. What I am guessing is I need to add smtp authentication in my php code, so If you can tell me what is the syntax that can help me. how to overcome this problem?

View Replies !
Warning: Mail() [function.mail]: Failed To Connect To Mailserver At "localhost"
Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in D:SitescsitechsorderEmail.php on line 97

View Replies !
Use The Mail() Function: Warning: Mail() [function.mail]:
I am trying to use the mail() function. I've got my php.ini file configured to use my current smtp host (Verizon) and I get this error:

Warning: mail() [function.mail]: Failed to connect to mailserver at "outgoing.verizon.com" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:www est.php on line 39

So I'm asking two things.
1) How can I make this work with out using Verizon's SMTP server? The server I am using for this website is a Windows XP machine with Apache as the webserver.
2) Once I have an alternative smtp server option, what is it I need to do to set it up properly?

I need an alternative smtp server because this machine is just a development machine at my house, while the file site is in a colo and isn't connect to verizion or anyone else with a smtp server.

View Replies !
Fatal Error: Main() [function.main]: Security Alert: Include Filename Is An URL In Unknown On Line 0
I just installed CRELoaded (oscommerce fork) on my server and all work
fine except that I have a little message at the bottom of the main page
:

Fatal error: main() [function.main]: Security alert: Include filename
is an URL in Unknown on line 0

I made some research and all I have found is to be sure those value are
put in the php.ini file

safe_mode = Off
allow_url_fopen = On

I'm running on:

Apache2

php -ver
PHP 4.4.0-4 (cli) (built: Oct 20 2005 16:42:12)

How may I correct this bug.

View Replies !
Warning: Unknown():
Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0

What does it mean? how can I fix it?

View Replies !
Warning: Mail() [function.mail]: "sendmail_from" Not Set In Php.ini
I'm getting this error "Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in D:Wildwwwenvirotechslc.comsurvey .....

View Replies !
Warning: Preg_match(): Unknown Modifier
PHP Code:

foreach ($text as $key){ //line 48
$matched = preg_match('.*(pictureit(.*))+', $text[key($text)]); //line 49
print_r ($matched); //line 50
next($text); //line 51
} // line 52

I know that $text[key($text)] is the same thing as $key in this case. Code:

Warning: preg_match(): Unknown modifier '*' in C:pearbcode.php on line 49

i was reading about backslacshes and spaces cant be in my string or something. this is my first time with delimters, so im try to figure out why this isnt working cause i did a tutorial , bahhh .

View Replies !
Warning: Mail() [function.mail]: Failed To Connect To Mailserver At "localhost" Port 25, Verify Your "SMTP" And "smtp_port" Setting In Php.ini
PHP Code:

$con = "hi monday";
mail("mymail@lala.com","test imap.dll",$con,"From: [email]other@mail.com[/email]");

and the mod_imap is loaded. but the browser show:

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in D:Apache2htdocssendmail.php on line 2

View Replies !
Warning: Mail() [function.mail]: "sendmail_from" Not Set In Php.ini Or Custom "From:" Header Missing
I created a form to send feedback and i get the following error, what does that mean and how to fix it.

Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in c:wampwwwphp websitephp and mysqlpractice fileschapter 4 - string manipulation and regular expressionsprocessfeedback.php on line 11

The code is as follows:
<?
$name=$_POST['name'];
$email=$_POST['email'];
$feedback=$_POST['mailcontent'];
$toaddress="viraj_hoober@yahoo.com";
$subject="Feedback from web site";
$mailcontent="Customer name: " . $name . "
"
. "Customer email: " . $email . "
"
. "Customer comments:
" . $feedback . "
";
$fromaddress="viraj2401@yahoo.com";
mail($toaddress, $subject, $mailcontent, $fromaddress);
?>

View Replies !
Preg_replace Regex -Warning: Unknown Modifier
Code: $info[0] = "/apple/farm/";
$the_path = "/apple/";
$cat_rep = preg_replace("/^$the_path/", "", $info[0]);

echo $cat_rep;

Im trying to get $cat_rep to contain "farm/", instead I get this error:
Warning: Unknown modifier 'a' in

View Replies !
PHP Warning:  Module 'gd' Already Loaded In Unknown On Line 0
when ever i am running pear i am getting this warning message : ----

PHP Warning:  Module 'gd' already loaded in Unknown on line 0

Warning:  Module 'gd' already loaded in Unknown on line 0

PHP Warning:  PHP Startup: pdf: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP compiled with module API=20050922, debug=0, thread-safety=0

These options need to match

View Replies !
Warning: Unknown(): Your Script Possibly Relies On A Session
I'm getting a strange error in one of my programs:

Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0

Funny thing is I'm not using any globals at all in my script, but I am using $_SESSION. I even did grep GLOBAL *.php in my directory in case it's in one of the functions I included and nothin'. Strangely the error is output at the very end of the code (after a simple print statement which is before the closing php tag). I don't see the point in messing with register_globals when I don't use globals so am hoping for another solution. Any ideas?

View Replies !
Warning : Unknown(): Unable To Load Dynamic Library
I install php 4.3.1 on Windows XP (Use Apache 2.0.44) I open c:windowsphp.ini and uncomment line extension=php_gd2.dll When I restart Apache It has error pop up every time I open php file in browser like this:

Warning : Unknown(): Unable to load dynamic library './php_gd2.dll' - The specified module could not be found.

View Replies !
Warning: Unknown: 1 Result Set(s) Not Freed. Use Mysql_free_result To Free ...
Anyone seen this error before?

Warning: Unknown: 1 result set(s) not freed. Use mysql_free_result to free result sets which were requested using mysql_query() in Unknown on line 0

Not certain how / where it would find another result set. Been reading up on the mysql_free_result command; when/where would it be utilized? Here is my scenario. I have a dynamic form that stores, draws data, edits records and emails data. There are two main sections of the site: Submission and Revision.

I assume it's best to free results when a user logs out of their account; while logged, the user can proceed to make revisions. I'm afraid they will run into the same problem I'm experiencing now. Can the results be freed without causing the user to lose their work?

View Replies !
PHP Warning: Unknown(): Unable To Load Dynamic Library
I'm running a dedicated server with windows 2003 server with IIS, anyway recently a strange message started to pop out in my face each time I tried to access a page have query to the database.

---------------
PHP Warning: Unknown(): Unable to load dynamic library 'E:Program FilesSWsoftPleskAdditionalPhpextensionsphp_curl.dll' - Access is denied. in Unknown on line 0
-------------------

View Replies !
Warning: (snip Query) [function.require]: Failed To Open Stream: No Error In C:wwwdocrootphpMyAdmin-2.8.0.2
I got what I needed to do done, but I came across this error using phpMyAdmin and I'm curious if anyone has seen anything like this before or has any guess as to what it's supposed to mean:

Warning: (snip query) [function.require]: failed to open stream: No error in C:wwwdocrootphpMyAdmin-2.8.0.2 bl_replace.php on line 275.

View Replies !
Pear - PHP Warning: Module 'oci8' Already Loaded In Unknown On Line 0
I always get this message. No matter what package

[as411161@spgs php-5.2.0]$ pear install Date
PHP Warning: Module 'oci8' already loaded in Unknown on line 0
No releases available for package "pear.php.net/Date"
Cannot initialize 'Date', invalid or missing package file
Package "Date" is not valid, install failed...

View Replies !
PHP Warning: Unknown(): Unable To Load Dynamic Library Php_mhash.dll
I just downloaded PHP-4.3.3 for win32 and got the extensions folder and
dropped it intot he root of the PHP directory and set it's path in the
PHP.ini:

extension_dir = "c:/php/extensions/"

But I am still getting the error that it can't find the php_mhash.dll though
I can see that it is indeed in the folder....

View Replies !
Warning: Unknown(): Failed To Write Session Data (files)
When I run this:

<?PHP
session_start();
echo session_id();
?>

It give me the right ouput but it also gives me a huge error message:

Warning: session_start():
open(/tmpsess_c6782a171d1c85b13e9b9d3ff4c4a88a, O_RDWR) failed: No
such file or directory (2) in C:Program FilesApache
GroupApache2htdocs10.1.php on line 2

Warning: session_start(): Cannot send session cookie - headers already
sent by (output started at C:Program FilesApache
GroupApache2htdocs10.1.php:2) in C:Program FilesApache
GroupApache2htdocs10.1.php on line 2

Warning: session_start(): Cannot send session cache limiter - headers
already sent (output started at C:Program FilesApache
GroupApache2htdocs10.1.php:2) in C:Program FilesApache
GroupApache2htdocs10.1.php on line 2
c6782a171d1c85b13e9b9d3ff4c4a88a
Warning: Unknown(): open(/tmpsess_c6782a171d1c85b13e9b9d3ff4c4a88a,
O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Unknown(): Failed to write session data (files). Please verify
that the current setting of session.save_path is correct (/tmp) in
Unknown on line 0

What am I doing wrong?

View Replies !
Mail() Error - Use The Mail() Function
I am getting this message when I try to use the mail() function. Please let me know what it means and how I fix it.

Warning: mail(): SMTP server response: 501 Invalid Address in C:AccountsjsniggitwwwRootincprayer.php on line 105

Line 105 = mail($mail,$subject,$message,$header);

I dont get the invalid address part cause $mail is just my email ....

View Replies !
Fatal Error: Call To A Member Function On A Non-object - Warning: Main(): Failed Opening 'languages/'
I am getting this error

Warning: main(languages/): failed to open stream: No such file or directory in /home/lunar/domains/lunarbattles.com/public_html/sched_xenobe.php on line 17

Warning: main(): Failed opening 'languages/' for inclusion (include_path='.:/usr/local/lib/php') in /home/lunar/domains/lunarbattles.com/public_html/sched_xenobe.php on line 17

Fatal error: Call to a member function on a non-object in /home/lunar/domains/lunarbattles.com/public_html/sched_xenobe.php on line 25

I can fix the languages thing, but the fatal error below is the file with line 25 marked, can somone give me a clue what its saying or look for some inproper usage or somthing. Code:

View Replies !
Warning: Unknown Persistent List Entry Type In Module Shutdown (11)
I am getting this wanrning:

Warning: Unknown persistent list entry type in module shutdown (11) in Unknown on line 0

I have never seen it before or know what it means and line 0 is hard to find especially when no document is specified Everything works as it should at this point just getting that warning on my personal apache server any ideas?

View Replies !
Warning: Unknown: Your Script Possibly Relies On A Session Side-effect
I have two sites hosted in a rather old server (as it seems), and I am getting these kind of messages:

Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0

The problem is the admin area is not working. I am using the pass but nothing happens.
Someone told me that there is a problem with the register_globals and safe_mode.
I dont know in what file in file directory should I check and what to fix.

View Replies !
Warning: Unknown(): Your Script Possibly Relies On A Session Side-effect
I am getting this warning on my localhost.

--------------
Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively
--------------

I know that it is very straightforward, including on how to resolve it. However, my question is, what if our webhost would not want to change session.bug_compat_42 or session.bug_compat_warn to off? Any workaround?

View Replies !
Warning: Unknown(): Your Script Possibly Relies On A Session Side-effect ..
Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0.

View Replies !
Mail() Function Error
I have setup Apache and PHP on my local machine as a testing server. So
to test the mail() function i have set the SMTP_host thing in php.ini
to what i think is the hotmail SMTP server.

Whenever i try to use the mail() function it comes back with this
warning:

Warning: mail() [function.mail]: Failed to connect to mailserver at
"http://services.msn.com/svcs/hotmail/httpmail.asp" port 25, verify
your "SMTP" and "smtp_port" setting in php.ini or use ini_set()

I got that SMTP address for hotmail from Outlook so i am sure it should
be working.

What am i doing wrong?

View Replies !
Mail() Function Getting 553 Error
I'm developing my web site and running it on my local machne during development. In my php.ini file I've set the SMTP to point to the smtp server out on the actual domain that will eventually host the site and set the sendmail_from to be one of my email accounts, already set up, on that domain.

When I invoke mail() from my PHP code I receive an error message:

SMTP server response: 553 Sorry, that domain isn't in my list of allowed rcpthosts
I'm trying to send the email to MyUsername@aol.com, so it's unlikely that the problem is actually a disallowed rcpthost. Reading through posts elsewhere on the Internt I conclude that the real problem is that I'm not providing logon information (username and password) to the smtp server. (Via Outlook Express I can indeed send emails out through that smpt server, but Outlook Express allows me to specify the username and password for my domain).

But the PHP mail() function does not appear to have any way to specify username and password. What do I need to do in order to tell the smtp server what my username and password is, so I can successfully use PHP mail()?

View Replies !
Error With Mail Function
I am using the mail function for a news letter. I am in the process of testing it right now. So far it works but I get this one error even though the emails are being sent correctly. here is the error: Warning: mail() [function.mail]: SMTP server response: 503 No recipient(s). in C:wampwwwACT ewsletterprocess.php on line 70 . here is my code: PHP Code:

while($c <= 2) {
        //name email is sent
        $nameTo = "Antoni Sousa";
        
        //email body
        $emailBody = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>.............

View Replies !
Mail Function Error
i'm making a registration form which emails the information to a sales rep so that the details can be checked, the person can be contacted then the details are entered into the system so sounds simple enough but i keep getting this error and i dont think its the PHP rather the PHP configurations,

i am using EasyPHP not actually running of a proper web server more like a 'virtual' web server so i was wondering if any one could help

Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in c:program fileseasyphp1-8wwweoonline ordering test
egistration.php on line 87

View Replies !
Warning: Unknown(): Your Script Possibly Relies On A Session Side-effect Which Existed Until PHP 4.2.3.
I am getting the following warning at the bottom of one of my script outputs:

"Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0"

Can anyone tell me why I am getting this warning? How can I change my code to get rid of it? Is it caused by $_SESSION['var'] = $_POST['var']; statements?

View Replies !
Warning: Unknown(): Your Script Possibly Relies On A Session Side-effect Which Existed Until PHP 4.2.3.
I have been writing a login script for a site, upon execution of the
code I recieved this error:

Warning: Unknown(): Your script possibly relies on a session
side-effect which existed until PHP 4.2.3. Please be advised that the
session extension does not consider global variables as a source of
data, unless register_globals is enabled. You can disable

----------------------------------------------------

not quite fully understanding the error message I wrote a simpler
session script (below) I get a parse error on the session_register
line. Assuming the code is correct I take it the session isn't being
initilised correctly? if not how can I get around this issue?

<?php

session_start();
echo 'session started'

$username = 'paul'

session_register('username');
echo '"paul" has been stored in the session.'

?>

View Replies !
Warning: Unknown: Your Script Possibly Relies On A Session Side-effect Which Existed Until PHP 4.2.3.
some time in web page i can see this error:

Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0 What's wrong?

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved