Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
VBulletin Email Hack help Details »»
VBulletin Email Hack help
Version: , by dfried dfried is offline
Developer Last Online: May 2005 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 12-03-2003 Last Update: Never Installs: 0
 
No support by the author.

I am running Vbulletin on a shared server. I don't have acess to the e-mail logs and my e-mail functions are not working. I have contacted my server tech people and they suguest using a differnt Php mail function than the one in Vbulletin.
When I run the test with this one from the server it works, when I run the test with the standard script it goes no where. I can not see the logs so I am stuck.
So How do we integrate the Mail::factory method into the vbmail function in
functions.php?

In vBulletin wrapper for PHP's 'mail()' function in the file functions.php,
the function vbmail uses
mail($toemail, $subject, $message, trim($headers));

our provider indicates we should code to
create the mail object using the Mail::factory method, like this:

$params['host'] = 'mail.wel-metcamps.com';
$mail_object =& Mail::factory('smtp', $params);

thanks

David

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 12-03-2003, 08:39 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
mail($report_email$title$body"From: \"$bbtitle Mailer\" <$webmasteremail>"); 
try that, that's how i got it
Reply With Quote
  #3  
Old 12-03-2003, 09:21 PM
dfried dfried is offline
 
Join Date: Oct 2003
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is the PHP line you suggested suppose to replace
mail($toemail, $subject, $message, trim($headers)); ?

If not, where does it go?

Where does $report_email come from and what happens to $toemail, $subject, and $message ?

Thanks for your help!
Reply With Quote
  #4  
Old 12-04-2003, 07:10 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yep it should replace what you've got above
$report_email = $toemail = email you want to send your message too (can be renamed as long as you define it before you call it)

$title = $subject = where you wanna send the message too

$message = $body = what you want your email to say
Reply With Quote
  #5  
Old 12-04-2003, 04:50 PM
dfried dfried is offline
 
Join Date: Oct 2003
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

still no luck, tried all kinds of hacks , anybody have any ideas on how to include mail factory ??
Does Vbulletin use any other part of "functions php" to send e-mail ??? Could we have removed a function when I edited functions php that is needed to send e-mail ??
Or how to make this work
thanks
Reply With Quote
  #6  
Old 12-07-2003, 09:56 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry

PHP Code:
mail("$report_email$title$body, "From: \"$bbtitle Mailer\" <$webmasteremail>"); 
that's the working version
Reply With Quote
  #7  
Old 12-14-2003, 03:41 PM
dfried dfried is offline
 
Join Date: Oct 2003
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That fix still does not work, but I think I understand why, the current php()mail is not compatable with the anti spam features of my host server. I think I am not going to be the only one with this problem anyone with a shared server might find the same problem. My host wants to see a e-mail address that it can attach to the account that is sending out the e-mail. They are doing this so someone can't hijack the e-mail and blind spam from that account. The current vb mail sends the email from the user id, who is unknow to the host. My current hack is to send it from the host'sacount 's mail box admin ,but that is just a work around. So which one of you ace code kings can revise the php() mail so vb is happy and we are not spam hosts.
Reply With Quote
Reply


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 05:17 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04013 seconds
  • Memory Usage 2,256KB
  • Queries Executed 20 (?)
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
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)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_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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete