Be Excellent To Each Other
https://www.beexcellenttoeachother.com/forum/

Contact form / PHP
https://www.beexcellenttoeachother.com/forum/viewtopic.php?f=3&t=10996
Page 1 of 2

Author:  Zardoz [ Mon May 15, 2017 11:35 ]
Post subject:  Contact form / PHP

Hi Nerds!

I'm helping a mate out with a website and told him he'd be better off with a contact form rather than just his email address on the site.

Only needs a few simple fields on his site like 'Name' 'Email address' 'Type info here' and a PHP file to handle it on the server and email it to him. I'm just trying to find something that's straightforward and secure.

Can anyone point me in the right direction please x

Author:  Satsuma [ Mon May 15, 2017 11:38 ]
Post subject:  Re: Contact form / PHP

If it's Wordpress then there's an add-in called "contact form" which'll do that.

Check me out using my internet knowledge. No need for any other replies guys and gals I've sorted it. Lock up the thread. Ta.

Author:  Zardoz [ Mon May 15, 2017 11:52 ]
Post subject:  Re: Contact form / PHP

No.

Author:  myp [ Mon May 15, 2017 11:53 ]
Post subject:  Re: Contact form / PHP

I've always used this CGI/Perl one and it's never let me down:

http://www.scriptarchive.com/formmail.html

Author:  Zardoz [ Mon May 15, 2017 11:54 ]
Post subject:  Re: Contact form / PHP

Cheers, I'll take a look at that one.

Author:  Satsuma [ Mon May 15, 2017 11:59 ]
Post subject:  Re: Contact form / PHP

Zardoz wrote:
No.


You're shit.

Author:  Zardoz [ Mon May 15, 2017 12:14 ]
Post subject:  Re: Contact form / PHP

Get back to your gun thread, freak!

Author:  Cras [ Mon May 15, 2017 12:15 ]
Post subject:  Re: Contact form / PHP

I think Jem has one she wrote/maintains

Author:  Cras [ Mon May 15, 2017 12:16 ]
Post subject:  Re: Contact form / PHP

Also Jesus Christ a Perl CGI script?!

Author:  myp [ Mon May 15, 2017 12:17 ]
Post subject:  Re: Contact form / PHP

Cras wrote:
Also Jesus Christ a Perl CGI script?!

Yeah, it's great! About 20 years old but still works just fine. Last updated 8 years ago ;)

Author:  Cras [ Mon May 15, 2017 12:19 ]
Post subject:  Re: Contact form / PHP

Cras wrote:
I think Jem has one she wrote/maintains


http://jemturner.co.uk/2016/jems-mail-f ... elaunched/

Author:  Zardoz [ Mon May 15, 2017 12:27 ]
Post subject:  Re: Contact form / PHP

Fuck you Myp.

Thanks Cras!

And Jem!

Author:  myp [ Mon May 15, 2017 13:08 ]
Post subject:  Re: Contact form / PHP

Loser

Author:  Zardoz [ Mon May 15, 2017 14:10 ]
Post subject:  Re: Contact form / PHP

Butt out, Gramps. I'm hanging out with the cool kids now.

Author:  Jem [ Thu May 25, 2017 11:49 ]
Post subject:  Re: Contact form / PHP

Cras wrote:
I think Jem has one she wrote/maintains

Thanks for thinking of me dude :luv:

Author:  Zardoz [ Fri May 26, 2017 14:10 ]
Post subject:  Re: Contact form / PHP

I've broke it.

"Parse error: syntax error, unexpected '@' in /home2/overtone/public_html/contact.php on line 4"

The @ is in the email address so I'm not sure how to get round that.

Author:  Jem [ Fri May 26, 2017 14:19 ]
Post subject:  Re: Contact form / PHP

At a guess you accidentally removed the " " from around the email address but if you past that line here or send me a DM/email I'll be able to help better :)

Author:  Grim... [ Fri May 26, 2017 14:36 ]
Post subject:  Re: Contact form / PHP

Or it's on line 4 because they're suppressing any errors.

If there is an @ in that file (just open it with a text editor to see) then take it out.

[edit] Didn't realise we knew which one it was :)

Author:  Zardoz [ Fri May 26, 2017 14:55 ]
Post subject:  Re: Contact form / PHP

Jem wrote:
At a guess you accidentally removed the " " from around the email address but if you past that line here or send me a DM/email I'll be able to help better :)

Thanks Jem. Can't get to it from here but I'll take a look later and see if that's the problem.

Author:  Zardoz [ Sat May 27, 2017 13:55 ]
Post subject:  Re: Contact form / PHP

Sussed it Jem, curly fucking quotes that text edit added!

Thanks for the script!

Author:  Zardoz [ Wed May 31, 2017 10:15 ]
Post subject:  Re: Contact form / PHP

So... Yahoo doesn't like PHP mailing scripts.

My mate only has Yahoo email accounts...

Looks like there's no quick fix for this other than get him to set up another email elsewhere.

Author:  Grim... [ Wed May 31, 2017 10:17 ]
Post subject:  Re: Contact form / PHP

Zardoz wrote:
So... Yahoo doesn't like PHP mailing scripts.

I can assure you it does.

Author:  Grim... [ Wed May 31, 2017 10:20 ]
Post subject:  Re: Contact form / PHP

Or at least I hope I does. I've sent 29,000 emails to it so far today.

Author:  Grim... [ Wed May 31, 2017 10:24 ]
Post subject:  Re: Contact form / PHP

*tappity tap*

17 didn't get through. That's actually really good. 14 got marked as spam, the cunts.

1,865 of them got deferred (which means they wait a bit and they deliver again), but that shouldn't be a problem you're seeing.

Author:  DavPaz [ Wed May 31, 2017 10:24 ]
Post subject:  Re: Contact form / PHP

Grim... wrote:
Or at least I hope I does. I've sent 29,000 emails to it so far today.

Giphy "fingers crossed":
https://media.giphy.com/media/l0NwNrl4BtDD7JCx2/giphy-loop.mp4

Author:  Zardoz [ Wed May 31, 2017 10:47 ]
Post subject:  Re: Contact form / PHP

Skrpt plz Grm...

Author:  devilman [ Wed May 31, 2017 10:49 ]
Post subject:  Re: Contact form / PHP

Grim... wrote:
Or at least I hope I does. I've sent 29,000 emails to it so far today.


Damn. MeatUp Festival 2017 is gonna be a big one.

Author:  Grim... [ Wed May 31, 2017 10:57 ]
Post subject:  Re: Contact form / PHP

Zardoz wrote:
Skrpt plz Grm...

Could be a lot of things. The first thing I'd like to blame is your SPF records. Where's the form (you can PM me it if you need to), and who does it say it's from when it arrives?

Make sure he's putting his email address in right (obv), make sure there's nothing in his email settings that are getting rid of it, and - if you have access to your server's terminal - try taking a look at your mail logs to see if it got accepted.

You can probably do that by typing:
Code:
grep [his email address] /var/log/mail.log

Author:  Jem [ Wed May 31, 2017 11:06 ]
Post subject:  Re: Contact form / PHP

Try either/both of these:
http://jemsmailform.com/help-how-to/im- ... l-account/
http://jemsmailform.com/help-how-to/im- ... l-account/

(Previous yahoo users have had success with one of those fixes but I can't remember which.)

Author:  Zardoz [ Wed May 31, 2017 11:07 ]
Post subject:  Re: Contact form / PHP

Cheers Grim, can't get to it here to show you though.*

I'll take another look tonight if I can get chance. I've read a few things that have half sank in (authenticating the sender with SMTP gubbins and other such stuff)

I tried using a new email account from where his site is hosted and then set up forwarding to his yahoo account but still no joy. Script works fine when I tested it with my ...talktalk.net email address.

*It's Jem's script though as mentioned above.

Author:  Zardoz [ Wed May 31, 2017 11:08 ]
Post subject:  Re: Contact form / PHP

Thanks Jem! I'll try those tonight.

Author:  Grim... [ Wed May 31, 2017 11:28 ]
Post subject:  Re: Contact form / PHP

Zardoz wrote:
Cheers Grim, can't get to it here to show you though.

I don't want to see it - I want to know the domain name it's hosted on and who it says it's from when the email arrives.

Author:  Zardoz [ Wed May 31, 2017 15:51 ]
Post subject:  Re: Contact form / PHP

UPDATE:

He's made himself a gmail account.

:DD

Hopefully this will do the trick...

Thanks for hints / tips / advice (and not calling me a Belmer) so far though folks.

Author:  Zardoz [ Wed May 31, 2017 15:52 ]
Post subject:  Re: Contact form / PHP

Also:
Grim... wrote:
I don't want to see it - I want to know the domain name it's hosted on

Title

Author:  Jem [ Wed May 31, 2017 16:12 ]
Post subject:  Re: Contact form / PHP

You'll likely still need to follow the instructions on the first 'how to' link I posted.

Author:  myp [ Wed May 31, 2017 16:20 ]
Post subject:  Re: Contact form / PHP

Perl wouldn't have let you down like this.

Author:  Squirt [ Wed May 31, 2017 16:25 ]
Post subject:  Re: Contact form / PHP

TOO DAMN RIGHT.

Author:  Trousers [ Wed May 31, 2017 16:26 ]
Post subject:  Re: Contact form / PHP

Lonewolves wrote:
Perl wouldn't have let you down like this.


True Dat.

Attachment:
perl.jpg

Author:  Jem [ Wed May 31, 2017 16:43 ]
Post subject:  Re: Contact form / PHP

Lonewolves wrote:
Perl wouldn't have let you down like this.


I have thousands of users who manage to get it working without issue so I don't think the language is the problem here. :DD

Author:  Zardoz [ Wed May 31, 2017 16:59 ]
Post subject:  Re: Contact form / PHP

Jem wrote:
You'll likely still need to follow the instructions on the first 'how to' link I posted.

Thanks, Jem. Will do.

Author:  Zardoz [ Wed May 31, 2017 17:00 ]
Post subject:  Re: Contact form / PHP

Jem wrote:
Lonewolves wrote:
Perl wouldn't have let you down like this.


I have thousands of users who manage to get it working without issue so I don't think the language is the problem here. :DD

Are... are you cyber bullying me? :'(

Author:  Jem [ Wed May 31, 2017 17:14 ]
Post subject:  Re: Contact form / PHP

Zardoz wrote:
Jem wrote:
Lonewolves wrote:
Perl wouldn't have let you down like this.


I have thousands of users who manage to get it working without issue so I don't think the language is the problem here. :DD

Are... are you cyber bullying me? :'(


:DD :kiss: no

Author:  Zardoz [ Wed Jul 05, 2017 11:37 ]
Post subject:  Re: Contact form / PHP

Hello!

Is there an way to add attachments to the form?

Or would I be better using something else now?

Author:  Jem [ Wed Jul 05, 2017 12:40 ]
Post subject:  Re: Contact form / PHP

Not at the minute. It's been on my todo list for about 3 years. :S

How urgently do you need it? I can plot it in for this weekend if you can wait? Will be a good kick up the butt to get some work done on it.

Author:  GazChap [ Wed Jul 05, 2017 12:40 ]
Post subject:  Re: Contact form / PHP

Can you sort out a Reply-All button for here as well? Lost count of how long that's been on my to-do list.

Author:  Mr Russell [ Wed Jul 05, 2017 12:47 ]
Post subject:  Re: Contact form / PHP

GazChap wrote:
Can you sort out a Reply-All button for here as well? Lost count of how long that's been on my to-do list.

Tick it off.

Author:  Jem [ Wed Jul 05, 2017 12:50 ]
Post subject:  Re: Contact form / PHP

GazChap wrote:
Can you sort out a Reply-All button for here as well? Lost count of how long that's been on my to-do list.

You know my hourly rate, right?

Author:  Grim... [ Wed Jul 05, 2017 12:56 ]
Post subject:  Re: Contact form / PHP

I mean, I did it years ago.

Author:  Zardoz [ Wed Jul 05, 2017 14:16 ]
Post subject:  Re: Contact form / PHP

Jem wrote:
Not at the minute. It's been on my todo list for about 3 years. :S

How urgently do you need it? I can plot it in for this weekend if you can wait? Will be a good kick up the butt to get some work done on it.

It's EXTREMELY URGENT!!!

ZOMG Spoiler! Click here to view!
Anytime would be great, really appreciate it. I'm terrible with this stuff. :luv:

Author:  Jem [ Wed Jul 05, 2017 14:18 ]
Post subject:  Re: Contact form / PHP

Will see what I can do :)

Page 1 of 2 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/