This is a discussion on Sending email using PHP...... within the Programming forums, part of the General Computing category; Ok....
1st time on PHP today , self learning....managed to configure PHP - do the various settings on IIS and also ...
Ok....
1st time on PHP today , self learning....managed to configure PHP - do the various settings on IIS and also have PHP read and write to a sample DB on MYSQL......
So at the end of the day , I have managed to read a particular column data and also write to a specific column data....
Now what I am interested in knowing / learning is : How can I have PHP - "mail" me the contents of the user form.....
for example....the php page which i created....opens a page with a txt box...on clicking submit it writes the data to mysql db.....
now what I want to do is have the inputed text 'emailed' to a particular email address...(along with the data going into the DB ).....can it be done ?
or has it to go only to 1 , i.e either the db or either the mail....
looking forward for some help here regarding this.....please post examples with codes and how to go abt it if possible.....
trying to figure that out...i guess i need to pass the authentication password along with the script as my smtp server needs authentication for outgoing mails......
@viridian : nothing shamless in what u did , its out there for our reference and usuage thanks.
Checking it out...lets see if it helps.....not checked it yet , but im guessing it might involve some routing via their domain.......just checking....thanks for the reference.
I DO not have a local SMTP server on my PC and I am trying to send external emails to .gmail.com and .yahoo.com domains........and thats why I'm guessing im getting the error messages.
Correct me if I'm wrong , I would need to have the needfull files placed on a configured SMTP server.......