I would like to know how to send my $rnd_id variable in the mail function. This is what I have so far:
mail("$payer_email","Subscription","Thank you for subscribing . Please keep this email in your records. Your password is"," '$rnd_id'");
What is it? Where are your trying to put it? Right now your trying sending it as the headers. You shouldn't use double quotes on the variables in functions.
Originally posted by gabemcmillan I would like to know how to send my $rnd_id variable in the mail function. This is what I have so far: mail("$payer_email","Subscription","Thank you for subscribing . Please keep this email in your records. Your password is"," '$rnd_id'");
mail("$payer_email", "Subscription","Thank you for subscribing . Please keep this email in your records. Your password is $rnd_id", "From: YourSite <youremailaddress@yourdomain.com>");