Jump to content

Send Email


Dysan

Recommended Posts

Try this class > http://www.gerd-tentler.de/tools/mimemail/main.php

 

I use it in all my applications and it works great.  It has an example in the download:

 

include('mimemail.inc.php');
$mail = new MIMEMAIL("HTML");

$mail->senderName = "sender name";
$mail->senderMail = "sender@email";
$mail->bcc = "bcc@email";

$mail->subject = "This is the subject line";

$mail->body = "Hello! This is a message for you.";   // OR: $mail->body = "path/to/file";

$mail->attachments[] = "path/to/file1";
$mail->attachments[] = "path/to/file2";
...

$mail->create();

$recipients ='recipient1@email,recipient2@email,recipient3@email';
if(!$mail->send($recipients)) echo $mail->error;

Link to comment
https://forums.phpfreaks.com/topic/95905-send-email/#findComment-491190
Share on other sites

much easy this way

<?php
$to      = '[email protected]';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: [email protected]' . "\r\n" .
    'Reply-To: [email protected]';

mail($to, $subject, $message, $headers);
?> 

 

How do I include the SMTP server details within the script

Link to comment
https://forums.phpfreaks.com/topic/95905-send-email/#findComment-492183
Share on other sites

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.