PDA

View Full Version : email problems


Swanny231
08-30-2004, 12:40 AM
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");