/    Sign up×
Community /Pin to ProfileBookmark

Getting users name in email

Hi guys. I have been receiving some emails that either have my name in the title or in the email itself. I even have an account called “Webmaster” and the email might say “Hello Webmaster we are sending you this email….etc…”

For instance, when creating an outlook email account you give your First name and last name and then your email address. They are some how getting that first name and using it inside the emails, or even in the subject line of the emails.

So they are some how getting my acount name that is used with that email address and using it in the emails. I have gotten emails like this in outlook and yahoo.

Do you guys have any idea how this could be duplicated?

For instance, If I send an email to [email][email protected][/email] could I have the email have code in it that would read his account name and use that in a variable that respsents his name and have the email say something like “Hello Joe Wels we are sending this email…etc..”

Is that even possible? IF not then how are these people doing it?

Thanks a ton guys!?

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@96turnerriNov 01.2004 — i think the email was sent using some sorta server side code that got your name from a site or sell-off database, not changed by outlook
Copy linkTweet thisAlerts:
@sszettellaNov 04.2004 — This is done using "additional headers" argument to the mail function. Here's an example:

mail('[email protected]', 'test message', 'just testing the headers',

"To: Steve Szettella <[email protected]>n".

"From: My Test Program <[email protected]>n");


As far as getting the actual values for the recipient's name, I'll leave that as an exercise for the reader. I might suggest an html form, and a:

$_REQUEST['first_name'] $_REQUEST['last_name']

cheers!

z
Copy linkTweet thisAlerts:
@96turnerriNov 04.2004 — that would just get the name from the headers sent when you email them, therefore you have to know there name to put the header in, he is after a way to email people where you dont know the name and put it in from outlook, completly different ?
×

Success!

Help @Arc spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...