Skip to content
Advertisement

send different email to different recipient php mail [closed]

JavaScript

}

i want to send verification code which is $pin[$f] for different recipients and each recipient will have unique pin. I make it loop for sending the email. the first recipient received the email but the second recepient didnt. it shows the error of 554 Transaction failed: Duplicate header ‘From’

Advertisement

Answer

You need to clear out $headers between loop iterations.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement