PHP Send Email using PHPMailer and Any Email SMTP | Works with Localhost and Server
In this video, I will explain to you how PHP Send Email using PHPMailer and Any Email SMTP details. It will work with Localhost and Server.
For Best Hosting Plan Check:- https://www.hostinger.in/programmingwithvishal
Also, use the below Coupon Code for an attractive discount: PROGRAMMINGWITHVISHAL
Source Code:- http://bit.ly/PHPSMTPEmail
Learn PHP Online with Me:- https://bit.ly/LearnPHPOnline
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
✅Subscribe: https://www.youtube.com/channel/UCWgCuvL3lcgjGyjIok1zWNQ?sub_confirmation=1
I am a Digital Marketer by passion and a Developer by profession. With experience and expertise spanning around 10 years, in the Digital space.
Good amount of experience in development of web applications using PHP, .Net, JavaScript Library’s, Frameworks, CMS, API’s, Reporting tools and Payment Gateways. Skilled in digital viral marketing, technology innovation’s, brand building and all phases of the Web development lifecycle with an expert in translating business requirements into technical solutions and fanatical about quality, usability, security, and scalability. Dealing with and resolving problems and issues which arise.
by Programming with Vishal
linux smtp server
i am trying to send mail on multiple mail id's but it shows error "You must provide at least one recipient email address." i am using 2 mail id's with sepereted by comma ( , ). how can we do please. and i am also trying to send mail id through html form but its not sending input email id value to simple.php …following are both file code which i have tried but not working please help me
Files:
index.html – ->>
<form method="post" action="simple.php" id="contact-form">
<div class="row">
<div class="col-lg-4">
<input class="con-field" name="tomail" id="messageForm" type="text" placeholder="emails" required>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="submit-area">
<input type="submit" id="submit-contact" class="btn-alt" value="Send Message">
<div id="msg" class="message"></div>
</div>
</div>
</div>
</form>
simple.php – – >>>
<?php
include('smtp/PHPMailerAutoload.php');
$to = $_POST['tomail'];
echo smtp_mailer('$to','subject','msg');
function smtp_mailer($to,$subject, $msg){
$mail = new PHPMailer();
//$mail->SMTPDebug=3;
$mail->IsSMTP();
$mail->SMTPAuth = true;
$mail->SMTPSecure = 'ssl';
$mail->Host = "smtp.titan.email";
$mail->Port = "465";
$mail->IsHTML(true);
$mail->CharSet = 'UTF-8';
$mail->Username = "support@mydomain.cc";
$mail->Password = 'PASSword';
$mail->SetFrom("support@mydomain.cc");
$mail->Subject = $subject;
$mail->Body =$msg;
$mail->AddAddress($to);
$mail->SMTPOptions=array('ssl'=>array(
'verify_peer'=>false,
'verify_peer_name'=>false,
'allow_self_signed'=>false
));
if(!$mail->Send()){
echo $mail->ErrorInfo;
}else{
echo 'Sent';
}
}
?>
abal
Sir, please suggest when we are doing << Bulk Emails && long HTML Content >>
Make video
1)form submitted
2)then this form as email goes to admin
3)after goes to admin, thank you message as email sends to user who submitted form
php mail function ka use krne pr kabhi message send ho jata hai kabhi nahi hota hai,message send ka response aata hai but massege send recieve nahi hota hai please help sir
ager sir client ke website me mail add krna hai to smtp ka use kaise karenge kyoki password bhi chahiye to kya kre mail kaise use kare
Thanks alot, i have tried so many times to install phpmailer on local and server both.
But its not working by your smtp folder its working
Mr. Vishal i have checked many different resources for PHP SMTP mailer, all are misconfigured, only works in video . Once download the source it is full of error. Can you help me out to share the working code along with dependencies
Sir file kaese attached kre
you are best really May Allah give u prosperity
hello sir
not working in Namecheap hosting i tried many times
thanks bro
jo library use kar rahe ho vo kaha se leni hai hame vo bhi bataye
Best channel for programming. I got a lot of help from your tutorial. Thank you sir
Nice tutorial Thank You
Not working with codeigneter 4 on hostinger plz…
Help
automated bulk mailing smtp hosakta hai kya?
How can I connect zoho mail smtp with phpmailer, please
Thanks for this.. Awesome!!
I know how to show dynamic images in table but when I try to sending that table to mail using phpmailer, image not showing
Why?
Image means product image.
And how to show TAMIL LANGUAGE
in pdf using mpdf when sending it to mail using phpmailer?
❤❤❤❤
m using vps service without cpanel can it works?
Sir how to send the noreply mail using phpmailer.. jismein recipient hume reply na kar sake..kindly help me
The best channel for PHP. Thank You.
Where to upload this file in phpmyadmin? What will be the path in WordPress website
i cannot define variable at the location of "to – email send to" , it says You must provide at least one recipient email address.
Hello sir i am using xampp in my windows server. Is there any method for sending mail through windows server?
sir godady is not accepting i have tried godady host as well
Please sir upload a video on import data into database through excel file
Hi sir,
Sir if you make video on ledger like balance calculating from debit and credit, I will be thankful of you.
I need it.
Thankyou sir …
Sir this tutorial you have made four time but you do not have time to upload ecommerce last tutorial for how to add product colour and size options
sir, please upload a video on pdftk using PHP in hostinger's hosting or on any hosting please sir
Hi sir,
To get those emails for free,
I think we have 2 options,
1. Email redirect
2. Own Dns and mail server.
I implemented 1st one and it's good, but
Failed to implement 2nd one.
If you have any idea , please help .
Sir maine ye library use ki thi apne project me lekin 1 error aa rahi hai .. undifene function smtp_mailer.
Sir aap kya python karawange??
Sir laravel k features like multi drop-down list edit, spatie , data table , multi auth kub laogai.I am waiting for these videos for last few months
Sir how can send the documents with this code
Nice explanation 👍
Sir is there any way which can send mail to inbox only not in spam
Thanks sir very easy and simple to understand
Sir we are receive duplicate email, on second time running 2 emails coming, if am executive 3 ed time receive 3 email…
This is issue am facing
hello sir, mene aapke php ecommerce ki series puri ki hai.
Usme ek bug hai, jab hum first time product purchase krte hai. checkout page pr jaate hee homepage pr redirect ho rhe hai..
Sir mobile number pr OTP bhej kar login kede kraye redirect to dashboard please sir help
Sir ismai bussiness email pr mail shoot ni hota h
sir jo traditional mail function tha uski use business purpose mai hota nahi hai kya?
Sir, expecting php core size master
Sir php mailer kaa use karke localhost see email kese send karee iss par bhii video banaiyee sir plz