RE: [PHP-WIN] mail() function

From: Date: Tue, 13 Aug 2002 21:00:12 +0000
Subject: RE: [PHP-WIN] mail() function
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-15238@lists.php.net to get a copy of this message
Yes you can. Check you're getting a valid email address in the variable $retrieveuseremail, try echoing it before the mail() function: echo $retrieveuseremail; mail($retrieveuseremail, "Subject", "Body of email"); Ross > -----Original Message----- > From: Marlene Burckhalter [mailto:mburckhalter@triad.rr.com] > Sent: 13 August 2002 21:27 > To: php-windows@lists.php.net > Subject: [PHP-WIN] mail() function > > > I am very new at this... > > I want to use the mail funtion, but instead of using an actual > e-mail address for the first argument, I want to pass it a > variable that I have assigned to the resulting return of a > function. The fuction ends like this : > > function get_useremail {... > > $query_data = mysql_fetch_row($result); > return $query_data[0]; > } > > I then assigned the function to a variable: > > $retrieveuseremail = get_useremail ($username, $userid); > > WHEN I TRY TO USE $retrieveuseremail AS THE FIRST ARGUMENT IN THE > MAIL FUNCTION, I GET AN ERROR MESSAGE : > Failed to receive in 'C:ThePathToTheDocument' > > CAN I PASS A VARIABLE HERE? > > Marlene > > >

« previous php.windows (#15238) next »