Re: [PHP] imap_mail()

2007-12-31 Thread Richard Lynch
$headers = "From: \"Thomas Le\" <[EMAIL PROTECTED]>\nMailed-by:
whatever\n";

mail('[EMAIL PROTECTED]', 'test', 'test', $headers);

NOTE:
The RFC says use \r\n between headers.
gmail is broken and will puke if you do.
Complaint to gmail, please.

On Sat, December 22, 2007 10:27 pm, Thomas Le wrote:
> How do I structure the $additionalHeaders string so that it is useful?
> Is
> there a specific order the headers have to be in? How do I delimit
> multiple
> headers? I want the from and mailed-by fields to be modified by this
> variable when mailed from the PHP script. I am getting the server name
> of my
> host instead of the domain name of my site. Minor thing because most
> people
> probably dont look at headers, but I want it to be professional
> looking in
> case someone does.
>
> Thank you,
>
> Thomas Le
> "Choose a job you love, and you'll never have to work a day in your
> life." -
> Confucius
>


-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] imap_mail()

2007-12-22 Thread Thomas Le
How do I structure the $additionalHeaders string so that it is useful? Is
there a specific order the headers have to be in? How do I delimit multiple
headers? I want the from and mailed-by fields to be modified by this
variable when mailed from the PHP script. I am getting the server name of my
host instead of the domain name of my site. Minor thing because most people
probably dont look at headers, but I want it to be professional looking in
case someone does.

Thank you,

Thomas Le
"Choose a job you love, and you'll never have to work a day in your life." -
Confucius


[PHP] imap_mail and outgoing mailserver configurations

2005-09-29 Thread Lars Demel

hi,

i have a problem with imap_mail. the mails i always send with this 
function contents in the header field 'from' always the server where php 
is installed. in our system php and the mail server are installed on 
different machines. so i think that might be the problem. but we 
configured in the php.ini the outgoing mailserver (smtp section of course).


Does anybody could help us to fix the problem to use the right outgoing 
mail server???


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] imap_mail problems

2004-12-21 Thread Richard Lynch
Paul Aviles wrote:
> 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.

Most likely, everything is working *FINE* but you are viewing your output
in a BROWSER.

So your BROWSER is interpreting < and > as an HTML tag and *not* showing
you what's between them, because it's a tag the browser doesn't
understand.

Use "View Source" in your browser to verify this as a one-time solution.

In the long run, you should use  tags and http://php.net/htmlentities
to display debugging output.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] imap_mail problems

2004-12-21 Thread abrea
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
[EMAIL PROTECTED]

-Original Message-
From: "Paul Aviles" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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
> 
> 
> 
>  $header = "From: $fullNameField  --fqdn`) . 
> ">";
>  $registrationAddress = "[EMAIL PROTECTED]";
>  $subject = "Registration ($productName)";
>  $message = "
> Full name: $fullNameField
> Title: $titleField
> Company: $companyField
> ";
>  // send email
>   imap_mail($registrationAddress, $subject, $message, $header);
> 
>  
> 
> 
> 
> -- 
> 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
> 


[PHP] imap_mail problems

2004-12-20 Thread Paul Aviles
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

$header = "From: $fullNameField ";
$registrationAddress = "[EMAIL PROTECTED]";
$subject = "Registration ($productName)";
$message = "
Full name: $fullNameField
Title: $titleField
Company: $companyField
";
// send email
 imap_mail($registrationAddress, $subject, $message, $header);

 


--
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