Hello every one i want to send emails to other peoples.
i want to do this. when i type any email adress in text field and when
we click send button to send email to text field Email address.

simply i want to send mail different email addresses.
if any body know how can i do this so please please send me
the source code or PHP code thank.

Recommended Answers

All 9 Replies

what do you mean by sending mail to others peoples in dreamwever?
There is a mail function in PHP as suggested by cereal.Make sure you have SMTP server configured if you want to use mail() function().

Hell IIM,
Thanks you for reply.Actually i want to simple php code send to custom email addresses
Example i have simply 4 textfields:

  1. mailto //this is a (Mailto) textfield.
  2. mailfrom //in this text field i want to my own email address.
  3. subject //And this is our Email subject
  4. message //And here type our message.

i mean when we click submit button then send our mail to (mailto) typed email address.when the mail
send succssfully.then open again this contact page.

Kindly attach a sample file. Or attach php code

we use already this code.all things work fine. No error but we recieve to sended email address

<?php
//--------------------------Set these paramaters--------------------------

// Subject of email sent.
$subject = "subjecttitle:\n\n";

// Your email address. This is where the form information will be sent.
$emailadd = "mailto:\n\n";
//
$emailfrom = "frommail:\n\n";
$message = "bodymessage\n\n";
// Where to redirect after form is processed.
$url = 'http://www.websitelink.com';

mail($emailadd, $subject, $emailfrom , $message, 'From: '.$emailadd.'');
echo '<META HTTP-EQUIV=Refresh CONTENT="0; URL='.$url.'">';
?>

we use this sample

Ok, and what's wrong with the sample?
Anyways, all you have to do is to embed the content from the form into the body of the massage and you should be good to go ...

But problem is this. it is not work.cannot send mail if anything wrong in this php file code so kindly
solve Thanks

I think you are not understand what can i want to do.
Simply send mail to text field 1 typed email address.

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.