Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

fnets

Members
  • Joined

  • Last visited

Everything posted by fnets

  1. ok got it thanks
  2. I think I understand the need for SendGrid but as an aside is this PHPMailer answer valid?. "The fact that it is served as a php file means that no-one should see it anyway, so security isn't an issue." from https://www.daniweb.com/programming/web-development/threads/432031/phpmailer-class-password-protection
  3. are all emails html? $mail->isHTML(false); I don't think this has any effect? but thanks for introducing me to something safe and secure (and faster).
  4. can I quickly ask how I send emails from my form to my email account? ... ok got it
  5. ok yes it worked. thanks for helping. presumably if I add an attachment to phpmailer that should also work?
  6. ok thanks for helping ... so from sendgrid Server smtp.sendgrid.net Ports 25, 587 (for unencrypted/TLS connections) 465 (for SSL connections) Username apikey Password YOUR_API_KEY need to go in my php file $mail->isSMTP(); $mail->Host = 'smtp.sendgrid.net'; $mail->SMTPAuth = true; $mail->Username = 'apikey'; $mail->Password = 'key they gave me'; $mail->SMTPSecure = 'ssl'; $mail->Port = 465; and then use php mail to send. what's confusing is I think step 1 should. be download/install files and step 2 update the files that were downloaded? "Configure Your Application" could refer to anything?
  7. yes I agree and I want to learn. sorry to be stupid but I seem to be missing some major steps here ... from https://app.sendgrid.com/guide/integrate/langs/smtp I've created a key and the step 2 Configure you application - what application? should I have installed something somewhere? I feel like I've started mid-way and missed out the first steps?
  8. just registered sendgrid but unfortunately a bit lost ... selected php and got to step 2 create key. have this in front of me in Dreamweaver <!doctype html> <html> <head> <meta charset="utf-8"> <title>Untitled Document</title> </head> <body> </body> </html> what do I do? but step 3 is Create an environment variable? I think this is probably for experienced web developers? (I am experienced with C++) Have submitted a question. Youtube https://youtu.be/zjL4g4FXaQ4 setting up and using SendGrid talks about Exelare which I've never heard of. Don't mind educating myself but are you sure this is a good starting point?
  9. one final question ... is CRM another way to handle email safely (obviously in addition to other features)?
  10. I'll give it a try, thanks. Any preference ... Sendgrid, Postmark, Sparkpost or Mailgun ?
  11. ok thanks. yes I used the native mail first and now using PHPMailer. I have managed to setup ok using the GitHub library. I was also wondering if DropBox was an option?
  12. ok thanks will explore. I'm only using PHPMail because I was told its easier to allow attachments? I think Sendgrid, Postmark, Sparkpost or Mailgun are subscription but will take a look. out on interest what would be the problem with reading a password from a file in a folder with restricted permission?
  13. sorry Guys, I'm probably not good enough to understand the responses but .. my email form can include an attachment and it calls a php script that uses PHPMailer. $mail = new PHPMailer; but I can only get this to work by including my password $mail->Password = 'myPassword'; I prefer not to have my password in a php file so I wondered what my options were? https://stackoverflow.com/questions/19431469/php-mailer-class-securing-email-credentials this looks more like it putting my password in a config.ini file outside the root but not sure how to store a file outside the root? also I'm using Godaddy Plesk and I've read that Godaddy shared hosting doesn't give you access to any directories above your website's document root?
  14. I'm using PHPMailer from https://github.com/PHPMailer/PHPMailer to create on online form and have a question ... How to safely store a password inside PHP code?
  15. fnets replied to fnets's topic in Server Side
    my mistake. now a .php and it worked "I got a file". Yes IIS server. learning so much here, thank you. if I separate into .html and .php they also work. so now I have something to build on. cheers. and this works ... <?php echo '<pre>'; print_r($_FILES);echo '</pre>'; if(file_exists($_FILES['image_up']['tmp_name'])) { echo "file exists"; } ?>
  16. fnets replied to fnets's topic in Server Side
    ran on new page and got 405 - HTTP verb used to access this page [.html] is not allowed. any ideas?
  17. fnets replied to fnets's topic in Server Side
    have to go out this pm but tried briefly and got errors. I think I need to go back to something very simple, going to try this http://form.guide/contact-form/contact-form-attachment.html
  18. fnets replied to fnets's topic in Server Side
    echo '<pre>'; print_r($_FILES);echo '</pre>'; prints Array ( [file] => Array ( [name] => sn.jpg [type] => image/jpeg [tmp_name] => C:\Windows\Temp\php9BED.tmp [error] => 0 => 34186 ) ) ;
  19. fnets replied to fnets's topic in Server Side
    if(!empty($_FILES['file']['name'])) { echo 'There is a file'; } if(!empty($_FILES['file']['tmp_name'])) { echo 'There is a file tmp_name'; } neither of the above echo's get called. Does that mean perhaps the file is deleted by the server before my code gets to it? BTW. thanks for your help, very much appreciated
  20. fnets replied to fnets's topic in Server Side
    thank you. if(file_exists($_FILES['file']['tmp_name'])) { echo "I Exist"; } didn't echo so it doesn't exist? does that mean file_exists($_FILES['file']['tmp_name']) is incorrect. if so what should I do??
  21. fnets posted a topic in Server Side
    I'm submitting a form where a user can add an image file... <form method="post" action=".\sendContact.php" enctype="multipart/form-data"> <input type="TEXT" name="email"> <input type="file" name="file"> <input type="submit" value="Submit"> to a php ... echo 'file test '; echo $_POST['email']; echo ' '; echo $_FILES['file']['tmp_name']; echo ' '; if ($_FILES['file']['error'] == 0) { echo 'file ok'; } echo ' '; and get file test 3@3.com C:\Windows\Temp\php99DD.tmp file ok but if I include if(getimagesize($_FILES['file']['tmp_name'])){ echo 'image ok'; } I get 500- Internal server error php.ini file_uploads = On upload_max_filesize = 2M max_file_uploads = 20 any ideas? this is my 3rd post but so far no response, can someone confirm that I'm not doing something wrong and that the site is still active?
  22. fnets replied to fnets's topic in Server Side
    fixed using $_FILES['file']['tmp_name'];
  23. fnets posted a topic in Server Side
    I'm unable to submit questions to the Godaddy forum and no one is answering the phone "to exceed my expectation" ... any help appreciated. trying to send an email with image file attachment ...my html form <form method="post" action=".\sendContact.php" enctype="multipart/form-data"> <input type="TEXT" name="email"> <input type="file" name="file"> <input type="submit" value="Submit"> in sendContact.php I have echo $_POST['email']; echo $_FILES['file']; which echo's the email address text ok but for file I just get "Array" (presumably empty)? I have uploaded php.ini from https://gist.github.com/TheSunMan/4008090 with upload_max_filesize = 2M and max_file_uploads = 20
  24. fnets posted a topic in General Chat
    I've been coding C++/C# for quite a long time plus a few basic html web pages. I'm retired now and would like to setup a woodworking web site which is what I enjoy most and do projects for family and friends. I'd like them to be able to login and view a database that I maintain. Perhaps experiment with a few basic charts. (Have briefly used CMS like wordpress, wix etc.) Obviously willing to learn but could anyone start me off in the right (or "best") direction? I have Godaddy Windows Hosting with Plesk.
  25. I'm new to web design (but experienced C++) so patience please ... I'd like to upload data to my web host and have a web page read it and display that data in a table? eventually I'd also like to click on an entry and draw a graph or something .. just experimenting at the moment.. could someone advise me where to start and if resources (widgets?) exist etc.to minimize effort or perhaps similar projects. More than willing to spend time educating myself, just want a good starting point. e.g. do I need to start learning ASP? Any help appreciated.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.