Lost Password?

Go Back   CodeCall Programming Forum > Web Development Forum > PHP Forum

PHP Forum Use this forum to discuss all aspects of PHP Development. PHP is a server-side, cross-platform, HTML embedded scripting language that lets you create dynamic web pages.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-13-2008, 10:25 AM
TcM's Avatar   
TcM TcM is offline
Terminator - I'll be back
 
Join Date: Aug 2006
Location: In a technologic world :p
Posts: 5,709
Rep Power: 47
TcM is a jewel in the roughTcM is a jewel in the roughTcM is a jewel in the rough
Default Mailing Question

I am sending an email from my website, and in GMail it's showing:
mailed-by: prs.ionicware.com
As I am using Toasted Penguin as hosting.

Is there a way I can change that to my website URL or something like that via a parameter or something?

Thanks
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall


Business Directory | Technology Blog | Windows Help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 05-13-2008, 02:20 PM
Xav's Avatar   
Xav Xav is offline
Guru
 
Join Date: Mar 2008
Location: London, England
Posts: 2,969
Last Blog:
Piano Exam
Rep Power: 25
Xav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to all
Send a message via MSN to Xav
Default Re: Mailing Question

Check out the parameters at PHP Mail.
__________________
Xav, the power of youth
Worship the Creator... not his creations
Web Site | Beta Site
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-13-2008, 03:37 PM
TcM's Avatar   
TcM TcM is offline
Terminator - I'll be back
 
Join Date: Aug 2006
Location: In a technologic world :p
Posts: 5,709
Rep Power: 47
TcM is a jewel in the roughTcM is a jewel in the roughTcM is a jewel in the rough
Default Re: Mailing Question

Quote:
Originally Posted by Xav View Post
Check out the parameters at PHP Mail.
[sarcasm]
Yeah that helped a lot
[/sarcasm]
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall


Business Directory | Technology Blog | Windows Help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-13-2008, 04:02 PM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 19
Posts: 2,345
Last Blog:
PHP Function Overloadi...
Rep Power: 50
John is a glorious beacon of lightJohn is a glorious beacon of lightJohn is a glorious beacon of lightJohn is a glorious beacon of lightJohn is a glorious beacon of light
Send a message via AIM to John
Default Re: Mailing Question

When using the mail function, the From header must be set. If you do not explicitly set it, it will use the server's default [prs.ionicware.com]. You can set it either by
PHP Code:
$headers 'From: webmaster@example.com' "\r\n";
mail($to$subject$message$headers); 
or by defining the the sendmail_from directive in your personal php.ini file.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Blog
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-13-2008, 04:15 PM
phpforfun's Avatar   
phpforfun phpforfun is online now
Programming God
 
Join Date: Feb 2008
Posts: 511
Last Blog:
ubuntu... do not upgra...
Rep Power: 5
phpforfun will become famous soon enough
Default Re: Mailing Question

Quote:
Originally Posted by John View Post
When using the mail function, the From header must be set. If you do not explicitly set it, it will use the server's default [prs.ionicware.com]. You can set it either by
PHP Code:
$headers 'From: webmaster@example.com' "\r\n";
mail($to$subject$message$headers); 
or by defining the the sendmail_from directive in your personal php.ini file.
Bump, Jordan, remember my problem? lol
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 05-13-2008, 04:21 PM
TcM's Avatar   
TcM TcM is offline
Terminator - I'll be back
 
Join Date: Aug 2006
Location: In a technologic world :p
Posts: 5,709
Rep Power: 47
TcM is a jewel in the roughTcM is a jewel in the roughTcM is a jewel in the rough
Default Re: Mailing Question

Quote:
Originally Posted by John View Post
When using the mail function, the From header must be set. If you do not explicitly set it, it will use the server's default [prs.ionicware.com]. You can set it either by
PHP Code:
$headers 'From: webmaster@example.com' "\r\n";
mail($to$subject$message$headers); 
or by defining the the sendmail_from directive in your personal php.ini file.
But that sets the email address it's emailed from right? (So if anyone presses reply it will reply to that email) but the mailed-by in GMail is not the from field. I already set the from field as my email.

Where is the php.ini?

Quote:
Originally Posted by phpforfun View Post
Bump, Jordan, remember my problem? lol
What's that?
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall


Business Directory | Technology Blog | Windows Help

Last edited by TcM; 05-13-2008 at 04:24 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 05-13-2008, 05:09 PM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 19
Posts: 2,345
Last Blog:
PHP Function Overloadi...
Rep Power: 50
John is a glorious beacon of lightJohn is a glorious beacon of lightJohn is a glorious beacon of lightJohn is a glorious beacon of lightJohn is a glorious beacon of light
Send a message via AIM to John
Default Re: Mailing Question

You have to make/define your own php.ini. Where is the mailed-by label in gmail? If I know what you are actually talking about, I can probably answer your question better
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Blog
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 05-13-2008, 05:23 PM
phpforfun's Avatar   
phpforfun phpforfun is online now
Programming God
 
Join Date: Feb 2008
Posts: 511
Last Blog:
ubuntu... do not upgra...
Rep Power: 5
phpforfun will become famous soon enough
Default Re: Mailing Question

well it was to jordan, but here.

at one time, I had a mail script, worked PERFECT!, sent HTML, and would be sent from Whoever@analyzethathost.com

then something happened, and it changed, jordan and I worked on it for a while, he reset everything, but now, it sends from whoever@prs.ionicware.com, and it will show the HTML in the body
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 05-13-2008, 07:09 PM
Jordan's Avatar   
Jordan Jordan is online now
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Age: 25
Posts: 4,512
Last Blog:
Zend: PHP Security Web...
Rep Power: 50
Jordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud of
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default Re: Mailing Question

Your problem was fixed though after I reinstalled exim. Your email came through to my gmail correctly (with HTML and the correct from address). Are you still having a problem with it?

I'd also like to point out that it is working correctly from CodeCall to gmail. I suppose it has something to do with the PHP coding - TcM, can you post your email code?
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 05-14-2008, 05:46 AM
TcM's Avatar   
TcM TcM is offline
Terminator - I'll be back
 
Join Date: Aug 2006
Location: In a technologic world :p
Posts: 5,709
Rep Power: 47
TcM is a jewel in the roughTcM is a jewel in the roughTcM is a jewel in the rough
Default Re: Mailing Question

Quote:
Originally Posted by John View Post
You have to make/define your own php.ini. Where is the mailed-by label in gmail? If I know what you are actually talking about, I can probably answer your question better
Sure. See the attached pictures. This is a mailing list, and I sent it to two email addresses one is fine and the other one came with that 'mailed-by' field.. I don't know why.. it's the same script and both were sent at the same time.

Quote:
Originally Posted by phpforfun View Post
well it was to jordan, but here.

at one time, I had a mail script, worked PERFECT!, sent HTML, and would be sent from Whoever@analyzethathost.com

then something happened, and it changed, jordan and I worked on it for a while, he reset everything, but now, it sends from whoever@prs.ionicware.com, and it will show the HTML in the body
Not actually my problem. Your is showing in the from field....
Quote:
Originally Posted by Jordan View Post
I'd also like to point out that it is working correctly from CodeCall to gmail. I suppose it has something to do with the PHP coding - TcM, can you post your email code?
Code:
send_mail($row[email],$title,$content,$checkhtml);
This code in a loop (as it's a mailing list)
Attached Thumbnails
To view attachments your post count must be 1 or greater. Your post count is 0 momentarily.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall


Business Directory | Technology Blog | Windows Help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about IT jobs in USA. Red19 The Lounge 9 06-01-2008 10:13 AM
Question about C# user int input TheMagicalRock C# Programming 3 04-01-2008 08:36 AM
Majoring in Computer Science, got a question shimmy General Programming 7 02-03-2008 11:09 AM
Sending mail to a group of people (Mailing list support/Emulation) nesrait easyContact 1 07-25-2007 08:48 PM


All times are GMT -5. The time now is 03:04 PM.

Contest Stats

John ........ 87.50000
dargueta ........ 75.00000
Xav ........ 50.00000
MeTh0Dz ........ 20.00000
gaylo565 ........ 18.00000
Johnnyboy ........ 3.00000

Contest Rules

Ads