by
956 21
0
5
2,583
0
Top 1% !
Popular
Famous
Specified
OpenSource
Popularity: 5537th place
Created
Modified Aug 13, 2013

Published on:

No tags for this snippet yet.
Architecturex86_64
InputType0subject
InputType2message
InputType4recipient
LicenseMIT_X11
MethodNameappMail
OSWindows
OutputTypefunction
Windows VersionWindows7

Send Email

Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/8016/Send-Email?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
public static function appMail($subject, $message, $recipient){ $to = $recipient; $subject = $subject; $message = $message; $headers = 'From: admin@careel.com' . "\r\n" . 'Reply-To: admin@careel.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); }
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus