Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: Webmail API sending email friendly names Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
foxdirect
Newbie
Newbie


Joined: 24 July 2016
Online Status: Offline
Posts: 12
Posted: 05 May 2017 at 7:57am | IP Logged Quote foxdirect

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 View foxdirect's Profile Search for other posts by foxdirect
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 05 May 2017 at 8:36am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 05 May 2017 at 8:40am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 
foxdirect
Newbie
Newbie


Joined: 24 July 2016
Online Status: Offline
Posts: 12
Posted: 05 May 2017 at 5:39pm | IP Logged Quote foxdirect

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 View foxdirect's Profile Search for other posts by foxdirect
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide