Mail attributes

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

msmekens
New php-forum User
New php-forum User
Posts: 2
Joined: Tue Mar 04, 2003 12:31 pm
Location: Belgium

Mail attributes

Postby msmekens » Sat Aug 30, 2003 11:20 am

Dear PHPers,

I ahve a little email question. I have a script on the site where people can add links. If their link gets added and validated, they get a mail telling them so. Now I want to adjust the From: on th e mail. Now it syas my name, probably from when I bought the host package. How can I change this From: attribute into sth I want ?

Many thanks,
M

toweter
New php-forum User
New php-forum User
Posts: 26
Joined: Sat Aug 30, 2003 9:04 am

Postby toweter » Sat Aug 30, 2003 11:39 am

Add header-informations:

Code: Select all

$header="From:Thats Me <mail@domainyouwant.com>";
mail("you@yourdomain.com","Email to you","Message-Text",$header);

msmekens
New php-forum User
New php-forum User
Posts: 2
Joined: Tue Mar 04, 2003 12:31 pm
Location: Belgium

Postby msmekens » Sat Aug 30, 2003 1:16 pm

Oeps, thanks for the fast answer :wink:
It looks though that I should read that manual better, didn't know it was so obvious.
Many thanks,
M


Return to “PHP coding => General”

Who is online

Users browsing this forum: Google [Bot], Google Feedfetcher and 1 guest