| Coding Forum Problems with your code? Let's hear about it. |
06-11-2004, 12:43 PM
|
#1 (permalink)
|
|
Inactive
Join Date: 02-11-04
Location: Corpus Christi, TX
Posts: 901
Latest Blog: None
|
[solved] mailform
anyone have any idea why this wouldn't send? i'm thinking it might be because of the [BOLD] line... please let me know
[code:1:3f19a1b0e5]<?php
$emailto = stripslashes($_POST['emps']);
[b]$mailto .= "$emailto@uniqueemployment.com";[/b]
$name = stripslashes($_POST['name']);
$emailfrom = stripslashes($_POST['email']);
$subject = stripslashes($_POST['subject']);
$body = stripslashes($_POST['body']);
$message = "This email is submitted from a http://www.uniqueemployment.com/ viewer. It is an automatted page and has not been filtered before it was sent to you. If you believe this email was sent to you with wrongful intent, please notify your network administrator.\n\n";
$message .= "Sender: <$name> $emailfrom\n";
$message .= "Subject: $subject\n";
$message .= "Message: $body\n\n";
mail($mailto, $subject, $message, "From: $name <$emailfrom>");
?>
<?php
$random_mainimage = rand(1, 10);
?>[/code:1:3f19a1b0e5]
|
|
|
06-11-2004, 01:06 PM
|
#2 (permalink)
|
|
Possible Terrorist
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,904
|
do
[code:1:c152354415]$mailto = $emailto . "@uniqueemplyment.com";[/code:1:c152354415]
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
|
|
|
06-11-2004, 01:18 PM
|
#3 (permalink)
|
|
Inactive
Join Date: 02-11-04
Location: Corpus Christi, TX
Posts: 901
Latest Blog: None
|
Quote:
|
Originally Posted by theSpear
do
[code:1:91faa583c5]$mailto = $emailto . "@uniqueemplyment.com";[/code:1:91faa583c5]
|
 didn't work... i noticed there was a spelling issue ... it's supposed to be @uniqueemployment.com but that corrections still didn't help any
|
|
|
06-11-2004, 01:51 PM
|
#4 (permalink)
|
|
Possible Terrorist
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,904
|
hmm.. are you sure its not just sending it to a spam filter or something.. you need more headers to pass most spam filters like Reply-To and Content-Type
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
|
|
|
06-11-2004, 01:52 PM
|
#5 (permalink)
|
|
Inactive
Join Date: 02-11-04
Location: Corpus Christi, TX
Posts: 901
Latest Blog: None
|
nope... our network admin says we have no spam filters... grrr this is frustrating me to no end!
|
|
|
06-11-2004, 01:52 PM
|
#6 (permalink)
|
|
Inactive
Join Date: 04-15-04
Posts: 499
Latest Blog: None
|
some hosts disable mailform.
|
|
|
06-11-2004, 01:59 PM
|
#7 (permalink)
|
|
Inactive
Join Date: 02-11-04
Location: Corpus Christi, TX
Posts: 901
Latest Blog: None
|
on the phone with the host right now... he told me PHP is disabled... lol little does he know everything I HAVE is PHP... *shakes head* i'll let you know what I find out
|
|
|
06-11-2004, 02:06 PM
|
#8 (permalink)
|
|
Inactive
Join Date: 02-11-04
Location: Corpus Christi, TX
Posts: 901
Latest Blog: None
|
"i don't see you on the server!!"
|
|
|
06-11-2004, 02:19 PM
|
#9 (permalink)
|
|
Inactive
Join Date: 02-11-04
Location: Corpus Christi, TX
Posts: 901
Latest Blog: None
|
"beep, beep, beep" THEY HUNG UP!!!!!!!!!!!!!!!!!
|
|
|
06-14-2004, 06:55 AM
|
#10 (permalink)
|
|
Inactive
Join Date: 02-11-04
Location: Corpus Christi, TX
Posts: 901
Latest Blog: None
|
ok... just got off the phone with the host again... he checked php.ini and nothing has been disabled... i also made him check the outgoing smtp log to see if anything was coming out, but not going anywhere... and he doesn't see any abnormal activity or any activity coming from a script... any ideas? the script looks just fine but i'm not sure why i'm not getting this to work... and I don't get any errors when the script is submitted 
|
|
|
06-14-2004, 07:16 AM
|
#11 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
I tested your script above and it worked for me. I'm thinking the problem is with the actual form you are using and not the script.
|
|
|
06-14-2004, 07:21 AM
|
#12 (permalink)
|
|
Inactive
Join Date: 02-11-04
Location: Corpus Christi, TX
Posts: 901
Latest Blog: None
|
Quote:
|
Originally Posted by Jazzee
I tested your script above and it worked for me. I'm thinking the problem is with the actual form you are using and not the script.
|
hmm... maybe... will you take a look at it for me and see if you see any problems? http://www.uniqueemployment.com/beta...ctus-email.php
|
|
|
06-14-2004, 07:44 AM
|
#13 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
It works perfectly for me. I copied the form and the script over to my server.
In the script I changed $emailto@uniqueemployment.com to $emailto@jazzeedesign.com
Then in for form itself, I changed <option value="garryb"> to <option value="jazzee">
I then filled out the form and the email came to jazzee@jazzeedesign.com.
I put Testname for name, testemail@testemail.com for my email address and testsubjectline for the subject line. I left the comments box the way it was.
This is the email I received:
Quote:
This email is submitted from a http://www.uniqueemployment.com/ viewer. It is an automatted page and has not been filtered before it was sent to you. If you believe this email was sent to you with wrongful intent, please notify your network administrator.
Sender: <Testname> testemail@testemail.com
Subject: testsubjectline
Message: Type your message here
|
Your script works.
|
|
|
06-14-2004, 07:54 AM
|
#14 (permalink)
|
|
Inactive
Join Date: 02-11-04
Location: Corpus Christi, TX
Posts: 901
Latest Blog: None
|
grr... this is driving me insane... any ideas on what may be wrong and why i'm not getting it?
in the script you created did you have [code:1:02fd0a5c18]$mailto = $emailto . "@jazeedesign.com"[/code:1:02fd0a5c18] or [code:1:02fd0a5c18]$mailto = $emailto@jazeedesign.com[/code:1:02fd0a5c18]
|
|
|
06-14-2004, 07:58 AM
|
#15 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
$mailto = $emailto@jazeedesign.com is the one that works.
Tried the first one first and it sent the email to jazzee . @jazzeedesign.com
|
|
|
06-14-2004, 08:02 AM
|
#16 (permalink)
|
|
Inactive
Join Date: 02-11-04
Location: Corpus Christi, TX
Posts: 901
Latest Blog: None
|
ok... now's i'm really confused... i changed the variables like you did WITHOUT changing the [code:1:6ef26bd115]$mailto = $emailto . "@uniqueemployment.com[/code:1:6ef26bd115] but changed it to my send to my yahoo account... and it worked just fine... then turned around and changed it back to my uniqueemployment.com account... and it's NOTworking... *SCREAMS*
|
|
|
06-14-2004, 08:06 AM
|
#17 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
Gotta be that email, then.
This may be a dumb question, but you are sure the uniqueemployment email addresses work, right?
|
|
|
06-14-2004, 08:10 AM
|
#18 (permalink)
|
|
Inactive
Join Date: 02-11-04
Location: Corpus Christi, TX
Posts: 901
Latest Blog: None
|
i thought it was a dumb question too... BUT i just tried emailing myself FROM myself and haven't received anything yet... i'm on the phone with the host company... this is becoming the biggest pain in the a$$
|
|
|
06-14-2004, 08:14 AM
|
#19 (permalink)
|
|
Inactive
Join Date: 02-11-04
Location: Corpus Christi, TX
Posts: 901
Latest Blog: None
|
ok... so the email worked just took a while... still on the phone with tech support
|
|
|
06-14-2004, 08:34 AM
|
#20 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
Did they help you?
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post | | |