What are the headers on the message?
What are the headers on the message?
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
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.
--Jas
function GreatMinds(){ return "Think Like Jas"; }
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![]()
--Jas
function GreatMinds(){ return "Think Like Jas"; }
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.
Last edited by thetestingsite; 04-08-2008 at 11:24 PM.
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design
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?
--Jas
function GreatMinds(){ return "Think Like Jas"; }
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.
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design
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.
--Jas
function GreatMinds(){ return "Think Like Jas"; }
I'm saying that the default php.ini file should be sufficient enough for your script to work.
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design
Well for some reason it doesn't.
Warning: mail() [function.mail]: SMTP server response: 550 The address is not valid. in [FILE] on line 39
--Jas
function GreatMinds(){ return "Think Like Jas"; }
No, I mean the actual headers on the message when it reaches your mailserver. What are they?What? I'm not sure I understand the question. Are you refering to the $headers variable?
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Bookmarks