Re: problem with Mail function
| From: | sunaram patir | Date: | Mon, 06 Feb 2006 06:02:57 +0000 |
| Subject: | Re: problem with Mail function | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-229913@lists.php.net to get a copy of this message | ||
Dude,
Do not use $to = "$email"; instead $to=$email;
But i didn't even know what is your problem!
On 2/6/06, sub@drewpydraws.com <sub@drewpydraws.com> wrote:
> This may be a bit to obvious, but I miss little stuff all the time.
>
> You wouldn't happen to have the if(mail(...)) in some form of loop would
> you?
>
> or perhaps $to is getting assigned the e-mail address like
> "whoever@domain.com whoever@domain.com" can you check the value of $email
> before you assign it?
>
>
>
> ~Drew
> www.drewpydraws.com
>
>
> ----- Original Message -----
> From: "Tariq Dalvi" <daytariq@hotmail.com>
> To: <php-general@lists.php.net>
> Sent: Sunday, February 05, 2006 6:55 PM
> Subject: [PHP] problem with Mail function
>
>
> > Hello everyone,
> >
> > I m using php mail function it dose everyting fine besides it prints
> > message twise in the email body can someone please have a look
> > what i m doing wrong the code is as follows :
> >
> > $to = "$email";
> > $subject = "someting goes here \n\n";
> > $headers = "From: admin@somewhere.com\n" .
> > "X-Mailer: Mailserver at somewhere.com\n" .
> > "Date: $date\n" .
> > "MIME-Version: 1.0\n" .
> > "Content-Type: text/plain; charset=ISO-8859-1\n" ;
> >
> > message <<<EOF
> > ...................
> > .......................
> > .........................
> > .....
> > ...
> > EOF;
> >
> > if (mail($to,$subject,$message,$headers)){
> >
> > $say = "<p />E Mail sent successfully to $email. <br>";
> > }
> > else{
> >
> > $say = "\n\n<p />Ohoho! Sending failed Please inform to Webmaster.
> > <br>";
> >
> > }
> >
> > I shall highly appreciate any help
> >
> > Thanks
> > Tariq
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
> >
> >
> > --
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.1.375 / Virus Database: 267.15.2/251 - Release Date: 2/4/2006
> >
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>