This topic is locked

Personalized e-mail

9/9/2013 4:46:30 PM
PHPRunner General questions
C
CarLN author

Hi!
Please, I need to send an email where you receive the full name. Example: From: "Carlos Frederico" <email@xxx.com> "
My code...
$email = "charles@xxx.xxx.br";

$from = '"Carlos" <carlos@xxx.xxx>';

$msg = "Test";

$subject = "Test Subject";
$ret=runner_mail(array('to' => $email, 'subject' => $subject, 'body' => $msg, 'from' => $from, 'replyTo' => ''));
if(!$ret["mailed"]) echo $ret["message"];
Doesn't work.
When I put olny "carlos@xxx.xxx" in $from, it works...

And I needed to set "replyTo" equal to nothing ... but does not work. It shows reply to carlos@xxx.xxx.
Thanks <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=21356&image=1&table=forumtopics' class='bbc_emoticon' alt=':D' /> !

Sergey Kornilov admin 9/10/2013

Your code look correct. If you need more help post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.
PS. I guess replyTo cannot be empty. If you do not specify it it will be set to FROM email address.

T
Tayyab Ilyas 9/13/2013

Hi

Did you get any solution? Please post if yes, i have same issue. THanks

Sergey Kornilov admin 9/16/2013

Tayyab, haven't heard anything from this person.
If you need more help post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.

T
Tayyab Ilyas 9/20/2013

Thanks Admin,
I have created a ticket on support with following title:
From Name issue in Sending Email
Thanks for your support.



Tayyab, haven't heard anything from this person.
If you need more help post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.


T
Tayyab Ilyas 9/22/2013

Here is solution from Support Team:
Open C:\Program Files (x86)\PHPRunner6.2\source\include\phpfunctions.php file in text editor. Find the following line:

$mail->SetFrom($from, '');



Replace it with this one:

$mail->SetFrom($from, $params['fromName']);


Now in your code that sends the email you can add a new parameter.

$email="test@test.com";

$message="Hello there

Best regards";

$subject="Sample subject";

runner_mail(array('to' => $email, 'subject' => $subject, 'body' => $message, 'fromName'=>'Some name'));