|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
mail function prob (from)
Hi guys,
In this statement, it works and i can see my name and email shown in the email i received code: $from="From: Alice <alice@yahoo.com>"; but when i change this and pass the argument $fname = alice and $email = alice@yahoo.com, it doesn't show anything already except in the contents of the email.. Did i miss something or i can not put variables in the from when using mail function ? Please advise. code: $from="From: $fname <$email>"; p.s: in the email, it just show from Apache. |
|
#2
|
|||
|
|||
|
when i added \"$fname\", it works, but when i added additional code
$from="cc:alice2@yahoo.com\n"; it does cc to that email add but the sender info turns back to Apache rather than the input i inserted.. please advise. |
|
#3
|
||||
|
||||
|
You're setting your from variable to a cc address. Try this:
PHP Code:
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > mail function prob (from) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|