Message: mail() [function.mail]: Bad parameters to mail() function, mail not sent - Can You Help? |
[eluser]WanWizard[/eluser]
clear() resets the message attributes, not the config.
[eluser]ngatcharius[/eluser]
When i move $config it's work but i make some observation!!! if i have variable like $name in my email messages i receave a PHP error but if i send a simple message without variable it's work how can i resolve this problem?? exemple : Code: $this->email->message('Hi '.$name.' Here is the info you requested.'); // don't work Code: $this->email->message('Hello CI user, ha ha ha ha ha'); //work
[eluser]ngatcharius[/eluser]
Went i simple use php code i use this Code: $headers = 'MIME-Version: 1.0' . "\r\n";
[eluser]WanWizard[/eluser]
You don't need that, the email library constructs the correct headers based on the config you provide. And if you don't tell us what the PHP error is, we can't really help you...
[eluser]ngatcharius[/eluser]
CI just send me this error [code] A PHP Error was encountered Severity: Warning Message: mail(): Bad parameters to mail() function, mail not sent. Filename: libraries/Email.php Line Number: 1519 [code]
[eluser]WanWizard[/eluser]
When you include the name, and it doesn't happen when you use "CI user"? So what's in $name then?
[eluser]Omega Priyankara[/eluser]
Code: $config ['send_multipart'] = false; Work for me, seems like godaddy hosting not allowing to send html & text mail together.
[eluser]ngatcharius[/eluser]
me too i will try and reply if it's works thank you for your post |
Welcome Guest, Not a member yet? Register Sign In |