Jump to content


  • Content count

  • Joined

  • Last visited

About fnets

  • Rank
    Dedicated Member

Users Experience

  • Experience
  • Area of Expertise
    I'm Learning

Profile Information

  • Gender
  • Location
    Hampshire, UK
  1. PHPMailer script password security

    ok got it thanks
  2. PHPMailer script password security

    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. PHPMailer script password security

    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. PHPMailer script password security

    can I quickly ask how I send emails from my form to my email account? ... ok got it
  5. PHPMailer script password security

    ok yes it worked. thanks for helping. presumably if I add an attachment to phpmailer that should also work?
  6. PHPMailer script password security

    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. PHPMailer script password security

    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. PHPMailer script password security

    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. PHPMailer script password security

    one final question ... is CRM another way to handle email safely (obviously in addition to other features)?
  10. PHPMailer script password security

    I'll give it a try, thanks. Any preference ... Sendgrid, Postmark, Sparkpost or Mailgun ?
  11. PHPMailer script password security

    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. PHPMailer script password security

    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. PHPMailer script password security

    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. getimagesize

    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"; } ?>