Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 19th, 2006, 05:04 AM
Registered User
 
Join Date: Jan 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default mail() function and From line

Hey got this problem ,

I have something like this:
.
.
$from = "admin@mypage.com";
.
mail($to, $subject, $message)

ect.

The mail sends fine yet when I look at the from line it always gives the from address from what ever my dns is. I know its a setting in my php.ini and I have a ticket into my hosting yet.

When I ran some code that I got from the php5,apache,mysql books that has almost the same code I can change the from line into anything I want.

So what am I doing wrong ? or some other insite would be great thanks for any help.

 
Old January 19th, 2006, 09:04 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 154
Thanks: 0
Thanked 0 Times in 0 Posts
Default

check:
http://p2p.wrox.com/topic.asp?TOPIC_ID=37975

I hope this help :)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Send mail and attachments with PHP mail function Lofa Beginning PHP 1 June 2nd, 2008 03:24 PM
Line break on mail sent Maxxim ASP.NET 1.0 and 1.1 Basics 3 September 4th, 2006 11:45 AM
retreive function/Line from macro or function? MikoMax J2EE 0 April 1st, 2004 04:42 AM
Using GETDATE in an In-Line function Mitch SQL Server 2000 13 March 25th, 2004 08:46 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.