<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.regify.com/index.php?action=history&amp;feed=atom&amp;title=RegifySdk_first_steps</id>
	<title>RegifySdk first steps - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.regify.com/index.php?action=history&amp;feed=atom&amp;title=RegifySdk_first_steps"/>
	<link rel="alternate" type="text/html" href="https://wiki.regify.com/index.php?title=RegifySdk_first_steps&amp;action=history"/>
	<updated>2026-06-14T14:51:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.1</generator>
	<entry>
		<id>https://wiki.regify.com/index.php?title=RegifySdk_first_steps&amp;diff=2398&amp;oldid=prev</id>
		<title>Regify: Created page with &quot;== General information ==  You need a valid regify user account in order to send regimails. If you want to send commercially (eg hospital etc), it must be a regimail professio...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.regify.com/index.php?title=RegifySdk_first_steps&amp;diff=2398&amp;oldid=prev"/>
		<updated>2023-10-11T09:33:36Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== General information ==  You need a valid regify user account in order to send regimails. If you want to send commercially (eg hospital etc), it must be a regimail professio...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
You need a valid regify user account in order to send regimails. If you want to send commercially (eg hospital etc), it must be a regimail professional account. We suggest to use your own regify account for testing purposes and later use another one created just for this purpose.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; A regimail professional user is able to register up to 500 transactions a month. For more, please contact the regify provider administrators. If your account is regimail private (for private consumers only), the limit is 10 messages/month and it is not allowed for commercial usage and cannot get increased.&lt;br /&gt;
&lt;br /&gt;
== Using regifycmd ==&lt;br /&gt;
&lt;br /&gt;
=== Get needed environment data ===&lt;br /&gt;
&lt;br /&gt;
In order to allow you encryption with regimail, you need to get some environment data first. It consists of a &amp;quot;url&amp;quot; and some specific &amp;quot;provider data&amp;quot; value. This is only needed once as long as you don&amp;#039;t use another regify service provider.&lt;br /&gt;
&lt;br /&gt;
You get the data by calling &amp;#039;&amp;#039;regifycmd&amp;#039;&amp;#039; like this (example values)&lt;br /&gt;
&lt;br /&gt;
 ./regifycmd -C -e &amp;#039;&amp;lt;myMailaddress&amp;gt;&amp;#039; -p &amp;#039;&amp;lt;myPassword&amp;gt;&amp;#039; -o &amp;#039;config.json&amp;#039;&lt;br /&gt;
 Code: 0 - OK: Configuration successfully saved.&lt;br /&gt;
&lt;br /&gt;
The configuration of the regify service provider this user is registered at is now in the &amp;#039;&amp;#039;config.json&amp;#039;&amp;#039; file.&lt;br /&gt;
&lt;br /&gt;
=== Extract environment data ===&lt;br /&gt;
You can get the two needed values &amp;quot;providerUrl&amp;quot; and &amp;quot;ProviderData&amp;quot; from the json file manually or let &amp;#039;&amp;#039;grep&amp;#039;&amp;#039; command help you a little bit:&lt;br /&gt;
&lt;br /&gt;
 grep -oP &amp;#039;&amp;quot;providerData&amp;quot;:&amp;quot;\K[^&amp;quot;]+&amp;#039; config.json&lt;br /&gt;
 3 6C65A72D6A39CC9498715571734994566C36D62136FA13C49DD08023CD6CD0D140B131B1E2F2B32D6ED2213614F515B3194A2B3D35FC881837E2DE8D4018AF95FE2ADD02F76846AE78F82862BD1C07CCA4B77D6192F2DADCDD80590832019E3B836035889B84AF708DAE7E23F3FD5EEE2E331661C15295E1CB49C06DB852A1EC1ED258D485555A2C29F91097C1A58897122A18D951C8722D4815ED136951C484A54BC3589CEEC2DD644086D97AE04573D69ADD2346BA91E010CFCE2E388E176A4870206149E02ADC5DF48EE98D9C289282FEF35414534A917015D7C595E3FEA26508F98261F613E596CDAE33135023BAAF6C3BD2D5167CFA92C92CD4258C8922 3082010B02820100B2B0930BB423229A3CDE2A090B9224A3BEF0054FB3DE6BECD8CD7F8900EE71BDB2F563E143E15D53C43F64B58CA69724663B4FBF5FC9944EB0EA0790B77B8AE3ED8707C9669839F5DC09291BF895F81AFEA8A42E96AC0C777FC287793A95360687125C04DAF6408ADDF9498E400D00586A5AE617BD1F0DAE354DD2EA4557951A9B15E47D52FC13AC76393D9A3162A1FC0FD5BCE3D29B6B883794AD83F2008BE71C3ADC75C73EA342562CE64DF465A514F72F62647495B45A3BEE14B8D28DCAA4339EC53DFDD1221A8643E2EF60E20E62C540FBE314C24DA79DC2D62AA9640C82F27147E13BFDB5118DF7C05E23610FE55EFF18AD1C5E632342CE7F2E804F34FF02820003010001&lt;br /&gt;
&lt;br /&gt;
 grep -oP &amp;#039;&amp;quot;providerUrl&amp;quot;:&amp;quot;\K[^&amp;quot;]+&amp;#039; config.json&lt;br /&gt;
 https://portal.regify.com/&lt;br /&gt;
&lt;br /&gt;
So you have the two needed environment information. You may want to save this in your source code as constants or in a database or a local file etc.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;IMPORTANT: Please note that you do not need to do this all the time! As long as you&amp;#039;re on the same regify provider, it is the same data and you must re-use it. Do not request it again and again for every message!&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== Create regimail file ===&lt;br /&gt;
&lt;br /&gt;
Now, for creation of regimails, you can do like this:&lt;br /&gt;
&lt;br /&gt;
Create a folder for message composing (body and attachments are taken from there):&lt;br /&gt;
&lt;br /&gt;
 mkdir newMessage&lt;br /&gt;
&lt;br /&gt;
Create some body message (here, a simple text body. Use body.html to use HTML body):&lt;br /&gt;
&lt;br /&gt;
 vi newMessage/body.asc&lt;br /&gt;
&lt;br /&gt;
You might also add some files as attachments to this folder.&lt;br /&gt;
&lt;br /&gt;
Finally, create your encrypted RGF file like this:&lt;br /&gt;
&lt;br /&gt;
 regifycmd -M -o &amp;#039;outRegimail.rgf&amp;#039; -i &amp;#039;InputDir&amp;#039; -u &amp;#039;Username&amp;#039; \ -p &amp;#039;Password&amp;#039; [-f &amp;#039;IdentityFile&amp;#039;] -s &amp;#039;Subject&amp;#039; -d 3 -e &amp;#039;sender@domain.com&amp;#039; \ -r &amp;#039;recip1;recip2&amp;#039; -n &amp;#039;sendername&amp;#039; -U &amp;#039;regifyURL&amp;#039; -k &amp;#039;0 94F47D...&amp;#039;&lt;br /&gt;
&lt;br /&gt;
With adapted values from above it looks like this:&lt;br /&gt;
&lt;br /&gt;
 ./regifycmd -M -o &amp;#039;regimail_#id.rgf&amp;#039; -i &amp;#039;newMessage&amp;#039; -u &amp;#039;&amp;lt;myMailaddress&amp;gt;&amp;#039; -p &amp;#039;&amp;lt;myPassword&amp;gt;&amp;#039; \&lt;br /&gt;
 -s &amp;#039;Subject&amp;#039; -d 3 -e &amp;#039;&amp;lt;myMailaddress&amp;gt;&amp;#039; -r &amp;#039;&amp;lt;recipientMailaddress1&amp;gt;;&amp;lt;recipientMailaddress2&amp;gt;&amp;#039; \&lt;br /&gt;
 -n &amp;#039;&amp;lt;myName&amp;gt;&amp;#039; -U &amp;#039;https://portal.regify.com&amp;#039; \&lt;br /&gt;
 -k &amp;#039;3 6C65A72D6A39CC9498715571734994566C36D62136FA13C49DD08023CD6CD0D140B131B1E2F2B32D6ED2213614F515B3194A2B3D35FC881837E2DE8D4018AF95FE2ADD02F76846AE78F82862BD1C07CCA4B77D6192F2DADCDD80590832019E3B836035889B84AF708DAE7E23F3FD5EEE2E331661C15295E1CB49C06DB852A1EC1ED258D485555A2C29F91097C1A58897122A18D951C8722D4815ED136951C484A54BC3589CEEC2DD644086D97AE04573D69ADD2346BA91E010CFCE2E388E176A4870206149E02ADC5DF48EE98D9C289282FEF35414534A917015D7C595E3FEA26508F98261F613E596CDAE33135023BAAF6C3BD2D5167CFA92C92CD4258C8922 3082010B02820100B2B0930BB423229A3CDE2A090B9224A3BEF0054FB3DE6BECD8CD7F8900EE71BDB2F563E143E15D53C43F64B58CA69724663B4FBF5FC9944EB0EA0790B77B8AE3ED8707C9669839F5DC09291BF895F81AFEA8A42E96AC0C777FC287793A95360687125C04DAF6408ADDF9498E400D00586A5AE617BD1F0DAE354DD2EA4557951A9B15E47D52FC13AC76393D9A3162A1FC0FD5BCE3D29B6B883794AD83F2008BE71C3ADC75C73EA342562CE64DF465A514F72F62647495B45A3BEE14B8D28DCAA4339EC53DFDD1221A8643E2EF60E20E62C540FBE314C24DA79DC2D62AA9640C82F27147E13BFDB5118DF7C05E23610FE55EFF18AD1C5E632342CE7F2E804F34FF02820003010001&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The created file &amp;#039;&amp;#039;regimail_nnnnnnnn.rgf&amp;#039;&amp;#039; is the resulting regify file now. You can send or transfer it with every method you like (mail, FTP, file copy, USB stick etc).&lt;br /&gt;
&lt;br /&gt;
Please note that an IdentityFile (-f) is optional and not needed as long as you do not plan to use explicit sender authentication.&lt;br /&gt;
&lt;br /&gt;
=== Cleanup ===&lt;br /&gt;
Finally, you may want to cleanup your message composition folder like this:&lt;br /&gt;
&lt;br /&gt;
 rm -rf newMessage/&lt;/div&gt;</summary>
		<author><name>Regify</name></author>
		
	</entry>
</feed>