vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   VBulletin Email Hack help (https://vborg.vbsupport.ru/showthread.php?t=58979)

dfried 12-03-2003 08:12 PM

VBulletin Email Hack help
 
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

sabret00the 12-03-2003 08:39 PM

PHP Code:

mail($report_email$title$body"From: \"$bbtitle Mailer\" <$webmasteremail>"); 

try that, that's how i got it :)

dfried 12-03-2003 09:21 PM

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!

sabret00the 12-04-2003 07:10 AM

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

dfried 12-04-2003 04:50 PM

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

sabret00the 12-07-2003 09:56 AM

sorry

PHP Code:

mail("$report_email$title$body, "From: \"$bbtitle Mailer\" <$webmasteremail>"); 

that's the working version

dfried 12-14-2003 03:41 PM

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.


All times are GMT. The time now is 08:43 AM.

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.01006 seconds
  • Memory Usage 1,722KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete