Jump to content

Sending email via gmail (I really cannot get this to work)


madspof

Recommended Posts

in other words, just use the php mail() function: http://us2.php.net/function.mail

 

and use additional headers to define the from, return-to and other fields:

 

$to      = '[email protected]';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: [email protected]' . "\r\n" .
    'Reply-To: [email protected]';
mail($to, $subject, $message, $headers);
?>

 

The receiver will see [email protected] in the From field on the email.

have you looked for any pre-built classes to help, for instance:

 

http://www.phpclasses.org/browse/package/14.html

 

will apparently retrieve via SMTP. You may need something else to send... phpclasses.org is an excellent resource for pre-written PHP classes.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.