0

Hello all. I have an email that i am sending with html. In the html is some php. I want it so that when someone opens the email i receive a confirmation. I am using this code for it.

mail($sendto, $subject, $message, $header);

It does not work. One thing i have noticed is that, when i try to echo something to error test it, this happens.


if i type my echo like this it works

echo(<p>"working"</p>);

thats not normally how i would type it.

if i type this how i normally would . it doesn't echo to the screen

echo"working";

is there something i do not know about writing php in an html email. Either way how could i get a mail sent automatically when someone opens it. I dont need their email. I'm only sending an email back to my email address. thanks all

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by jonnyboy12
0

Hi....

Syntex for mail()function is:
mail(to,subject,message,headers,parameters)
Parameters to,subject & message are required,header& parameters are optional.

Thanks

Edited by Ezzaral: REmoved spam links.

0

Hello. Does this mail() need to be run from somthing like xxamp where your smtl is previously configured. im tring to do this from an email?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.