Hi, I''m trying to learn how to send emails to registered users with php mail function. Been online a lot and getting confused. I was wondering if anyone could explain how the set up is done and what is needed to accomplish this task. Any input on this topic would be appreciated.
Thankyou.
phpDave 0 Junior Poster
Recommended Answers
Jump to PostWhat code are you using at the moment and what errors (if any) does it return?
Jump to PostHi Dave,
Like Larry said, you will need to use a web host as PHP mail proberly isnt enabled on your localhost.
Try something like:
<?php $eol = "\r\n"; $to = ""; //the recipitant $subject = ""; // the subject $message = ""; // the …
Jump to PostHi diskhub,
I was wondering if you tell me what the @ before php functions does? I see it around a lot.
Thanks,
Larry
Hi Larry,
The @ symbol before a function is a error supressor e.g.
@mail(.........);
would stop:
Warning: mail() [function.mail]: Failed to connect …
All 11 Replies
Will Gresham 81 Master Poster
phpDave 0 Junior Poster
Larry_b 2 Newbie Poster
Larry_b 2 Newbie Poster
phpDave 0 Junior Poster
Larry_b 2 Newbie Poster
diskhub 0 Newbie Poster
Larry_b 2 Newbie Poster
diskhub 0 Newbie Poster
Larry_b 2 Newbie Poster
phpDave 0 Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.