RingCentral Fax Coverpages - fax

I am using a single page document to Fax, can when I fax it using the RingCentral Fax API, it by default includes a blank cover page. I do not want any cover page for my fax, how can I eliminate it?

If you are using the RingCentral Fax API and want to eliminate the Coverpage from your fax document, you can achiieve it as below
While calling the Fax API make sure to set the coverIndex parameter to 0.
(use the GET /restapi/v1.0/dictionary/fax-cover-page endpoint to understand what each coverIndex means. )

In simple terms Setting coverIndex = 0 to disable cover page.
This parameter is actually optional in the API.
As per API reference here: "If not specified, the default cover page which is configured in 'Outbound Fax Settings' is attached"
https://developers.ringcentral.com/api-reference/Fax/createFaxMessage
As per this link, "When using these demos, the fax API coverIndex parameter should be set to 0 so that no cover page is added."
https://github.com/grokify/ringcentral-demos-fax-cover-page#ringcentral-fax-api-configuration-parameters

Related

Can we change email content for bcc only Using SendGrid Personalization?

I have an email for customer, Its bcc we have the Subscriber's company Email.Email Contain a link to web page.Now the problem is the link is passing IsCustomer=true which becomes the reason for a function to be executed.I want to replace IsCustomer=true with IsCustomer=false or disable the link for BCC only.
I do not have an option to send two separate emails.
Technically, the requirement seems weird to me as why we should be able to change the email content of same email for recipient and BCC.
I have studied the personalizations topic here and I am doubtful about this.
Is there any way to achieve that?

Dynamic Email Subject and Body in Docusign Powerforms in c#

Team,Docusign ,
I am using Email and Direct Mode for Powerforms in C#.NET and sending documents for signing using powerforms links and appending all custom tags as query string
for e.g.
//This is just an example, emails are sending perfectly.
demo.docusign?powerforms.aspx?id=axx-4545-a56s&Prospect_UserName={0}&Prospect_Email={1}&EnvelopeField_CompanyId={2}&EnvelopeField_StaffId={3}...
but I have a requirement where, I need to change Email Subject and Email body as per different type of companies.
For e.g. if a CompanyType: Member, then EmailSubject: "Memebers Need to Sign NDA", and Mail Body : "Dear Member, Please sign... large text"
If CompanyType :Prospect , then different wordings for Subject and Mail Body.
Right now , I have to hard code single mail wordings and bound to use same email subject and body for both types of company and I can't change it dynamically.
I don't want to create separate powerform templates again for mebertype and prospecttype and under each again one for EmailMode and another for DirectMode.
Do you have any solution ?
You could switch to using the API directly.
Powerforms don't provide the capability you're requesting.

ASP.NET MVC: What's the best way to validate the expiry/legitimate of querysting

We have a payment successful page where we read the query string ?paid=yes.
If paid=yes then we show the payment sucessfull message etc. Otherwise payment failed.
What's the best way to:
Validate ?paid=yes query string is valid? In other words, how can we stop people from manually manipulating query string ?
Set query string expiry time or set attempt (max 1)?
Thanks.
As usual: never trust user input. The only difference between a request with ?paid=yes or not in the querystring would be the message you show. You have to find a different way to validate the payment by communicating with the payment provider directly to check the result.
In my opinion you cant validate a payment in a query, I would instead give the client a ticket, so now the query would be ?ticket=UUID, where uuid can be generated with GUID class Giud.NewGuid().
now in the database of your server you should create the ticket too and a boolean field indicating if the payment is done.

Email Address Validation. Is this Valid?

I am using the asp.net validation control to validate email addresses. There was an issue with an email address because it has the following characters. "-." For example the email address w.-a.wsdf.com will not validate due to the ".-" in it. I was looking around for email standards that forbid this but could not find any. Should I change the asp.net regex to a custom one to allow this or is this not a valid email address?
The regex i am using now is : \w+([-+.']\w+)*#\w+([-.]\w+)*\.\w+([-.]\w+)*
You'll get loads of answers for this. This one has always served me well:
/\A[\w+\-.]+#[a-z\d\-.]+\.[a-z]+\z/i
Originally found it in Michael Hartl's Rails book
^[a-zA-Z][\w\.-]*[a-zA-Z0-9]#[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$
Regular expressions are great but, as my comments showed in other answers, validating email addresses with them is not an easy task at all.
Based on my experience, I would suggest to either:
stick to the simplest email validation regex, ^.+#.+$ and send a confirmation email with an activation link;
or
avoid using regular expressions at all and use a library like my EmailVerify for .NET, which exposes a custom, fine tuned finite state machine for validating email addresses according to (all of) the related IETF standards plus disposable, DNS, SMTP, mailbox tests.
Obviously you can mix the two alternatives and perhaps avoid using regular expressions but send a confirmation link anyway.
Disclaimer: I am the tech lead of EmailVerify for .NET, a Microsoft .NET component for validating email addresses.
The regex below forbids w.-a.wsdf.com
using System.Text.RegularExpressions;
public static bool IsValidEmail(string email)
{
return Regex.IsMatch(email, #"\A[a-z0-9]+([-._][a-z0-9]+)*#([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,4}\z")
&& Regex.IsMatch(email, #"^(?=.{1,64}#.{4,64}$)(?=.{6,100}$).*");
}
See validate email address using regular expression in C#.
Take a text input in html and a button input like this
Now when the button is clicked then the JavaScript function SubmitFunction() will be called. Now write the bellow code in this function.
function checkEmail() {
var email = document.getElementById('txtEmail');
var filter = /^([a-zA-Z0-9_\.\-])+\#(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
if (!filter.test(email.value)) {
alert('Please provide a valid email address');
email.focus;
return false;
}
}
*its works *

Paypal post problem

document.aspnetForm.action = "https://www.paypal.com/cgi-bin/webscr";
I use master page and paypal payment page but giving error "document.aspnetform is not defined"
I can't tell from your question whether you are doing this on the client using JavaScript or on the server in C#. I guess the former as you are using document all lower case. Either way check your capitalisation - Javascript is case sensitive so you may need document.AspNetForm or something similar as your identifier. Just make sure it matches up to whatever the title of the form is in the source code.

Resources