make sure you've correctly setup the SMTP parameters in php.ini
and aslo make sure that the SMTP server accepts relay
for some mail servers, you have to open up an imap stream, log in, and then you can send mail through imap_mail
![]() | imap_mailDescriptionbool imap_mail ( string to, string subject, string message [, string additional_headers [, string cc [, string bcc [, string rpath]]]] )This function allows sending of emails with correct handling of Cc and Bcc receivers. 如果成功则返回 TRUE,失败则返回 FALSE。. The parameters to, cc and bcc are all strings and are all parsed as rfc822 address lists. The receivers specified in bcc will get the mail, but are excluded from the headers. Use the rpath parameter to specify return path. This is useful when using PHP as a mail client for multiple users. ![]()
uphonesimon at gmail dot com
23-Dec-2005 03:45
make sure you've correctly setup the SMTP parameters in php.ini
nick at divbyzero dot com
13-Jul-2005 11:24
FYI, to finish your message post over telnet, enter a period (".") by itself as the last line of the post. Took me a while to google this so I thought I'd share. Then you can disconnect with 'quit'.
bandpay at hotmail dot com
05-Jan-2001 10:01
Extending the above note.
bandpay at hotmail dot com
28-Dec-2000 10:01
If you need to send messages to a NNTP server, and you don't find the function, which is sufficient for this job, then use this.
mgsander at schaap dot dhs dot org
04-Dec-2000 02:09
You can change the From field in your message by specifying "From: blabla@yadayada.net" in the additional_headers field.
| ![]() |