Page 1 of 1

setting sendmail_from with ini_set

Posted: Mon Apr 18, 2005 2:17 am
by pelegk2
i am trying to do :

Code: Select all

ini_set("sendmail_from","sdfgsdfgsdfg <peleg@mymailmail.com>");

but i recove the error :
Warning: mail(): SMTP server response: 501 Syntax error, parameters in command "MAIL FROM:<sdfgsdfgsdfg <peleg@mymailmail.com>>" unrecognized or missing in C:\Program Files\Apache Group\Apache2\htdocs\test\lhereg.php on line


anuy oidea why?
thnaks i nadvance
peleg

Posted: Mon Apr 18, 2005 3:04 am
by timvw
makes me think you have a little typo

MAIL FROM:<sdfgsdfgsdfg <peleg@mymailmail.com>>

mind the double >>


Code: Select all

ini_set('sendmail_from', 'peleg@mymailmail.com');

your solution i know

Posted: Mon Apr 18, 2005 3:09 am
by pelegk2
but i dont wwant that i want to add the user full name~!!!
and about the >> i dont know from where that have come -maybe that the problem!

Posted: Mon Apr 18, 2005 7:19 am
by feyd
you can't do the name there.. it has to be done in the headers.

so u mean that

Posted: Mon Apr 18, 2005 7:28 am
by pelegk2
only this can be done :

Code: Select all

ini_set(&quote;sendmail_from&quote;,&quote;peleg@mymailmail.com&quote;);