SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict mh8759's Avatar
    Join Date
    Jun 2000
    Location
    Slovenia, Europe
    Posts
    205
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How to send mail with PHP and what does the server need to do this?
    I want to make my own site referer.
    Anyone knows the code?

    Thanks,
    Mare

  2. #2
    SitePoint Enthusiast
    Join Date
    Oct 2000
    Posts
    89
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Great Dane
    Gokhan ARLI

  3. #3
    Non-Member
    Join Date
    Apr 2000
    Location
    Waco, Texas.
    Posts
    188
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    	$to = "their@email.com";
    	$from = "yours@email.com";
    	$body = "Email message here"
    	$headers = "From: $from\r\n"; 
    	$headers .= "Reply-To: $from\r\n"; 
            $success = mail($to, "$subject", $body, $headers); 
    
    	if($success)
    	{
    		echo "Mail sent to $to";
    	}

  4. #4
    SitePoint Addict mh8759's Avatar
    Join Date
    Jun 2000
    Location
    Slovenia, Europe
    Posts
    205
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •