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)

nuno 01-06-2002 07:55 PM

PHP Version 4.1.0.
I'm running Apache Version 1.3 and IIS5 Default SMTP Server.

fastforward 01-06-2002 08:02 PM

Quote:

Originally posted by nuno
PHP Version 4.1.0.
I'm running Apache Version 1.3 and IIS5 Default SMTP Server.

Is Apache on Windows too, or just the SMTP server? I haven't tested this with Windows.

If you still want to keep trying with this, could you add a debug line in mime_html_smtp.inc file in the mime_mail() function to identify the point at which it fails?

Put
Code:

echo "DEBUG\n"; exit;
at the first line then keep moving it down until it no longer shows up.

I'll understand if you don't have the time :)

nuno 01-06-2002 08:06 PM

yup Apache and SMTP Server :)
ok lets start then ;)

nuno 01-06-2002 08:09 PM

Warning: Missing argument 6 for mime_mail() in vb\admin\mime_html_smtp.inc on line 16
DEBUG

fastforward 01-06-2002 08:26 PM

Quote:

Originally posted by nuno
Warning: Missing argument 6 for mime_mail() in vb\admin\mime_html_smtp.inc on line 16
DEBUG

Change the first line of the mime_mail() functin to this
Code:

function mime_mail ($tomail, $subj, $txtmsg='', $from='', $htmlmsg='', $textonly=FALSE) {

nuno 01-06-2002 08:44 PM

hmm
should i stop IIS5 SMTP Server?

fastforward 01-06-2002 08:49 PM

Quote:

Originally posted by nuno
hmm
should i stop IIS5 SMTP Server?

When? why?
This hack still needs a real SMTP server to be available. It doesn't send mail directly to the recipients remote mail server.

nuno 01-06-2002 09:00 PM

i c
dunno whats wrong with my settings, but i cant make this hack to work with my server :(
i'm forced to uninstall it :(
tx 4 all your help Paul :)

chaz7979 01-11-2002 12:13 AM

I just want to set up my board so that the email notify mails go out in html so html links can be read. If people don't have html they will jsut see the code and be able to read the rest of the email text right?

If so How can I set up the board to do that? Should be a matter of adding a MIME header to the mail code but I don't know where that is. Any help you could give me would be great.

fastforward 01-11-2002 12:27 AM

Quote:

Originally posted by chaz7979
I just want to set up my board so that the email notify mails go out in html so html links can be read. If people don't have html they will jsut see the code and be able to read the rest of the email text right?

If so How can I set up the board to do that? Should be a matter of adding a MIME header to the mail code but I don't know where that is. Any help you could give me would be great.

There's a bit more to it than adding a MIME header. You need to actually encode the HTML using base64. All the necessary functions are available in php, or you can use one of the php classes distributed at zend.com, or you can use this hack and only change the mail() call to mime_mail() in the relevent file that sends notify messages (functions.php).


All times are GMT. The time now is 09:25 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.01146 seconds
  • Memory Usage 1,739KB
  • 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_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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