Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP mail() with attachments?

Status
Not open for further replies.

Leozack

MIS
Joined
Oct 25, 2002
Messages
867
Location
GB
Hi, I know you can use PHP mail() to send a mail, but (ignoring the entries you give it for where it came from) where does it show up as coming from? If you ignore the from address etc?
What's more important is how can it include attachments like the picture they just submitted?

_________________________________
Leozack
Code:
MakeUniverse($infinity,1,42);
 
The easiest way to handle complex emails is by using the user-defined class PHPMailer:
As far as the sender address, that is set in your code -- but the SMTP server you're using makes a difference as to how you set it.

Want the best answers? Ask the best questions: TANSTAAFL!!
 
Thanks guys. I remember looking at that before when I didn't understand it much ;)
BTW, are there any newsletter type gui's already written using it? As in an admin gui for mangeagement and sending mails, a user gui to sub/unsub and change prefs etc? If not I shall write one but I'm guessing it's been done multiply, along with other mass mail interfaces =)

_________________________________
Leozack
Code:
MakeUniverse($infinity,1,42);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top