[SOLVED] mail function() question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
mudkicker
Forum Contributor
Posts: 479
Joined: Wed Jul 09, 2003 6:11 pm
Location: Istanbul, TR
Contact:

[SOLVED] mail function() question

Post by mudkicker »

when we use mail question and send email to an address in email we see the to bar has some another email that we dont use. why is this so and how can we solve this?
User avatar
kendall
Forum Regular
Posts: 852
Joined: Tue Jul 30, 2002 10:21 am
Location: Trinidad, West Indies
Contact:

Post by kendall »

mud,

Well mud from what someone told me you can put anything in the 'To' bar ah mean to say it is just a String Name and doesnt represent the acutally email or place its coming from...you actually use what ever SMTP server that the mail() php script is residing at.

There are headers that you can you to 'disguise' your 'To' to may be represent an email address for reply to circumstances but that is just aliasing.

what im trying to say is just cause you see kendall@maymail.com in the 'To' doesnt mean it came from that email address or even maymail.com server imagine if you got a 'To' heading saying 'Your Mudda'...scary huh?

to solve it you need to use headers i think i posted a question once in which i quote my mail() script using it...try looking thorugh my postings for mail() and see what you come up with

Kendall
User avatar
mudkicker
Forum Contributor
Posts: 479
Joined: Wed Jul 09, 2003 6:11 pm
Location: Istanbul, TR
Contact:

Post by mudkicker »

thanks mate it helped me too much!
Post Reply