vBulletin SEO Forums

SEO

vBulletin Search Engine Optimization

Buy vBSEO Now! HACKER SAFE certified sites prevent over 99.9% of hacker crime.
ne nw
New vBSEO Discount Level for Network Builders Meet vBSEO Team in New York (Nov. 3rd & 4th) vBSEO 3.2.0 GOLD Has Landed Success with vBSEO = 600ore Web Visitors + $1400 in a Day! Crawlability Inc. Files for SEO Technology Patent
se sw

mail.php

This is a discussion on mail.php within the Troubleshooting forums, part of the vBSEO SEO Plugin category; I have my forum in the root and a subdomain that has another non vb site. In that subdomains folder, ...

Go Back   vBulletin SEO Forums > vBSEO SEO Plugin > Troubleshooting

Enhancing 80 million pages.

Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read
  #1  
Old 01-28-2008, 05:37 AM
JADM's Avatar
Member
 
Real Name: Jason
Join Date: Dec 2007
Posts: 71
Blog Entries: 18
mail.php

I have my forum in the root and a subdomain that has another non vb site. In that subdomains folder, I have the following simple send mail .php file:

Quote:

<?php
/* Simple Mail Routine.
Should send a mail with all the information to the target listed.
Check the //EDIT lines for things that need to be changed before implementation.
INPUT objects in FORMS with names including 'hide_' will not be included in the e-mail;
Everything else shows up in the e-mail in "Formatted Field Name: Value" format.
Formatted Field Name is basically the name of the field, with underscores replaced by spaces and each word
uppercase (first).
*/
$textstring = '';
$htmlstring = '';
$emailSender = $_POST['Email_Address'];
foreach ($_POST as $key => $value){
if (!stristr($key, 'hide_') && !stristr($key, 'submit')){
$key = str_replace('_', ' ', $key);
$key = ucfirst($key);
$htmlstring .= "<B>{$key}</B> : $value <BR>";
$textstring .= "$key : $value \n\n";
}
}
if ($_POST){
$mail_from = isset($_POST['Email_Address']) ? $_POST['Email_Address'] : 'Simple Web Design SF Inquiry Form';
$sender_name = $emailSender;
$mail_subject = isset($_POST['hide_subject']) ? $_POST['hide_subject'] : $mailSubject;
$mail_to = $mailRecipient;
//EDIT - change the following two 'default' redirect pages.
$page_redirect = isset($_POST['hide_redirect']) ? $_POST['hide_redirect'] : 'ty.html';
$page_error = isset($_POST['hide_errorpage']) ? $_POST['hide_errorpage'] : 'error.html';
$mail_headers = "MIME-Version: 1.0\nContent-Type: text/html;charset=iso-8859-1\nFrom: $sender_name\n";
//EDIT - change this from $htmlstring to $textstring for text-formatted email.
if (mail($mail_to, $mail_subject, $htmlstring, $mail_headers)){
echo "<META HTTP-EQUIV='Refresh' CONTENT='0; URL=$page_redirect'>";
} else {
header("Location: {$page_error}");
}
}
?>
The URL is Jason Perry LLC

It doesn't work anymore, I am not sure if it has not been working since vBSEO install or is unrelated. My question is, does anyone know why vBSEO might cause this to not work?

Thanks in advance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 01-29-2008, 11:01 AM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,449
Blog Entries: 1
Hello,

try to create .htaccess in that folder:
Code:
RewriteEngine off
__________________
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 01-29-2008, 11:49 AM
JADM's Avatar
Member
 
Real Name: Jason
Join Date: Dec 2007
Posts: 71
Blog Entries: 18
.htaccess is there

It's already there....does it need to be CHMODed to something?

Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 01-29-2008, 03:23 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,449
Blog Entries: 1
What is the contents of that .htaccess? (with the line mentioned above)
__________________
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 01-29-2008, 04:03 PM
JADM's Avatar
Member
 
Real Name: Jason
Join Date: Dec 2007
Posts: 71
Blog Entries: 18
Nothing else, just that line.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 01-29-2008, 04:59 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,449
Blog Entries: 1
That is most likely not related to vBSEO then, please try to temporarily disable vBSEO and check if the script works.
__________________
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Spammed mail vnjporg Troubleshooting 2 05-30-2007 12:01 AM
VBSEO & E-Mail Exitilus General Discussion 6 01-25-2007 07:29 PM


All times are GMT -4. The time now is 12:54 PM.


Powered by vBulletin Version 3.8.0 Beta 3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.5 ©2008, Crawlability, Inc.