PHP Email help

3 replies · opened Apr 7, 2017

MMyAmazingUserNameApr 7, 2017

Hi

My quick contact and contact forms will not work with some email addresses.
They don't work with gmail at all. I have not tested many, but some others work fine.
Can the form be changed to always send email from a known email address from my domain and pass through the senders email as a reply to address?

Cheers,
L

DdaihloApr 7, 2017

sendmail.php? no botcheck?

Line 36:

			$mail->SetFrom( $email , $name );
			$mail->AddReplyTo( $email , $name );

Change $mail->SetFrom( $email, $name); to $mail->SetFrom( 'desired email address', 'desired name');

The reply mail supplied in the contact form will be used as the reply address in the resulting mail.

Don't forget to check your spam box with gmail; bit me more than once.

MMyAmazingUserNameApr 8, 2017

Hosting is throwing an SPF error. I need the site to email from an approved domain, but pass through the reply address.

MMyAmazingUserNameApr 8, 2017

Thanks. Working now

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard