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 05:22 PM

well
there are 7 new fields at email options:
  • Use SMTP
  • SMTP Host
  • SMTP Port
  • This Hostname
  • Requires Authorization
  • SMTP Username
  • SMTP Password

where's the field to specify something like
Send Emails using MIME/HTML? :confused:

fastforward 01-06-2002 05:31 PM

Ahh... oops! :o

The user selectable option is in the User CP along with the other email notification settings, but it seems I left out the main control panel option.

The way it is now, means unless the user selects 'Text only emails' in their options, MIME will be sent by default.

Give me 10 minutes and I'll add the master switch to the main CP.

nuno 01-06-2002 05:32 PM

okie dokie

fastforward 01-06-2002 05:44 PM

Just run this to add the missing column
Code:

INSERT INTO setting VALUES (300,11,'Use MIME/HTML','html_use','1','This will send mail as MIME/HTML unsless the user selects otherwise.','yesno',5);
Everything else is already in place.

nuno 01-06-2002 05:53 PM

*dang*
no mails are sent now :(

fastforward 01-06-2002 06:03 PM

Quote:

Originally posted by nuno
*dang*
no mails are sent now :(

No errors? or blank pages? Whic options were you using. Does it work if you don't use SMTP?

nuno 01-06-2002 07:13 PM

only works if i set "This will send mail as MIME/HTML unsless the user selects otherwise" to NO

fastforward 01-06-2002 07:33 PM

Quote:

Originally posted by nuno
only works if i set "This will send mail as MIME/HTML unsless the user selects otherwise" to NO
I can't seem to duplicate this error. Which email isn't it sending and what are the user settings for the user that should get it?

nuno 01-06-2002 07:42 PM

i'm testing it with sendtofriend now
user has Text Only Emails set to NO
Under CP i have
Use MIME/HTML set to YES
Use SMTP set to Yes

If i set MIME/HTML to Yes under CP the board crashes everytime that mime_mail is called, like sendtofriend, lost password recovery, new registration, mass mail etc...
No errors are generated, the board just stalls out :(

fastforward 01-06-2002 07:49 PM

Hmm.. Doesn't sound good. What version of PHP are you using?
I'm using 4.0.6 and I've just tried your exact settings plus countless other combinations and I can't duplicate the error.

Double check the changes you made in sendtofriend.php. It should look like this:
Code:

  // START MIME/HTML/SMTP HACK
  eval("\$messagehtml = \"".gettemplate("email_sendtofriend_html",1,0)."\";");
  mime_mail($sendtoemail,$emailsubject,$message,"From: \"$bbtitle Mailer\" <$webmasteremail>",$messagehtml);
  // END MIME/HTML/SMTP HACK

Note: the html template does NOT need to exist even if you select MIME/HTML in the control panel.


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.01409 seconds
  • Memory Usage 1,734KB
  • 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
  • (2)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