Welcome Guest, Not a member yet? Register   Sign In
Message: mail() [function.mail]: Bad parameters to mail() function, mail not sent - Can You Help?
#11

[eluser]WanWizard[/eluser]
clear() resets the message attributes, not the config.
#12

[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
#13

[eluser]ngatcharius[/eluser]
Went i simple use php code i use this
Code:
$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: ngatcahrius <[email protected]>' . "\r\n";
how can i implement it in CI ?
#14

[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...
#15

[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]
#16

[eluser]WanWizard[/eluser]
When you include the name, and it doesn't happen when you use "CI user"? So what's in $name then?
#17

[eluser]Omega Priyankara[/eluser]
Code:
$config ['send_multipart'] = false;

Work for me, seems like godaddy hosting not allowing to send html & text mail together.
#18

[eluser]ngatcharius[/eluser]
me too i will try and reply if it's works thank you for your post




Theme © iAndrew 2016 - Forum software by © MyBB