Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-12-2004, 11:41 AM
E2E E2E is offline
 
Join Date: Oct 2004
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Can't modify php.ini - other ways of getting email to work?

Hi there, I hope someone can help me out with this: Turns out (Windows) emails aren't being sent from our forum b/c the sendmail_from setting in the php.ini file is blank (this was determined by a combination of the Admin CP Diagnostics tool and help from the folks over at vBulletin.com). However, the host company won't change or let us change this file -- when we asked them about it we got the following response:

Quote:
The php.ini file is on the server and controls php settings for the
server. You do not have access to this file. The link that was given
contains the code you need to create on a new page for sending email.
It is not used on the php.ini file. Use the sample code on a new php
page and modify the required sections.
"The link" mentioned in that quote is as follows: http://www.brinkster.com/Kb/Kb.asp?kb=107593, but newbie that I am I'm quite stuck as to what to do with the code therein. I'm assuming I don't -really- want to add it to an entirely new page -- but is there a certain vBulletin file I can add this to (or some -other- workaround I can use) to make email work despite our hobbled and apparently inaccessible php.ini file? The folks over at vBulletin were as helpful as they could be but pointed out that modifying the actual vB files fell into the vBulletin.org bailiwick, so...here I am! Thanks very much to anybody who might take a stab at helping with this =)
Reply With Quote
  #2  
Old 10-12-2004, 11:56 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by E2E
Hi there, I hope someone can help me out with this: Turns out (Windows) emails aren't being sent from our forum b/c the sendmail_from setting in the php.ini file is blank (this was determined by a combination of the Admin CP Diagnostics tool and help from the folks over at vBulletin.com). However, the host company won't change or let us change this file -- when we asked them about it we got the following response:



"The link" mentioned in that quote is as follows: http://www.brinkster.com/Kb/Kb.asp?kb=107593, but newbie that I am I'm quite stuck as to what to do with the code therein. I'm assuming I don't -really- want to add it to an entirely new page -- but is there a certain vBulletin file I can add this to (or some -other- workaround I can use) to make email work despite our hobbled and apparently inaccessible php.ini file? The folks over at vBulletin were as helpful as they could be but pointed out that modifying the actual vB files fell into the vBulletin.org bailiwick, so...here I am! Thanks very much to anybody who might take a stab at helping with this =)
https://vborg.vbsupport.ru/showthrea...highlight=SMPT
Reply With Quote
  #3  
Old 10-12-2004, 02:59 PM
E2E E2E is offline
 
Join Date: Oct 2004
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for getting back to me so quickly, I feel silly now as I'd seen that How-To tip before I'd posted but somehow in all my newbie glory hadn't -really- made the connection between it and my problem...d'oh! But now that I have tried it I'm still getting an error message within the diagnostic tool -- specifically it tells me the following:

Quote:
Pertinent PHP Settings
SMTP: localhost
sendmail_from: None
sendmail_path: None

Parse error: parse error, unexpected '@', expecting ',' or ';' in \\[site path]\includes\mail.php on line 96
Line 96 is the one in which we'd specified var $smtpUser -- specifically we'd set it to the email address from which we want emails to be sent (so that it now reads var $smtpUser = forums@edtropolis.com; ), was that incorrect? In that original How To post you'd linked me to the only potential clue I thought I saw was the comment about making sure one creates an smtp account -- is this my problem, is there some specific other type of account I need to create in order for this to work?

Thanks yet again for the help with this, I swear I won't -always- be quite such a noob...I hope... =)
Reply With Quote
  #4  
Old 10-19-2004, 01:54 AM
E2E E2E is offline
 
Join Date: Oct 2004
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi there, I'm back to working on this problem after some time away from it and was wondering if anybody could help me: After working with my host company for a while I've -finally- been able to confirm that things -are- set up correctly on their end for php/smtp mail to work -- in fact I was able to get the following code, which is their recommended way of enabling php/smtp mail on their server, to work:

Code:
<?
require("c:\php\includes\class.phpmailer.php");

$mail = new PHPMailer();

$mail->IsSMTP();
$mail->Host     = "sendmail.brinkster.com";
$mail->SMTPAuth = true; // This line is important for smtp authentication
$mail->Username = "Validbrinkster@hostedemail.com";
$mail->Password = "EmailPassword";

$mail->From     ="Validbrinkster@hostedemail.com";
$mail->FromName ="Validbrinkster@hostedemail.com";
$mail->AddAddress("Valid@emailaddress.com"); 
$mail->IsHTML(true);
$mail->Subject  =  "Email Subject";
$mail->Body     =  "Email Body";

if(!$mail->Send())
{
   echo "Message was not sent <p>";
   echo "Mailer Error: " . $mail->ErrorInfo;
   exit;
}
echo "Message has been sent";
?>
My problem is that I've not been able to update my mail.php file to make -it- work correctly for my vBulletin forum (despite the fact that I've followed the steps in Zachery's linked "How to enable SMTP" thread) and I just don't have enough php/vBulletin experience to understand what the problem could be. Since I -know- the code above works with my host, would it make sense to somehow incorporate that into my mail.php file? If that would make sense, could someone point me in the right direction as to what specific pieces I would -have- to include and in what way? Are there other solutions anyone might suggest?

As always, thanks in advance to anyone who might help me out with this =)
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 02:46 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.04087 seconds
  • Memory Usage 2,197KB
  • Queries Executed 11 (?)
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_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)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