rigueira
Nov 27 2007, 11:28 AM
| | Which other methods to send mail from a form?
I just know mail function, like: mail(string to, string subject, string message)
Has anyother? |
Reply
truefusion
Nov 27 2007, 11:35 AM
The mail function provided by default in PHP is more than enough to fit all the needs of a programmer concerning this. In order to get other mail functions, you would have to install some PHP mail modules into your server or when compiling PHP from source.
Reply
rigueira
Nov 27 2007, 12:39 PM
but many server do not accept mail function, and other alternatives is necessary
Reply
Galahad
Nov 27 2007, 12:46 PM
I believe Trap17 servers allow mail() function, I'm not sure, as I didn't have the need to use it... And since you do need to install additional libraries for PHP, and recompile, you won't be able to do that, until you run your own server, because most hosts run only the default PHP binaries, with maybe few additional functionalities included... mail() function is more than enough to send an email automaticaly, from your script... Move your hosting to Trap17, and you'll be able to use mail() function...
Reply
t3jem
Nov 27 2007, 10:52 PM
QUOTE(Galahad @ Nov 27 2007, 05:46 AM)  I believe Trap17 servers allow mail() function, I'm not sure, as I didn't have the need to use it... I've tried it and the mail() function works great. I think it's all anyone would need and like Galahad said, you wouldn't be able to install PHP addons unless you were running your own web server in which case you could just enable the mail function.
Reply
sheetal
Aug 26 2008, 06:29 AM
I am using HTML code in mail(), in which i am using <img> tag but cant able to use <iframe> tag.. Plz help me in using iframe tag
Reply
shadowx
Aug 26 2008, 05:24 PM
Mail() does indeed work at T17  The reason many hosts dont allow it, especially the free ones, is it is too easy to abuse. you can easily use the mail function to send lots of spam, hundreds a minute so most free hosts dont allow it. As for alternatives i dont think there are any in PHP as there is no real need for an alternative! @sheetal: Have you tried setting the HTML into a variable like this: CODE $html = "<HTML> My content here</HTML>"; mail("enail@email.com", "subject", $html); HTML sends fine in PHP though ive never tried sending Iframes. The only reason i can see for this not working is that the email provider, eg hotmail, has disabled the use of Iframes. You can test this by setting up your own mail server and using that for testing, but its a little complex.... My gut feeling is that the email provider has disabled the use of frames and Iframes, and to be fair i dont see much use for them in an email
Reply
galexcd
Aug 26 2008, 08:18 PM
QUOTE(sheetal @ Aug 25 2008, 11:29 PM)  Plz help me in using iframe tag QUOTE(shadowx @ Aug 26 2008, 10:24 AM)  My gut feeling is that the email provider has disabled the use of frames and Iframes, and to be fair i dont see much use for them in an email No webmail service or any mail client supports the iframe tag. I have never seen an iFrame in an email, and I'm glad that I haven't. The ability to insert iFrames into emails can lead to major security risks for the recipients email account, and it also completely defeats the point of an email. An email isn't an html page. It is a message, and yes I know you are able to insert basic HTML into emails such as images and tables, but that's just to make the email more stylish. You should technically never be able to add frames, javascript, or other advanced html into emails. If you are familiar with making dynamic images rendered by a server you can use that if there is some dynamic content you wish to put in an email, or you could place a link to the page you wanted to frame in your email, but other than that I can think of no other solution to your problem.
Reply
shadowx
Aug 26 2008, 08:55 PM
Back to the original post... is there a javascript send mail function? Or a way to do it? Im sure that i wanted to send an email from a page but didnt know PHP so i got a JS one but it gave an alert to the user asking for permission to send it, and so i learned PHP and here i am today able to do so much from just the desire to send an email!
Reply
galexcd
Aug 31 2008, 07:16 AM
QUOTE(shadowx @ Aug 26 2008, 01:55 PM)  is there a javascript send mail function? Hmm, well I know there is a way of using mailto to open the user's default email client and filling the fields out for them automatically, and there might be a javascript equivalent to that, however the user must still click on the send button manually to be able to send the message. If javascript alone could send messages it would need to use an email from the user's computer, because javascript alone couldn't contact a server and command it to do something without some server side language sitting there accepting javascript's pleas. So unless javascript is hiding some virtual server in its pocket, I don't think javascript alone could do anything like this.
Reply
Recent Queries:--
php send mail loop - 21.78 hr back. (1)
-
sendmail function php - 42.59 hr back. (1)
-
php send email free smtp - 80.22 hr back. (1)
-
javascript send php - 167.98 hr back. (1)
-
php sendmail function - 242.19 hr back. (1)
-
send mail php code - 431.02 hr back. (1)
-
sendmail for xampp - 468.38 hr back. (1)
-
php sendmail html email - 481.13 hr back. (1)
-
how to set up form-to-mail with xampp - 481.66 hr back. (1)
-
php send mail - 486.74 hr back. (1)
-
enalble php mail function - 496.37 hr back. (2)
-
source code to sent mail - 519.16 hr back. (1)
-
drupal mail function - 617.76 hr back. (1)
Similar Topics
Keywords : php, functions, send, mail
- A Question About Php Mail
A question about how php send mail using which email account in SMTP s (1)
Functions
??? (9) I created this topic mainly because I wanna get a clear interpretation about those listed PHP
functions. The first function is while($row=mysql_fetch_array($query)) { ....
Requirements For Mail()
(2) I'm trying to use mail() function. What I have to do beforehand? I have XAMPP installed, is
Mercury one of mail servers? If so, what I could do to use it?....
Php Email Validation
A PHP data validation class with many functions (1) I've been reading through my old php book (PHP 4.1) and came across this data validation class.
It can check a number of things ranging from telephone numbers , credit card number formats, email
address and some others. I checked out some of the methods although I didnt expect it to work 100%
because I've found source code errors thoughout the book and CD. I tested out a few of the
methods to check and some of them did return expected results but some didnt either so the data
validation class was not perfect and it didnt really bother me. The cool thing I found....
Arrays Outside A Function
Need to have arrays available to all functions. (3) I've got a bunch of arrays that i want to use for more then 1 function. when i declear the
arrays outside a function i cant use it in a function. This code was originally written in
javascript by another person but since I plan to use it and extend it with php I had to change it
from javascript to php code. In the javascript code the arrays were decleared outside the functions
with 'var arrayname' I read somewhere that declearing javascript variables with
'var' gives it global access. Any ideas on how I can go about declearing 1 set of these
arrays t....
Prequirement For Mail()
(1) I'm asking because I often see so many books told me to use mail() feely, but I don't really
understand. Can we really use this without even have a mail server or anything related to that? Or
even if we need something before using this function, can anyone tell me waht those are? Right now
my website had not have this function yet, but I'm trying to, because it's necessary
sometimes when I got another project.....
Encrypt Functions
(0) Here is my 3rd Code: By this code you can encrypt your text: CODE <?php $a =
md5("hello"); $b = base64_encode("hello"); $c =
base64_decode("hello"); print "md5 = ".$a." base64_encode =
".$b." base64_decode = ".$c; ?> EASY!....
Mail() Clone
A PHP mail() function clone (5) A lot of free web hosts have disabled the mail() function so you cannot send emails using PHP. Does
anybody know of a script that makes a function "like" mail but is able to be installed in a web
accessible directory and called included into another script and called like that? Or maybe you know
how to make such a function? I just really need to find a way around the free hosts turning of the
mail() function. I need to figure out a way to send emails.....
[php](simple) Using Functions To Combine Values In A Form
Really simple example on how to combine values with function (2) I just learned this simple method on how to use functions to combine two values from a form. First
we create ourselves a simple POST form CODE <form method="POST"> Name:
<input type="text" name="nickname"> Location: <input
type="text" name="location"> <input type="submit"
value="Input"> </form> Now we add this php to that same file CODE
<?php $nick = $_POST['nickname']; $location =
$_POST['location' ....
Want To Send Mail But Smtp Disabled, Help Me!
(7) heyy...I have a problem, I have an account in another hosting service, but the SMTP and sendmail
was disabled for my account. and I want to send mail to all people who join my site (with php script
to send that mail), so I can't send mail to them. for more information, my operating sistem is
Linux and php version 4.4.1. I hear when drupal send e-mail without SMTP, is that true??? and can
I send mail when I already installed Drupal in my hosting service???? Please give me solution,
how can I send an e-mail when my sendmail and SMTP disabled!!!!....
Gd Functions
Questions (2) Hi all I want begin a new project , my new project is Photo blog ( weblog and image album ) in one
script for example you can post many image in one post at once case . so its very good and very easy
but we have some problems . if you can plz help me to fix this problems for example : we need
change image size for page speed ( we dont want show 16 image in one page ) * we need GD functions
to change image size to smaller and then show smaller image at page if you know source or tutorial
about change image size plz post here . thankx we know we can change image size (w....
Wappymail_v1.50
wap free mail/ email admin script :-) (15) Here is my new wap mail script. You can use it as a free email sending service or an email admin
form (can set this option in config.php) its extremly simple to install and you will find full
instructions in the zip file. Please feel free to comment, rate, or update this script :-)
/tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" /> ....
Bulk Mail
How to do that (5) Hey , I have a problem . I wanted a script to send emails using PHP to more than 5000 email
addresses for my software. But if you use the regular mail() function it will cause tremendous
overload o the servers. I tried searching on the net but no use and i found some pre-built ones
which are either copyrited or using PHP 5 only. But I want to make my own function to send Bulk
Mails. If someone could give me a start I would be thankful. So does any one know how to send
bulkmail. Also I needed to give an option of using SMTP servers if PHP mail is not supported on....
Help With Mail And Attachments
Help on mail attachments (4) Hi, can someone please give me an example of how to send a zip or other filetype as an attachment
using the mail() command? Im also interested in sending to mail email address, for example i have a
.txt file full of email addy's like: mail1@blah.net mail2@blah.net mail3@blah.net how can i send
the file and or mail to all these addy's in one go? Mmm......
Wappy's Php Snippets
I will place here usefull php snippets and functions that i learn/use (13) Here is a function you can use to generate a simple random password for whatever use ;-) CODE
<? function rand_pass($numchar){ $string = str_shuffle
("abcdefghijklmnopqrstuvwxyz1234567890"); $password = substr ($string,
1, $numchar); return ($password); } //example echo
rand_pass('8'); // will return an 8 character long random password of numbers and
letters like c8k4ss42 ?> CODE tags added. Here is an extremly usefull search function
that will search a directory and....
Question About The Mail() Function
(2) Hi, Is there any way of using the mail() function with an SMTP connection? Is there any way of
sending messages let's say for example using an email of yahoo? Any help about this woul be very
thankfull. Thanks in advance.....
How To Enable Mail() Function In Php
(1) im just trying to send mail by using a very simple php function mail() but it is not working.the
format is CODE $to = "email@example.com"; $subject = "Hi!";
$body = "Hi,\n\nHow are you?"; if (mail($to, $subject,
$body)) { echo("<p>Message successfully
sent!</p>"); } else { echo("<p>Message delivery
failed...</p>"); } I think there is something wrong with php.ini
setting..maybe something to do with SMTP ....
Some Php Functions Explaination Required
(2) Can some one please tell me what is the purpose of the following functions , although there's a
little explaination with everyline but i cant understand, can some one exaplin it bit clearly and
tell me that why it is needed in config.inc.php.. what is its purpose and will it work if i dont
include these files in config.inc.php thanks QUOTE ### Url were Website has been installed, not
'/' in end! define('C_URL','http://www.test.com/Website'); ### Internal
path to Website directory define('C_PATH','Z:/home/www.test.com/www/....
Send Mail In Strict Xhtml
form elements atribute Name (2) Im using xhtml strict, and trying to send a form to 'mail.php' which actually sends the
data, but it seems that php does not detect the $_POST ; if i do not assign a "name" attribute
in the form, but strict xhtml does not accept the name attribute in my form elements... When i try
to validate, it says... "there is no name attribute" and stuff... and what i say is yeah yeah
whatever you perverse Markup Validation Service, i knew that... but php does not recognize an id
attribute to use with $_POST so i can not send info, or tell me if i'm wrong? Wha....
Globals Inside Functions
(4) I've got the following function, that has a function inside of it, when I run it I get the
followin error: PHP Code: CODE Fatal error: Call to a member function on a non-object in
See the code below where I get the error message. I'm guessing the scope of my varaibles is
messed up, but I'm not sure how to fix it. I've abbreviated the code so as to make it easier
to read. PHP Code: CODE function getMemberRegistrationForm( &$tpl, &$db ) {
function displayRegistrationForm( $action, &$db, $defaults =....
Form To Php Mail. Attachment
(14) i know there are a few topics talk about attachment problem, but i want to know if anyone could show
me a basic code for attaching files like pictures with the message. I made a html form, and
redirect the information to my mail.php file to process the information and send it to my email. I
want to know what do i have to do to attach files like pictures. I tried to search on google, and
the codes are so complicated (i'm an amateur at this). Would it be possilbe if you could show me
the code and explain to me what it does and how i could customize it to fit my needs?....
Build Contact Mail
(3) Hi I Write One Contact Mail and i want to share with u at first File index.htm : in this file
build one form and post this form to and i find this php code on internet you can use this for
send mail : CODE <?php $MailToAddress = "Here"; // your email address
$redirectURL = "So Example Final.htm :blink: "; // the URL of the thank you
page. # optional settings $MailSubject = "Sample"; // the subject of the email
$MailToCC = "Back UP Mail"; // CC (carbon copy) also send the email to th....
Php G-mail Login
Compatable on all browsers (8) I fount a PHP G-mail login script to login to your g-mail using any browser. Even IE1, I installed
it on my site at http://www.gmail.mbd5882.trap17.com/ I tested it myself, Its safe. gmail-lite is
an html-only interface of GMail. It was develope it with PDA browser (mostly Netfront) in mind, it
should be workable with any browser on Earth (e.g. lynx, ie3, netscape4, opera5. The only tags being
used are A, B, FORM, H1, I, INPUT, P, SELECT, TEXTAREA, TABLE, TR, and TD (and META and STYLE in
HEAD). It alows you to send 10 invites at once and is fast. It uses cookies i, An....
Using The Image Editing Functions Of Php
Specifically, lines or regular polygons. (4) I've been experimenting a little with PHP's image functions and I was trying to see if I
could make something that looked 3D, so I started with a cube because it's simple. To make an
isometric picture of a cube, you need to start with a regular hexagon. However, making a regular
hexagon isn't the easiest thing. Is there a function to create a regular polygon, or specify an
angle and magnitude for a vector?....
Writing Your Own Functions In Php
how do i write php functions that takes arguments in php? (2) I'll set up the background for the question: I have a separate file that I include on all the
webpages on my site which I call with PHP using the include() function, so everything will be much
easier to maintain and update. Well, I have three include files for each page: header.php (includes
stuff like meta tags, googlebot/spider info), footer.php (the footer/copyright thing), leftnav.php
(includes the navigation bar). I also like the titles of my pages to be as descriptive as possible
so I try to include the path of a page (how the user got to that page: "Excite Y....
Confused...
some php functions that i am confused (5) First of all, if you have answers to the following QUOTE
http://www.trap17.com/forums/A-Lot-Of-Php-...ions-t7653.html
http://www.trap17.com/forums/A-Lot-Of-Html...ions-t7651.html Feel free to answer them all. Now,
in PHP i know there's microtime, srand, float, array_rand, arrays, foreach, or any other loop
functions. i'm really confused . Please help me!....
Contact Form
Contact form using mail() function (2) In first place, make an html page with the form. My first form with PHP Name:
E-Mail: Subject: Mesage: OK, now, lets make
sendmail.php: $myemail = 'yourmail@blah.com'; // Put here your e-mail address
mail($myemail,$subject,$mesage,$email) // To, Subject, Mesage and From echo
'Thank you for your e-mail!'; ?> Simple, huh? Any questions just post here.....
Php Mail Script Wont Work :(
(8) My script wont work and I cant figure out where I did go wrong The form looks like this: CODE
<form name="member-request" action="index.php?page=request"
method="post"> <p><b>Gender:</b></p>
<ul> <input type="radio" name="gen" value="1" />Male
<input type="radio" name="gen" value="2" />Female </ul>
<p><b>Your Name:</b></p> <p><input
type="text....
Multi-mail
(4) Hi ! I'd need to create a PHP script that would allow me to send an e-mail to many persons
at the same time (newsletter). All the e-mail adresses are ine a MySQL database. So how do I do with
the function mail() to send many e-mails ? Do I use loops or maybe an array ? But how to put the
MySQL request in an array ? Please help me. Thanks in advance.....
Looking for php, functions, send, mail
|
*RANDOM STUFF*
*SIMILAR VIDEOS*
Searching Video's for php, functions, send, mail
*MORE FROM TRAP17.COM*
|
advertisement
|
|