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

Reply
 
Thread Tools Display Modes
  #1  
Old 06-23-2005, 02:38 AM
erinch erinch is offline
 
Join Date: Jun 2005
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default php send mail run around from my host

I have a new board I'm trying to launch. www.dminadventures.net/dminchat

I'm fairly handy with computer things, but am not a developer or a programmer and have met my match. I can't send emails out of the board, which MUST happen. I am posting below the text of the discussion from the vBulletin troubleshooting forum. Can anyone help me? Or do I need to try to switch hosts? Thanks, Erin Cox-Holmes

how to change mail send settings?

--------------------------------------------------------------------------------

From Erin to board:
Hi:
email notifications, etc. are not working on my new board.
I need to be able to change the mail send settings to scriptmail.intermedia.net

on www.dminadventures.net/dminchat

In doing a search on this board, it says I need to modfy php.ini--but I can't find if this is a file that I have access to, or if I need to contact intermedia (it's a shared server) and ask them to change it?

thanks for your assistance,
Erin Cox-Holmes


#2 Today, 5:14pm
Steve Machol
vBulletin Team
Support Manager Join Date: Jul 2000
Location: Arizona
Age: 52
Posts: 62,711

Only your host can make changes to php.ini.


Steve Machol
#3 Today, 6:05pm
erinch
Member Join Date: Jun 2005
Age: 46
Posts: 32

thanks, Steve. You're going to recognize my name before long. that's not always a good thing

I emailed the information you provided to intermedia, my web host. Their response, and my subsequent response are pasted in below. Can you translate this for me, in terms of where I would put the script in the vBulletin files, or someplace else on my server? I can provide all my login info, but naturally don't want to do that on a public board. thanks, Erin

Interchange with webhost

Erin C-H:
I have configured a vBulletin board on the linux account which uses php as the function to send mail. Mail from the board is not working, and vBulletin says it's because php.ini needs to be modified for the sendmail function to read scriptmail.intermedia.net (the sending script you have provided at Intermedia) and that I need to ask the host to do this.

Intermedia: As a security feature of our Shared Environment, users do not have access to modify the global php.ini file, and PHP is also run in safe mode. We do provide two PHP mailer examples that we have tested and used on our Linux server, they can be found at:
Do you provide examples of CGI scripts for Apache on Linux?
http://intermedia.net/support/kb/vie...cle.asp?id=874 (Erin's note: when you go to that link they have php scripts as wel)

Erin: thank you, I did see the php mailer examples. But there are no instructions for how to implement them, or where to put them that I could find.

Intermedia:

Hello Erin,
Thank you for your message. They are like any other scripts, they should be placed in Htdocs (or any other directory under Htdocs) and can be called from other PHP or HTML files.

I have no idea what that means. (wishing I'd majored in computers as opposed to English and Religion back in the 70s) thanks, Erin

erinch

#4 Today, 6:08pm
Steve Machol

Sorry but I have no idea what they are telling you to do. vB uses PHP's mail() function for all its email and uses the SMTP server specified in php.ini. If PHP and the mail server are configured correctly then email will work. (This is certainly true of the overwhelming majority of web hosts.)

If vB emails are not working, then this is a server issue. You need to ask your host to fix this.


Steve Machol

#5 Today, 6:15pm
erinch
Member Join Date: Jun 2005
Age: 46
Posts: 32

thanks; I sent their support another email.


erinch
View Public Profile


#6 Today, 6:25pm
erinch
Member Join Date: Jun 2005
Age: 46
Posts: 32

Okay, Steve, back to vBulletin, I guess. Is there anyone in the vBulletin community who does understand scripts who might be willing to be hired to help me get this working? Do you know of anyone who has implemented a script based solution? thanks, Erin

Erin to intermedia: is this fixable on an intermedia linux account, or do I need to find a different host? I have no idea what you mean or how to call your php scripts from a php file for the discussion board (on my account under dminchat.) Nor do I have any idea what each of your scripts do, and which would be the better one.

Intermedia:

Hello Erin,
Thank you for your message.
As a sample, please see:
<!--
See following link for more details:
http://pear.php.net/manual/en/core.mail.smtp.php
-->
<!--
jsmith@domain1.com is the recipient's address that this message will go to
john@domain2.com,Lucy@domain3.com are the Carbon Copy addresses
joedoe-bcc@domain4.com is the Blind Carbon Copy address
-->
<?php
include('Mail.php');
$recipients = 'jsmith@domain1.com,john@domain2.com,Lucy@domain3. com,joedoe-bcc@domain4.com';
$headers['From'] = '"My company Corp" <alex@yourdomain.com>';
$headers['To'] = '"John Smith" <jsmith@domain1.com>';
$headers['Cc'] = '"John Brown" <john@domain2.com>, "Lucy Brown" <Lucy@domain3.com>';
$headers['Subject'] = 'test php message subject';
$body = 'Test php message body';
$params['host'] = 'scriptmail.intermedia.net';
$mail_object =& Mail::factory('smtp', $params);
if ( $mail_object->send($recipients, $headers, $body) ) {
echo "Mail was successfully sent";
}
else {
echo "Cannot send mail!";
}
?>
Notice the line that says: $params['host'] = 'scriptmail.intermedia.net';
This line sets the SMTP server for the PHP mailer to use. If you were to load this on your site in your htdocs directory, it could be called using http://yourdomain.com/mailer.php
You cannot use php.ini to set the SMTP Server parameter, it must be set in your scripts (such as the script above). You may need to ask your vendor to assist you in adding a variable to their script so that you can set the SMTP server in their script so it can be properly passed to the PHP Mailer function. Unfortunately, this is a development issue with your code, and we do not provide development support.
If you need further assistance please do not hesitate to contact us.
Sincerely,
Intermedia.NET Technical Support (SAT)
Email: support@intermedia.net
Support: http://www.intermedia.net/support/




erinch


#7 Today, 6:29pm
Steve Machol
vBulletin Team
Support Manager Join Date: Jul 2000
Location: Arizona
Age: 52
Posts: 62,711

Basically your host is telling you that you need to hack vBulletin to get it to work with their server. Since 99% of the hosts do not have this requirement I find it a bit unreasoinable for them to force this on you.

Nonetheless this requires modifying the code. We cannot officially support code modifications or forums running modified code, however can try searching or asking for help with this over at www.vbulletin.org.

I have added this host to my list of hosts to avoid since they cannot support the default vBulletin code that 99% of other hosts can.


Steve Machol

#8 Today, 7:50pm
erinch
Member Join Date: Jun 2005
Age: 46
Posts: 32

And just to wrap it up, here's their response. I'll check over on the other board for a temporary solution. This board is time critical, so I can't afford the "lost time" in transferring to another host at the moment. thanks for your lightning fast responses.

Erin to intermedia:
Since I opened this linux account on intermedia specifically to run this bulletin board, I guess my best solution will be to look for a different host and to move my account to one which is more friendly to vBulletin without requiring hacks which vBulletin can't support. You might want to check with the intermedia "policy" folks and let them know they're being blacklisted by one of the premier messageboard companies. I've been very pleased with your Windows IIS hosting for my main website. I opened this linux account in order to gain access to mySQL for the bulletin board. thanks, Erin C-H



Intermedia:
Hello Erin,
Thank you for your message. You can certainly try creating your own php.ini file in the same directory as your php script and making the changes to the settings you need there. We cannot globally change the php.ini file on the server as it would effect *every* user on the server, and not all of our customers are using scriptmail.intermedia.net to send messages via their PHP scripts, so making this change would cause their scripts to fail. One of the advantages of using languages such as PHP or Perl is that you can override global settings with your own local variables stored in the scripts themselves. We are sorry that VBulletin does not allow for you to set the SMTP server directly in their code.
If you need further assistance please do not hesitate to contact us.
Sincerely,
Intermedia.NET Technical Support (SAT)
Email: support@intermedia.net
Support: http://www.intermedia.net/support/


erinch


#9 Today, 8:41pm
Steve Machol
vBulletin Team
Support Manager Join Date: Jul 2000
Location: Arizona
Age: 52
Posts: 62,711

I've never heard of doing that before. I also don't know what exactly they say should go in this php.ini file. You'll need to ask them for specifics.

As I said, 99% of hosts do not do this to their customers so as far as I'm concerned they should just tell you exactly what you need to do rather than replying with these cryptic messages

Help?? Anyone????
Reply With Quote
  #2  
Old 06-23-2005, 03:22 AM
jugo jugo is offline
 
Join Date: Feb 2004
Location: Reading your emails.
Posts: 573
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

they should just fix your sendmail.

That simple.
Reply With Quote
  #3  
Old 06-23-2005, 11:33 AM
erinch erinch is offline
 
Join Date: Jun 2005
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

as you can see, they won't or say they can't.

if the script possible to implement so i don't need to move hosts?
Reply With Quote
  #4  
Old 06-23-2005, 11:58 AM
jugo jugo is offline
 
Join Date: Feb 2004
Location: Reading your emails.
Posts: 573
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dude..just switch hosts...

I can make the switch real easy for you...PM Me.
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 08:20 AM.


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.04178 seconds
  • Memory Usage 2,206KB
  • 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)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_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
  • 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