Jump to content
php.lv forumi

PHP Mime


Mikijs

Recommended Posts

Sveiki, velejos apjautaties vai kads gadijuma nav stradajis ar PHP Mime ?

- Lugums

- - Pastastiet ludzu ka var uzstadot sutitaja e-pastu noradit arii sutitaja vardu ?

 

- Lietoju Mime 2.0.0

php-> fputs($fp, "mail from: <" . $this->from . ">\r\n");

meiginaju -> fputs($fp, "mail from: $name <" . $this->from . ">\r\n");

bet tad vispar e-pastu nenosuta.

Link to comment
Share on other sites

Pēc tavas dotās saites neatrado neko, kas līdzinātos tam, ko tu rakstiji

php-> fputs($fp, "mail from: <" . $this->from . ">\r\n");

meiginaju -> fputs($fp, "mail from: $name <" . $this->from . ">\r\n");

Bet pēc idejas sūtot e-pastu mēs header`os sametam From: Name <your@mail.com>
Link to comment
Share on other sites

Vispār tajā linkā ir piemēri:

// send mail with additional headers
$to = 'you@yourDomain.com';
$subject = 'MIME mailer example';
$message = 'Plain message text';
$headers = 'From: sender name <sender@domain.com>'."\n".
	  'Bcc: another@email.com';
require_once('function_mime_mailer.php');
mime_mailer($to, $subject, $message, $headers);

 

Mikij, a vispār kādā jēgā tu izmanto fputs ?

Link to comment
Share on other sites

Doh, tu pats apskatījies savā iedotajā linkā? Tur pat gatavs piemērs iedots:

// send mail with additional headers
$to = 'you@yourDomain.com';
$subject = 'MIME mailer example';
$message = 'Plain message text';
$headers = 'From: sender name <sender@domain.com>'."\n".
	  'Bcc: another@email.com';
require_once('function_mime_mailer.php');
mime_mailer($to, $subject, $message, $headers);

Link to comment
Share on other sites

×
×
  • Create New...