Can I generate email address dynamically ? like through programming ?
I already ask this type of questions but answer is going on wrong track so ia am asking this again .
I am develop ing one systerm
Now user can register and we give him one separate email id.
But how can we ganrate dynamic email id in cpannle or dedicated server. I don't want to creat manually on server or cpanel. Using asp.net or c#.
Please some one guide me on right track
see here is php code but i need this type of code in C# or asp.net
can anyone please help me
<?php
set_time_limit(0);
// cPanel info
$cpuser = 'cpaneluser'; // cPanel username
$cppass = 'cpanelpass'; // cPanel password
$cpdomain = 'domain.com'; // cPanel domain or IP
$cpskin = 'x3'; // cPanel skin. Mostly x or x2.
// Read here to know how to check cPanel skin - http://www.zubrag.com/articles/determine-cpanel-skin.php
$epass = 'emailpassy'; // email password
$edomain = 'emaildomain.com'; // email domain (usually same as cPanel domain above)
$equota = 50; // amount of space in megabytes
// Email format - {prefix}{number}@{domain.tld}
$prefix = "zz";
$start = "1";
$end = "100";
$separator = ":"; // The script will output in format emailid{separator}password. So if you want emailid:pass then enter ":" separator.
for($i=$start;$i<=$end;$i++) {
$euser = $prefix . $i;
$f = fopen ("http://$cpuser:$cppass@$cpdomain:2082/frontend/$cpskin/mail/doaddpop.html?email=$euser&domain=$edomain&password=$epass"a=$equota", "r");
if (!$f) {
$msg = 'Cannot create email account. Possible reasons: "fopen" function allowed on your server, PHP is running in SAFE mode';
break;
}
echo $euser . "@" . $edomain . $separator . $epass . "<br />";
}
?>