Sending Emails through PHP

Started by AashishDhakal, 01-18-2020

1228
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);
?>


[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
Gojek 2021 Full Script (8 Apps + PHP Backend) FrancisJoseph 2 1,083 12-16-2021, 10:56 PM
Last Post: richardneaver
Bitcoin,Dogecoin, Litecoin Cloud Mining - Php Script itxfahdi 1 920 11-23-2021, 11:20 PM
Last Post: foriv
PHP Myadmin Varlee 4 1,947 07-10-2021, 10:37 PM
Last Post: Dearon
how to send cheap emails sasi750 9 2,074 05-22-2021, 11:37 AM
Last Post: mikerevou
PHP Script installation Guide, Step by Step Cheat Sheet , Can anyone Assist? MamboNdini 2 1,155 04-26-2021, 12:31 AM
Last Post: SalmanMualemi1
WordPress (PHP) -> HTML kalol21877 2 594 03-06-2021, 01:05 AM
Last Post: nyatto
Use PHP on wordpress mel454 4 850 01-11-2021, 09:35 AM
Last Post: FrikFok
What is the best URL Shortener PHP Script of your choice? zeroday 2 371 12-03-2020, 03:36 AM
Last Post: art3mis37
PHP code to disable WP plug in and theme updates simplefool 30 3,447 10-23-2020, 11:24 PM
Last Post: nullcom
Php code to disable wp-admin panel ZinxInn 6 1,335 09-27-2020, 09:42 AM
Last Post: BrainStar



1 Guest(s)