Email problem sending both a message AND an attachment at the same time |
[eluser]mademan[/eluser]
Ok, this seems like it should work, but I am not able to send an email using CI's native mail library to send an email with a message AND an attachment at the same time. I can see one or the other - the message OR the attachment, but not both at the same time. Code: // the email library is autoload If I leave the code the way it is shown above only the attachment comes through fine, NOT the message. If I only comment the message line, the attachment comes through just fine as expected. If I only comment the attachment line, the message is sent to my email just fine as expected. It's only when nothing is commented that I only see the attachment, not the message. Any ideas?
[eluser]mademan[/eluser]
Problem solved - I decided to use http://www.swiftmailer.org and it works perfect.
[eluser]Tomasz OleÅ›[/eluser]
Here is my solution to this problem, the final code looks like this: Code: $config [ 'protocol' ] = 'sendmail'; Hope it will help somebody in the future Greetings |
Welcome Guest, Not a member yet? Register Sign In |