I believe phpmaker uses phpmailer for emails. I need to change the email from to another value I don't want to use the default email in //Server settings.
//sample from phpmailer
$mail->setFrom('from@example.com', 'Mailer');
$mail->addReplyTo('info@example.com', 'Information');
$mail->Subject = 'Here is the subject';
// PHPmaker code (emailsending)
$email->From='demo2@gmail.com';
$sEmail_List = "".$msgto."";
$email->Recipient = $sEmail_List; // Change recipient to a field value in the new record
$email->Subject=$subject;
I need the right code for
$email->From
and $email->Replyto