I am trying to send an attachment with an email script. I can send the email but the attachment is not working correctly. I grabbed this script from a template on the net.
Looks like your script is just using the letter "n" as the mail header separator. It probably is some sort of copy error, and should be "\n" for the newline character. In fact, there is a good probability that you will need to use "\r\n" in each instance (carriage-return/newline).
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Frankly, I hate messing with the mail stuff, and just use PHPMailer when I need to do anything more than send a simple email message.
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
"Easy" is relative, I guess. It probably helps if you have a basic understanding of PHP object-oriented syntax, but there are a number of pretty good examples on their site that cover most typical tasks.
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Bookmarks