Changeset 4b09d68 for src/webservice/htdocs/SiWeather/Webservice
Legend:
- Unmodified
- Added
- Removed
-
src/webservice/htdocs/SiWeather/Webservice/WebserviceApi.php
r363c1af r4b09d68 413 413 // finish transaction 414 414 $db->exec("COMMIT"); 415 415 416 $deletionDate = date(DATE_RFC850, time() + 14 * 24 * 60 * 60); 417 $mailRecipient = $json["email"]; 418 $header = "From: ". WebserviceConfig::value("mailaddressFrom") ."\r\n" . 419 "Reply-To: ". WebserviceConfig::value("mailaddressFrom") ."\r\n" . 420 "CC: ". WebserviceConfig::value("mailaddressCC") ."\r\n" . 421 "X-Mailer: PHP/". phpversion(); 422 $message = "Dear user,\r\n" . 423 "\r\n" . 424 "please visit the following Link to confirm your newly created weather station ". $json["name"] .".\r\n" . 425 "If you do not visit this link, your station will be delete in 14 days (". $deletionDate .").\r\n" . 426 "\r\n" . 427 WebserviceConfig::value("webserviceBaseUrl"). "/stations/". $uuid ."/confirm" ."\r\n" . 428 "\r\n" . 429 "Kind regards,\r\n" . 430 "Your weather service\r\n"; 431 mail($mailRecipient, \Translator::swGettext("Weather station %s - Confirmation request", $uuid), $message, $header); 416 432 echo json_encode 417 433 ( 418 434 [ 419 435 "result" => "success", 420 "message" => "Confirmation request is send to ". $ json["email"] .".",436 "message" => "Confirmation request is send to ". $mailRecipient .". The station is fully functional already, but might be deleted in 14 days (". $deletionDate .") without any further warnings!", 421 437 "uuid" => $uuid, 422 438 ]
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/siweather/chrome/site/your_project_logo.png)