Revert "use custom header for guestbook IP"
This reverts commit f58a3c9483.
This commit is contained in:
parent
f58a3c9483
commit
bf38e8b731
2 changed files with 3 additions and 9 deletions
|
|
@ -35,20 +35,14 @@ public function addEntry(Request $request): RedirectResponse {
|
|||
->from(new Address("wah@wah.moe", "wah dot moe"))
|
||||
->to(new Address("roscoe@wah.moe", "Roscoe D. Wah"))
|
||||
->subject("New Guestbook Entry!")
|
||||
->category("Guestbook entry")
|
||||
->html('
|
||||
<style> td { padding: 5px; vertical-align: top } </style>
|
||||
<style> td { padding: 5px } </style>
|
||||
<table border="1">
|
||||
<tr><td><b>Name:</b></td><td>'.htmlentities($newEntry->name).'</td></tr>
|
||||
<tr><td><b>IP:</b></td><td>'.$newEntry->ip.'</td></tr>
|
||||
<tr><td><b>Agent:</b></td><td>'.htmlentities($newEntry->agent).'</td></tr>
|
||||
<tr><td><b>Message:</b></td><td>'.htmlentities($newEntry->message).'</td></tr>
|
||||
</table>')
|
||||
->text('Name: '.htmlentities($newEntry->name).
|
||||
'IP: '.$newEntry->ip.
|
||||
'Agent: '.htmlentities($newEntry->agent).
|
||||
'Message: '.htmlentities($newEntry->message)
|
||||
);
|
||||
</table>');
|
||||
|
||||
MailtrapClient::initSendingEmails(
|
||||
apiKey: config('services.mailtrap-sdk.apiKey')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue