Sending Emails through PHP

Started by AashishDhakal, 01-18-2020

738
3
Sending Emails through PHP
  01-18-2020, 06:54 PM
#1
Can anyone provide me script for sending emails through PHP?

  01-24-2020, 05:05 PM (Updated: 01-24-2020, 05:06 PM by Shadow.)
#2
PHP by default has a mail() function.

You can send it like this mail(to,subject,message,headers,parameters);

An example:

PHP Code:
<?php
$to 
"[email protected]";
$subject "My subject";
$txt "Hello world!";
$headers "From: [email protected]"\r\n" .
"CC: [email protected]";

mail($to,$subject,$txt,$headers);
?>


Want to contact me? [email protected]

[Image: J8PdCI3.png]

  03-19-2020, 04:01 PM
#3
i use this library


https://github.com/PHPMailer/PHPMailer

  04-15-2020, 04:53 AM
#4
(03-19-2020, 04:01 PM)zezima Wrote:
Lol good to know I am not the only one using Runescape chars as profile images >_< lol peace

« Next Oldest | Next Newest »


Possibly Related Threads…
Thread Author Replies Views Last Post
[PHP] Download Everything from YouTube (Subtitle, Thumbnail, Video a/ Audio) Abraham 1 549 01-15-2021, 02:51 PM
Last Post: rifatislamrakesh
Use PHP on wordpress mel454 4 344 01-11-2021, 09:35 AM
Last Post: FrikFok
WordPress (PHP) -> HTML kalol21877 1 169 12-03-2020, 03:44 AM
Last Post: art3mis37
PHP Script installation Guide, Step by Step Cheat Sheet , Can anyone Assist? MamboNdini 1 92 12-03-2020, 03:39 AM
Last Post: art3mis37
What is the best URL Shortener PHP Script of your choice? zeroday 2 91 12-03-2020, 03:36 AM
Last Post: art3mis37
PHP Myadmin Varlee 3 758 10-24-2020, 12:11 AM
Last Post: nullcom
PHP code to disable WP plug in and theme updates simplefool 30 2,079 10-23-2020, 11:24 PM
Last Post: nullcom
Php code to disable wp-admin panel ZinxInn 6 844 09-27-2020, 09:42 AM
Last Post: BrainStar
how to send cheap emails sasi750 8 839 07-03-2020, 09:44 AM
Last Post: cybil18
Crud Operation using PHP mysql stevenporter 4 454 06-27-2020, 03:20 PM
Last Post: ydneatko



1 Guest(s)