Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
  #1  
Old 08-03-2016, 08:43 AM
postcd postcd is offline
 
Join Date: Feb 2012
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Contact Us form sends email so Reply e-mail address is the server e-mail

Hello,

please what to do so when i receive e-mail from vBulletin (4.2.x) Contact Us page i click to Reply that e-mail and the recipient is user@myserver.hostname.here
I would like it to be e-mail of the person who contact me.

Thank You for help
Reply With Quote
  #2  
Old 08-03-2016, 12:09 PM
Gio~Logist's Avatar
Gio~Logist Gio~Logist is offline
 
Join Date: Jun 2004
Location: San Francisco
Posts: 2,575
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It could be that person actually entered that and wasn't a user at all.
Reply With Quote
  #3  
Old 08-03-2016, 04:33 PM
kerrghann's Avatar
kerrghann kerrghann is offline
 
Join Date: Jul 2012
Location: Hawaii
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not positive how you have your form set up to email, but I use this for mine and when I click 'reply' it replies it to the email provided. Feel free to take, modify, and implement as you feel the need:

PHP Code:
<?php
    $ini 
parse_ini_file("includes/config.ini.php");
    
$to $ini['adminEmail'];
    
$subject $ini['emailSubject'];
    
$headers = array();
    
$headers[] = "MIME-Version: 1.0";
    
$headers[] = "Content-type: text/plain; charset=iso-8859-1";
    
$headers[] = "From: Transcendence <" $ini['adminEmail'] . ">";
    
$headers[] = "Reply-To: " $_POST["username"] . " <" $_POST["email"] . ">";
    
$headers[] = "Subject: {$subject}";
    
$headers[] = "X-Mailer: PHP/" phpversion();

    
$message "Greetings <B>" $ini['administrator'] . "</B>,\r\n\r\nA user has requested access to the Administrative Control panel via the Transcendence page.\r\n\r\nThe Users Info is as Follows:\r\n\r\n<B>Username</B>: <I>" $_POST["username"] . "</I>\r\n" "<B>Email</b>: <I>" $_POST["email"] . "</I>\r\n" "<B>IP Address</B>: <I>" $_SERVER['REMOTE_ADDR'] . "</I>\r\n" "<B>Hashed Password</B>: <I>" $theHash "</I>\r\n\r\nConfirm with the User that they have requested this access.  If they have, please go to the .htpasswd file and uncomment their hashed password to give them access.  Thank you!\r\n\r\n\r\nTranscendence\r\n" $ini['siteName'] . " at It's Finest";


    
$message wordwrap($message70"\r\n");

    
mail($to$subject$messageimplode("\r\n"$headers));
?>
Reply With Quote
Благодарность от:
MarkFL
  #4  
Old 08-03-2016, 04:40 PM
Gio~Logist's Avatar
Gio~Logist Gio~Logist is offline
 
Join Date: Jun 2004
Location: San Francisco
Posts: 2,575
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That doesn't appear to be a part of vB o_0

I'm assuming the contact us page he was talking about is sendmessage.php
Reply With Quote
  #5  
Old 08-03-2016, 04:42 PM
kerrghann's Avatar
kerrghann kerrghann is offline
 
Join Date: Jul 2012
Location: Hawaii
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gio~Logist View Post
That doesn't appear to be a part of vB o_0

I'm assuming the contact us page he was talking about is sendmessage.php
I assumed he was talking about his website that is linked in his signature. If you click it and go to his contact page, it shows a form that appears to be custom coded using vBulletin's api.

Although I could easily be completely mistaken. It's what I went off of though, haha.

*EDIT* Also, to note, my Contact Us page has been broken for awhile. Even when it did work it wasn't the most glorious thing in the entire world either. I much prefer a nice custom coded PHP mailer. But that's besides the point. If I was incorrect in assuming that your linked website was the contact for in question, I apologize, postcd.
Reply With Quote
  #6  
Old 09-07-2016, 07:26 AM
postcd postcd is offline
 
Join Date: Feb 2012
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gio~Logist View Post
I'm assuming the contact us page he was talking about is sendmessage.php
Yes, correct. Interesting is that when i use vB 4.1.10 Contact Us, reply email is correct, but in 4.2.0, non existing hostname kind of e-mail is used when i reply, not e-mail of the contact us form sender.
Both vbulletins hosted on same server, both on cPanel accounts. E-mail configuration pages in both vBulletins seems same.

Can you please suggest me what to check? Which file is responsible for the PHP code that is used to send e-mail? SO i may try to use old vbuleltin one in newvbuleltin, or what to do?
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump


All times are GMT. The time now is 04:55 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06942 seconds
  • Memory Usage 2,225KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (1)post_thanks_box_bit
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete