Pre Exam Test Practice (SSC | Banking | IAS | GATE | State Level | CLAT | Railways | Insurance | Teaching Exams | NDA | Defence | IES |State Exam )

Organizational Research By

Surprising Reserch Topic

how to change from address when using gmail smtp server


how to change from address when using gmail smtp server  using -'php,email,smtp,gmail'

I want to send an email from A to B,with HEADER and CONTENT through gmail.

How to do that by PHP?

I've specified the FROM(from@example.com),but when I receive the email,it's still from my gmail account(abc@gmail.com).



$mail->From = "from@example.com";
$mail->FromName = "Mailer";
$mail->AddAddress("abc12@163.com", "Josh Adams");// name is optional
$mail->AddReplyTo("abc12@qq.com", "Information");


How do I change the FROM part?
    

asked Sep 14, 2015 by BernieceHKI
0 votes
7 views



Related Hot Questions



Government Jobs Opening


...