Author |
|
foxdirect Newbie
Joined: 24 July 2016
Online Status: Offline Posts: 12
|
Posted: 05 May 2017 at 7:57am | IP Logged
|
|
|
Hi Igor,
I hope you are doing well. :)
We are using the excellent sending mail script here: https://afterlogic.com/docs/webmail-pro/integration-and-development/sending-mail
But we are trying to send with a FriendlyName for the email.
We have tried:
$sEmail = 'test name sales@example.com';
$sEmail = 'test name <sales@example.com>';
$sEmail = '"test name" sales@example.com';
$sEmail = '"test name" <sales@example.com>';
But none of these work. Please help me get email friendly names working with the API. THANK YOU!
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 05 May 2017 at 8:36am | IP Logged
|
|
|
Is my understanding correct that you're attempting to supply recipients names that way? I've just tried the following call of the function described there:
Code:
sendEmailMessage("user@mydomain.com", "My Password", "Subject", "Test Message","'Support' <support@afterlogic.com>"); |
|
|
And it worked just fine. If I do it this way, it works as well:
Code:
sendEmailMessage("user@mydomain.com", "My Password", "Subject", "Test Message","\"Support\" <support@afterlogic.com>"); |
|
|
Not sure how you're checking whether Friendly Name is actually there, I'd recommend to open email message source and check in it.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 05 May 2017 at 8:40am | IP Logged
|
|
|
And in case if this is about sender's Friendly Name, that one is obtained from account settings, you should supply the correct display name there, or modify the example to override the sender's Friendly Name over here:
Code:
$oFrom = \MailSo\Mime\Email::NewInstance($oAccount->Email, $oAccount->FriendlyName); |
|
|
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
foxdirect Newbie
Joined: 24 July 2016
Online Status: Offline Posts: 12
|
Posted: 05 May 2017 at 5:39pm | IP Logged
|
|
|
I fixed the outgoing email sender "friendly name" as you mentioned in the default settings - display name. I even added a new unicode character to make it "sexy". Thanks Igor, I appreciate your fast response!
|
Back to Top |
|
|