vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   [vB v2.2.1] SMTP Support and MIME/HTML Emails! (https://vborg.vbsupport.ru/showthread.php?t=33784)

chaz7979 01-11-2002 02:54 AM

So if I just do the first 2 steps (simple install) I should be all set?

I have one concern 2. c. says

If you are doing a full install, you can skip this:

Go through the vB files and replace all occurances of
'mail(' with 'mime_mail('

All the files? There is a lot of files that make up VB. Do we really have to go through every single file? How many instances are there?

fastforward 01-11-2002 03:10 AM

Quote:

Originally posted by chaz7979
So if I just do the first 2 steps (simple install) I should be all set?

I have one concern 2. c. says

If you are doing a full install, you can skip this:

Go through the vB files and replace all occurances of
'mail(' with 'mime_mail('


All the files? There is a lot of files that make up VB. Do we really have to go through every single file? How many instances are there?

That really means 'Go through the vB files and replace all occurances of mail().. for which you wish to use the new MIME or SMTP functionality.'
The full install instructions actually list all the bits that need changing. That will include all the mail() calls. There's not really that many compared to some of the hacks here.

In your case, you should be able to just do the simle install (ie. steps 1 & 2. then follow the step in the instructions that changes the mail() call in functions.php which is 6a.
Code:

  A) ADMIN/FUNCTIONS.PHP

      OLD CODE
      --------
      mail($touser[email],$emailsubject,$emailmsg,"From: \"$bbtitle Mailer\" <$webmasteremail>");

      NEW CODE
      --------
      // START MIME/HTML/SMTP HACK
      eval("\$emailmsghtml = \"".gettemplate("email_notify_html",1,0)."\";");
      mime_mail($touser[email],$emailsubject,$emailmsg,"From: \"$bbtitle Mailer\" <$webmasteremail>", $emailmsghtml, $touser[emailtextonly]);
      // END MIME/HTML/SMTP HACK

Don't forget to create a template called email_notify_html.

chaz7979 01-11-2002 07:28 AM

Quote:

Originally posted by fastforward

Don't forget to create a template called email_notify_html.

That's not in step one and 2...is it?

By the way thanks fo your help :-)

ElecEagle 02-27-2002 12:39 AM

Was wondering if anyone could help me with the following error I'm getting trying to send email to a member after installing the SMTP Hack (full install) by fastforward?

Database error in vBulletin 2.2.2:

Invalid SQL: SELECT username,email,showemail, FROM user WHERE userid='1'
mysql error: You have an error in your SQL syntax near 'FROM user WHERE userid='1'' at line 1

mysql error number: 1064

Date: Tuesday 26th of February 2002 08:36:21 PM
Script: http://www.ellardobluth.homelinux.ne...rum/member.php
Referer: http://www.ellardobluth.homelinux.ne...lform&userid=1

ElecEagle 02-27-2002 02:02 AM

Just so I'm being thorough, here's the code I believe is causing the error in members.php:

// START MIME/HTML/SMTP HACK
$destuserinfo=$DB_site->query_first("SELECT username,email,showemail,$emailtextonly FROM user WHERE userid='$destuserid'");
// END MIME/HTML/SMTP HACK

Anyone see any problems with it?

ElecEagle 02-27-2002 10:08 AM

Database error in vBulletin 2.2.2:

Invalid SQL: SELECT DISTINCT user.email,.emailtextonly FROM moderator,user WHERE moderator.userid=user.userid AND forumid IN (2,1,-1) AND (newthreademail=1 OR newpostemail=1)
mysql error: You have an error in your SQL syntax near 'FROM moderator,user WHERE moderator.userid=user.userid AND forumid IN (2,1,-1) A' at line 1

mysql error number: 1064

Date: Wednesday 27th of February 2002 06:07:30 AM
Script: http://www.ellardobluth.homelinux.ne.../newthread.php
Referer: http://www.ellardobluth.homelinux.ne...read&forumid=2

==================

think I'll just give up on this hack and try to revert it back out. Sounds like a good thing ...but can't get any help on it.

fastforward 02-27-2002 12:42 PM

Your problem is with the $emailtextonly variable. Are you sure you added the column with the 'DEFAULT 1' option? Also, check the template modifications for the CP to make sure it defaults to 1.

Do a query on the user table and see if you have any null values for the emailtextonly column.

Jawelin 03-11-2002 03:08 PM

Quote:

Originally posted by fastforward
[B]This hack adds additional email features to vB 2.2.1
  • Allows you to send mail via SMTP instead of using the site wide settings
    in your php.ini.
  • Allows you to send email as MIME/HTML with a plain text part allowing
    almost all email clients to view the email in a readable format.

Excuse the bump but it's a nice feature.
Just a question: is it possible send attachments with this kind of mail ?
Standard MIME should permit that... How could I send - for example - something attached to the webmaster email under certain conditions ?

Thanks

x69 04-20-2002 09:45 PM

I've been holding off on upgrading to 2.2.2+ b/c i was waiting on a new version hack of this to come out.. Does anyone know if this works on 2.2.5? This is the only hack i've ever installed and it kinda scares me when i do anything like this.. I really wish SMTP support was included into vbulletin without having to do any hacks. If anyone has tried this in 2.2.5 plz let me know, Thanks
-X69

AzzKickr 11-23-2002 02:01 AM

just installed it on 228 and i can't even log in to admin CP, have nothing to delete on mime_html_smtp.inc after <? :(
what should i do? help me please :( :banana:


All times are GMT. The time now is 07:20 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.01208 seconds
  • Memory Usage 1,745KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete