Page 1 of 1

AGENT_CALLBACK_EMAIL

PostPosted: Tue Nov 21, 2023 11:06 am
by dreedy
Hello I am starting to use this feature on a new build. I have tried to make it a plain text email and html. The formation is not getting correct alignment. And i am wondering if there is a restriction on this feature i am not aware of. this is what i am trying to use.

Code: Select all
; sending email address
email_from => blank@blank.com

; subject of the email
email_subject => Callback for --A--address3--B--

; format as HTML
email_body_html

email_body_begin =>
This is a reminder that you have a scheduled callback right now for the following lead:
<br>
<br>
Business Name: --A--address3--B-- <br>           
Contact: --A--first_name--B-- --A--last_name--B--<br>
Phone: --A--phone_number--B--<br>
Alt. phone: --A--alt_phone--B--<br>
Email: --A--email--B--<br>
Utility: --A--security_phrase--B--<br>
State: --A--State--B--<br>
Campaign of Origin:--A--campaign_id--B--<br>
CB Comments: --A--callback_comments--B--<br>
Lead Comments: --A--comments--B--<br>
Please don't respond to this!


email_body_end



This is what the email looks like once it gets to the inbox.

Code: Select all
This is a reminder that you have a scheduled callback right now for the following lead: <br><br>Business Name:  <br>           Contact: JOHN SMITH<br>Phone: 111111111111<br>Alt. phone: <br>Email: 11111<br>Utility: ***<br>State: **<br>Campaign of Origin:--A--campaign_id--B--<br>CB Comments: This is a reminder the dm was there<br>Lead Comments: <br>Please don't respond to this!


Re: AGENT_CALLBACK_EMAIL

PostPosted: Wed Nov 22, 2023 11:03 am
by dreedy
This think will not format correctly no matter what i do. I have tried plain context and html. it still comes up like a blob and the code i enter in the body of the message is visible. Is there a bug here? how is this Setting container suppose to be formated?

Re: AGENT_CALLBACK_EMAIL

PostPosted: Wed Nov 22, 2023 11:28 pm
by carpenox
Hit me up on Skype or Whatsapp and I'll help you fix it

Re: AGENT_CALLBACK_EMAIL

PostPosted: Tue Nov 28, 2023 10:37 am
by dreedy
Thanks. I don't have either of those atm. I will setup one and send you a message.

Re: AGENT_CALLBACK_EMAIL

PostPosted: Tue Nov 28, 2023 3:48 pm
by MJCoate
That's a problem with your email client not rendering the message correctly.

Re: AGENT_CALLBACK_EMAIL

PostPosted: Wed Nov 29, 2023 8:56 am
by dreedy
I highly doubt that as the syntax is being displayed. I must be doing something incorrect. The email clients we are using are roundcube and outlook.

Re: AGENT_CALLBACK_EMAIL

PostPosted: Wed Nov 29, 2023 11:59 am
by MJCoate
Had to look through the code that handles the callback email alerts for this one. It's nothing on your end, it just doesn't support HTML. It uses the PHP mail() function which I believe defaults the content-type header to plaintext. It would need to be set to "text/html" for clients to render it. You could send us a dev request to add that (support@vicidial.com) or alter the vdc_db_query.php script to look for that setting or force the header. Though, you'll want to back that script up as any upgrades will wipe the change out.

Re: AGENT_CALLBACK_EMAIL

PostPosted: Tue Dec 05, 2023 2:11 pm
by dreedy
The writings instruction for this feature have a directed way to tell the email if it is plan text or html. Even if that is not the case plain text syntax is not relaying the end carriage or line return.

https://vicidial.org/docs/DISPO_SEND_EMAIL.txt

Re: AGENT_CALLBACK_EMAIL

PostPosted: Tue Dec 05, 2023 2:12 pm
by dreedy
Also i am being told that not all callbacks are sending out reminders. Is there a limitation to the feature that prevents it from sending out anything that matches the time?