What are the headers on the message?
Printable View
What are the headers on the message?
What? I'm not sure I understand the question. Are you refering to the $headers variable? That enables me to send an HTML email. An email with no headers does not work either.
Alright, I am getting really confuised. I am not sure if this is even the function that I am looking for. Here is what I need:
A user submits an application via a form.
A webadmin accepts the application.
An email is sent by PHP to the user saying that the application was accepted.
Is this even the right function to use? Can PHP do it? I am sooooooo lost :mad::(:mad::(
Either way; if you are trying to send an email from a website/web app, you need to use a server side language in order for it to work properly or as it is intended (if that makes any sense).
Hope this helps.
Okay, so it's the right language. What do I do? The message shows up under the hmailserver's undelivered tab (no errors in the php page) and the to address is the sendmail_from address. . . I am so lost. Why would it be trying to send it to the sendmail_from address?
One thing you could try is getting rid of the ini_set() functions in the script. By default, the php.ini file has localhost at port 25 as the mail server/port. In other words, if you get rid of this, the script should default to the hmailserver install as the mail server. As I have said before, the script itself is functional; but (something I didn't mention is that) I did take out the ini_set calls at the top of the script in order to test on one of my servers.
Hope this helps.
So, should I put everything in the ini_set functions into the actual ini file, or are you saying that there is more to it?
EDIT: I tried and I am getting the same error. The message is trying to be sent to the sendmail_from address. . . At least that what hmailserver says.
I'm saying that the default php.ini file should be sufficient enough for your script to work.
Well for some reason it doesn't.
Quote:
Warning: mail() [function.mail]: SMTP server response: 550 The address is not valid. in [FILE] on line 39
No, I mean the actual headers on the message when it reaches your mailserver. What are they?Quote:
What? I'm not sure I understand the question. Are you refering to the $headers variable?