Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $from = 'anothermail@gmail.com';
- $subject = 'test';
- $message = 'body';
- $message = wordwrap($message, 70);
- // send mail
- if (mail("my-mail@gmail.com",$subject,$message,"From: $fromn")){
- echo "It works";
- }
- else{
- echo "Fail";
- }
- $from = 'anothermail@gmail.com';
- $subject = 'test';
- $message = 'body';
- $message = wordwrap($message, 70);
- // send mail
- if (mail("my-mail@gmail.com",$subject,$message,"From: ".$form."n")){
- echo "It works";
- }
- else{
- echo "Fail";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement