Shoutbox

php send mail script - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: php send mail script (/showthread.php?tid=40259)

php send mail script by spokes on 03-16-2005 at 09:40 PM

any one know of a script that can send an email to a gmail account (visor.crew@gmail.com)? and i would probably need an smtp server to go with it


RE: php send mail script by Plik on 03-16-2005 at 09:47 PM

Have a read of http://www.php.net/manual/en/ref.mail.php


RE: php send mail script by spokes on 03-16-2005 at 09:56 PM

ok, any ideas on a free smtp??


RE: php send mail script by brian on 03-16-2005 at 10:09 PM

Means you didn't read that page, read it! You can send emails using php without use of SMTP servers.


RE: php send mail script by fluffy_lobster on 03-17-2005 at 10:19 AM

quote:
Originally posted by Vexx
Means you didn't read that page, read it! You can send emails using php without use of SMTP servers.
That's not quite true. PHP acts as a SMTP server, I believe, and contacts the appropriate mail servers via the SMTP protocol.
RE: php send mail script by -dt- on 03-17-2005 at 10:54 AM

to add a sender you have got to send extra stuff in the headers so your code would look something like

code:

<?php
$yourmail = "blah@gmail.com";
$email = "guy to send too";
$subject = "subject";
$body="body of email";
$headers = "from:$yourmail\n";
mail($email,$subject,$body,$headers);
?>