vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   email problems (https://vborg.vbsupport.ru/showthread.php?t=68857)

Swanny231 08-30-2004 12:40 AM

email problems
 
Ok to start I have been over at vb.com and we tried to work this out but is cant be done..

The problem is I cant get my host to change the mail:from address in the php.ini file cause they dont want sites to send mail from nobody@domainname.com, they are asking me to change it in the script.

Now I have tried to find a way to change it but vb.com ask me to come here to ask. What file do I need to edit to get the email to send from , say the admin insted of from:nobody ?

rake 08-30-2004 09:31 AM

Are you talking about vbulletin or another script? vBulletin sends mail marked as being from the e-mail address set in your cp options.
For other scripts, the syntax is:

mail ( string to, string subject, string message [, string additional_headers [, string additional_parameters]])

To the change the from header, you'd have to use something like:
mail("someone@x.com", "subject", "message", "From: me@domain.com");


All times are GMT. The time now is 03:35 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.01110 seconds
  • Memory Usage 1,708KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete