Re: imap_mail problems
| From: | abrea | Date: | Tue, 21 Dec 2004 18:35:35 +0000 |
| Subject: | Re: imap_mail problems | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-204854@lists.php.net to get a copy of this message | ||
May I suggest that you use PHP's mail() function and avoid the problem
altogether.
The format is much the same as the one you are using.
Alberto Brea
estudio_brea@yahoo.com
-----Original Message-----
From: "Paul Aviles" <paul.aviles@palei.com>
To: <php-general@lists.php.net>
Date: Mon, 20 Dec 2004 20:00:22 -0500
Subject: [PHP] imap_mail problems
> Hello, I am having problems with this code below. The system is a FC1
> server
> and it is supposed to send an email collecting some information of a
> computer. The problem I am having is with the "<" and ">" characters.
> When
> the $header variable is created, it does not work if you add the < and
> >
> characters. For some reason makes the whole string like null. Has
> anyone
> seen this behaviour? If I try manually to send an email it does work
> and php
> does have imap support on it.
>
> Thanks
>
> -pa
>
> <snip>
>
> $header = "From: $fullNameField <admin@" . trim(`/bin/hostname
> --fqdn`) .
> ">";
> $registrationAddress = "myname@mydomain.com";
> $subject = "Registration ($productName)";
> $message = "
> Full name: $fullNameField
> Title: $titleField
> Company: $companyField
> ";
> // send email
> imap_mail($registrationAddress, $subject, $message, $header);
>
> <snip>
>
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>