Email Attachment Problem |
[eluser]rogerwaldrup[/eluser]
There's some problem in coding.. check it out
[eluser]Synchy[/eluser]
I've changed the coding to 'iso-8859-1', it didn't work. But which protocol should be used because as I said before only the standard 'mail' protocol works on my localhost (xampp) and if it's necessary to use 'smtp' or 'sendmail', how can I configure my xampp so I can use it? Because I need this to work before I deploy it on a proper webhost.
[eluser]Synchy[/eluser]
Yes might try that later, but I want to know first which of the 3 protocols I should use, and how they can be configured to use on a localhost (xampp)?
[eluser]InsiteFX[/eluser]
Usally on your localhost and live server the protocol will be SMTP The tool above I mentioned to you will setup everything for you, use SMTP port 25 on your localhost and it maybe the same on your live server but some hosting companies change it to a diffeent port. InsiteFX
[eluser]Synchy[/eluser]
I've used the tool you suggested and now when I send a mail with de 'smtp' protocol it gives the following error: Code: Fatal error: Uncaught exception 'PDFlibException' with message 'fsockopen() And this is the updated code for sending the mail: Code: function send_order_mail($to, $attach) {
[eluser]Synchy[/eluser]
It finally works, I had to use none of the programs but tried to use the smtp-server of gmail, I've tried it before but never worked and apparently I had to add: Code: $this->email->set_newline("\r\n"); On the top of the e-mail function to be able to connect to the gmail smtp. I'm guessing this is a bug then in CI? Anyway thanks for your help and patience. |
Welcome Guest, Not a member yet? Register Sign In |