Thank you all, but how can I send the message from the [EMAIL PROTECTED] email
adress, but in the header of the message to put [EMAIL PROTECTED]

Something like giving the following commands to an SMTP server:

telnet mail.server.com 25

helo mail.server.com

mail from:[EMAIL PROTECTED]
rcpt to: [EMAIL PROTECTED]

data
From: Two<[EMAIL PROTECTED]>
To: ZZZ<[EMAIL PROTECTED]>
Subject: subject

test body
.

So the message is sent from the [EMAIL PROTECTED] email address and goes to
[EMAIL PROTECTED]
But when the message is received, it appears with the data from the body of
the message (after the "data" command), meaning from [EMAIL PROTECTED] to
[EMAIL PROTECTED]


And another question is why it appears the following error message (under
Windows 2000):
PHP Warning:  mail(): "sendmail_from" not set in php.ini or custom "From:"
header missing in...

I don't want to set that in php.ini, but I have put "From: [EMAIL PROTECTED]"
as the fourth parameter of the mail() function, however, it still gives me
that error.

I am running a local smtp server.

Thank you much.

Teddy

----- Original Message -----
From: "M. Sokolewicz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, August 22, 2004 1:31 PM
Subject: [PHP] Re: Sending email


> Octavian Rasnita wrote:
>
> > Hi all,
> >
> > I want to send a test message with the following specifications:
> >
> > 1. The message is sent by [EMAIL PROTECTED]
> >
> > 2. The message is sent to the following recipients: [EMAIL PROTECTED],
> > [EMAIL PROTECTED]
> >
> > 3. The message has the subject: [EMAIL PROTECTED]
> >
> > 4. The message has the following header:
> > From: Me<[EMAIL PROTECTED]
> > To: Multiple recipients<recipients.info>
> >
> > 5. The body of the message is:
> >
> > Test
> >
> > Can I use mail() function for this?
> >
> > Thank you.
> >
> > Teddy
> sure you can :)
>
> just do
> mail('[EMAIL PROTECTED], [EMAIL PROTECTED]', '[EMAIL PROTECTED]',
> 'test', 'From: Me <[EMAIL PROTECTED]>');
>
> more info:
> (http://www.php.net/manual/en/function.mail.php)
>
> --

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

Reply via email to