Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Mail

PHP mail and regular mail?

the mail() function

Moderators: macek, egami, gesf

PHP mail and regular mail?

Postby Virtuoso » Sun May 15, 2005 2:38 pm

How is someone supposed to tell the difference between the mail() and if someone sends a real mail?
Can't people just send spam emails using other people's names?
ex:
Code: Select all
<?php
mail ('someone@someone.com','account information',"Your account's to be terminated by me within 5 days.",'From: bgates@microsoft.com')
?>
User avatar
Virtuoso
php-forum Active User
php-forum Active User
 
Posts: 268
Joined: Mon Jul 21, 2003 7:05 am

Postby sadisticmachine » Sun May 15, 2005 3:50 pm

I think careful header examination could prove where the mail came from, but I just tested that code, and I sent myself mail from Bill.

EDIT:

Code: Select all
Return-Path: <anonymous@st36.startlogic.com>
Received: from st36.startlogic.com ([66.235.212.136])
   by mx-a065b19.pas.sa.earthlink.net (EarthLink SMTP Server) with SMTP id 1dxsRx6S43NZFpO1
   for <sadmac@earthlink.net>; Sun, 15 May 2005 16:49:35 -0700 (PDT)
Received: (qmail 44556 invoked by uid 80); 15 May 2005 23:47:43 -0000
Date: 15 May 2005 23:47:43 -0000
Message-ID: <20050515234743.44555.qmail@st36.startlogic.com>
To: sadmac@earthlink.net
Subject: account information
From: bgates@microsoft.com
X-ELNK-AV: 0


There's some evidence, as you see, of where the mail came from. a few more header parameters could make some of that go away, but there is a sure way to verify the domain/ip.
sadisticmachine
New php-forum User
New php-forum User
 
Posts: 109
Joined: Tue Nov 02, 2004 5:33 am

Re: PHP mail and regular mail?

Postby WiZARD » Mon May 16, 2005 7:40 am

Virtuoso wrote:How is someone supposed to tell the difference between the mail() and if someone sends a real mail?
Can't people just send spam emails using other people's names?
ex:
Code: Select all
<?php
mail ('someone@someone.com','account information',"Your account's to be terminated by me within 5 days.",'From: bgates@microsoft.com')
?>

If you find free SMTP server yes you are can do it SPAMming, but I'm not recommend it cuz if you are catched you are prisoner.
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol

Postby Virtuoso » Mon May 16, 2005 12:09 pm

I can just use my computer to send emails. How do I know if its SMTP server?
I'm just interested in this topic becuase I got some returned failed deliverly mail from someone I never sent a mail to.
User avatar
Virtuoso
php-forum Active User
php-forum Active User
 
Posts: 268
Joined: Mon Jul 21, 2003 7:05 am

Postby Alexej Kubarev » Mon May 16, 2005 12:49 pm

its a fraud..
User avatar
Alexej Kubarev
Site Admin
Site Admin
 
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län

Postby WiZARD » Tue May 17, 2005 4:47 am

Virtuoso wrote:I can just use my computer to send emails. How do I know if its SMTP server?
I'm just interested in this topic becuase I got some returned failed deliverly mail from someone I never sent a mail to.

http://www.softstack.com/freesmtp.html
http://www.thebestfree.net/free/freesmtp.htm

used google.com
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol


Return to PHP coding => Mail

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.