-1

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.

4
Contributors
9
Replies
34
Views
4 Years
Discussion Span
Last Post by razamughal67
0

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().

0

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

0

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.'">';
?>

0

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 ...

0

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

0

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

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.