Jump to content

PHP Mail shot help


Orionsbelter

Recommended Posts

Hi when i send off a mail shot, it comes up as it was sent by @ip-68-178-248-83.ip.secureserver.net, i want it to just come up as my domain.

 

here is the code


		$subj		=	"Invitation From Lock Down City";
		$emess		=	"Hi There $v,
You Have Been Invited To Visit http://www.lock-down-city.com, 
One Of The Newest and greatest online games, But Needs Players Online So It Can Go Bigger. This Will Most Probably Be The Best Browser Based Gangster RPG You Ever Set Your Eyes on.

Just Visit The Tite & View The List Of Features, If Your Not Satisfied Then Post A Support Ticket To Have Your Account Deleted. Its That Simple! You Never Know You Might End Up Loving It.";
		mail("$v","$subj","$emess","From: Lock-Down-City");

Link to comment
Share on other sites

Try this code:

 

<?php 

mail("$v","$subj","$emess","from: noreply@".str_replace('www.','',$_SERVER['HTTP_HOST']), "-fnoreply@".str_replace('www.','',$_SERVER['HTTP_HOST']));

?>

 

If your site is foo.com then it will appear from: noreply@foo.com

As I remember the -f specifies "return path" that is related to your issue.

 

I hope this helps.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.