Jump to content

Recommended Posts

If you surround your code with the bbcode "CODE" tags it'd be easier to read.

Also, I suggest being a little more specific with what your problem is instead of just saying it doesn't work.

Try and say what you want it to do, what it isn't doing and what data you're throwing at it - will increase the chances of some help.

But! Saying that I did see this little abnormality:
[code]if(!$name or !$email or !$address) {[/code]
Try changing to:
[code]if(!$name || !$email || !$address) {[/code]
Link to comment
https://forums.phpfreaks.com/topic/7002-issue/#findComment-25423
Share on other sites

Well not sure how else to say it, "it doesn't work anymore", lol. But thank you for that code check i'll try that change up.
This was originally created and tested in [a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=87985&st=\" target=\"_blank\"]THIS[/a] thread. I don't get why it's not working anymore.

I'm also checking with my webhost to make sure PHP is installed and working properly on the main server.



[!--quoteo(post=363218:date=Apr 10 2006, 04:40 AM:name=Yesideez)--][div class=\'quotetop\']QUOTE(Yesideez @ Apr 10 2006, 04:40 AM) [snapback]363218[/snapback][/div][div class=\'quotemain\'][!--quotec--]
If you surround your code with the bbcode "CODE" tags it'd be easier to read.

Also, I suggest being a little more specific with what your problem is instead of just saying it doesn't work.

Try and say what you want it to do, what it isn't doing and what data you're throwing at it - will increase the chances of some help.

But! Saying that I did see this little abnormality:
[code]if(!$name or !$email or !$address) {[/code]
Try changing to:
[code]if(!$name || !$email || !$address) {[/code]
[/quote]
Link to comment
https://forums.phpfreaks.com/topic/7002-issue/#findComment-25425
Share on other sites

yeah oddly enuff, it worked fine at first...


[!--quoteo(post=363222:date=Apr 10 2006, 04:49 AM:name=Yesideez)--][div class=\'quotetop\']QUOTE(Yesideez @ Apr 10 2006, 04:49 AM) [snapback]363222[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Was it sending emails before and not now?
[/quote]
Link to comment
https://forums.phpfreaks.com/topic/7002-issue/#findComment-25428
Share on other sites

Just located another topic I helped with emails: [a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=90555\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?showtopic=90555[/a]

Make sure the header is formatted properly as I've had problems with it before myself and realised I'd been a bit too tired and missed something off the end.

If at the end you still have problems, try using ECHO to display the contents of the variables passed to mail() so you can see exactly what they contain - weird stuff can happen to their contents with a missing quote or misplaced full stop.
Link to comment
https://forums.phpfreaks.com/topic/7002-issue/#findComment-25429
Share on other sites

The header in the php you mean between the <head> section like at the top of html? Like I said i'm bad with this stuff. Also, not sure how to use that ECHO feature.


[!--quoteo(post=363224:date=Apr 10 2006, 04:53 AM:name=Yesideez)--][div class=\'quotetop\']QUOTE(Yesideez @ Apr 10 2006, 04:53 AM) [snapback]363224[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Just located another topic I helped with emails: [a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=90555\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?showtopic=90555[/a]

Make sure the header is formatted properly as I've had problems with it before myself and realised I'd been a bit too tired and missed something off the end.

If at the end you still have problems, try using ECHO to display the contents of the variables passed to mail() so you can see exactly what they contain - weird stuff can happen to their contents with a missing quote or misplaced full stop.
[/quote]
Link to comment
https://forums.phpfreaks.com/topic/7002-issue/#findComment-25431
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.