@@ -162,7 +162,7 @@ static zend_string *php_win32_mail_trim_header(const char *header)
162162 return result2 ;
163163}
164164
165- /*********************************************************************
165+ // *********************************************************************
166166// Name: TSendMail
167167// Input: 1) host: Name of the mail host where the SMTP server resides
168168// max accepted length of name = 256
@@ -174,7 +174,7 @@ static zend_string *php_win32_mail_trim_header(const char *header)
174174// SUCCESS otherwise.
175175//
176176// See SendText() for additional args!
177- //********************************************************************/
177+ //*********************************************************************
178178PHPAPI int TSendMail (const char * host , int * error , char * * error_message ,
179179 const char * headers , const char * Subject , const char * mailTo , const char * data ,
180180 char * mailCc , char * mailBcc , char * mailRPath )
@@ -291,14 +291,14 @@ PHPAPI int TSendMail(const char *host, int *error, char **error_message,
291291 }
292292}
293293
294- //********************************************************************
294+ //*********************************************************************
295295// Name: TSendMail::~TSendMail
296296// Input:
297297// Output:
298298// Description: DESTRUCTOR
299299// Author/Date: jcar 20/9/96
300300// History:
301- //********************************************************************/
301+ //*********************************************************************
302302PHPAPI void TSMClose (void )
303303{
304304 Post ("QUIT\r\n" );
@@ -313,14 +313,14 @@ PHPAPI void TSMClose(void)
313313}
314314
315315
316- /*********************************************************************
316+ // *********************************************************************
317317// Name: char *GetSMErrorText
318318// Input: Error index returned by the member functions
319319// Output: pointer to a string containing the error description
320320// Description:
321321// Author/Date: jcar 20/9/96
322322// History:
323- //*******************************************************************/
323+ //*********************************************************************
324324PHPAPI char * GetSMErrorText (int index )
325325{
326326 if (MIN_ERROR_INDEX <= index && index < MAX_ERROR_INDEX ) {
@@ -364,7 +364,7 @@ static char *find_address(char *list, char **state)
364364 return list ;
365365}
366366
367- /*********************************************************************
367+ // *********************************************************************
368368// Name: SendText
369369// Input: 1) RPath: return path of the message
370370// Is used to fill the "Return-Path" and the
@@ -381,7 +381,7 @@ static char *find_address(char *list, char **state)
381381// Description:
382382// Author/Date: jcar 20/9/96
383383// History:
384- //*******************************************************************/
384+ //*********************************************************************
385385static int SendText (char * RPath , const char * Subject , const char * mailTo , char * mailCc , char * mailBcc , const char * data ,
386386 const char * headers , char * headers_lc , char * * error_message )
387387{
@@ -698,7 +698,7 @@ static int addToHeader(char **header_buffer, const char *specifier, const char *
698698 return 1 ;
699699}
700700
701- /*********************************************************************
701+ // *********************************************************************
702702// Name: PostHeader
703703// Input: 1) return path
704704// 2) Subject
@@ -708,7 +708,7 @@ static int addToHeader(char **header_buffer, const char *specifier, const char *
708708// Description:
709709// Author/Date: jcar 20/9/96
710710// History:
711- //********************************************************************/
711+ //*********************************************************************
712712static int PostHeader (char * RPath , const char * Subject , const char * mailTo , char * xheaders )
713713{
714714 /* Print message header according to RFC 822 */
@@ -785,14 +785,14 @@ static int PostHeader(char *RPath, const char *Subject, const char *mailTo, char
785785
786786
787787
788- /*********************************************************************
788+ // *********************************************************************
789789// Name: MailConnect
790790// Input: None
791791// Output: None
792792// Description: Connect to the mail host and receive the welcome message.
793793// Author/Date: jcar 20/9/96
794794// History:
795- //********************************************************************/
795+ //*********************************************************************
796796static int MailConnect ()
797797{
798798
@@ -881,14 +881,14 @@ return 0;
881881}
882882
883883
884- /*********************************************************************
884+ // *********************************************************************
885885// Name: Post
886886// Input:
887887// Output:
888888// Description:
889889// Author/Date: jcar 20/9/96
890890// History:
891- //********************************************************************/
891+ //*********************************************************************
892892static int Post (LPCSTR msg )
893893{
894894 int len = (int )strlen (msg );
@@ -912,7 +912,7 @@ static int Post(LPCSTR msg)
912912
913913
914914
915- /*********************************************************************
915+ // *********************************************************************
916916// Name: Ack
917917// Input:
918918// Output:
@@ -921,7 +921,7 @@ static int Post(LPCSTR msg)
921921// last command was successful.
922922// Author/Date: jcar 20/9/96
923923// History:
924- //********************************************************************/
924+ //*********************************************************************
925925static int Ack (char * * server_response )
926926{
927927 ZEND_TLS char buf [MAIL_BUFFER_SIZE ];
@@ -974,7 +974,7 @@ static int Ack(char **server_response)
974974}
975975
976976
977- /*********************************************************************
977+ // *********************************************************************
978978// Name: unsigned long GetAddr (LPSTR szHost)
979979// Input:
980980// Output:
@@ -985,7 +985,7 @@ static int Ack(char **server_response)
985985// WARNING: gethostbyname() is a blocking function
986986// Author/Date: jcar 20/9/96
987987// History:
988- //********************************************************************/
988+ //*********************************************************************
989989static unsigned long GetAddr (LPSTR szHost )
990990{
991991 LPHOSTENT lpstHost ;
@@ -1052,7 +1052,7 @@ static char *get_angle_addr(char *address)
10521052 return estrndup (p1 , p2 - p1 );
10531053}
10541054
1055- /*********************************************************************
1055+ // *********************************************************************
10561056// Name: int FormatEmailAddress
10571057// Input:
10581058// Output:
@@ -1064,7 +1064,7 @@ static char *get_angle_addr(char *address)
10641064//
10651065// Author/Date: garretts 08/18/2009
10661066// History:
1067- //********************************************************************/
1067+ //*********************************************************************
10681068static int FormatEmailAddress (char * Buf , char * EmailAddress , char * FormatString ) {
10691069 char * tmpAddress ;
10701070 int result ;
0 commit comments