Ankit
Ankit

Reputation: 2518

How to send -f parameter equivalent from swiftmail?

I am trying to migrate from PHP mail to SendGrid using swift mail. I am not able to understand -f email additional parameter.

mail($Email,$sub,$cont,$headers,'-f [email protected]')

I am not sure what type of header is this. Should i send this as path_header?

I could not undersrtand the explanation of this here.

Upvotes: 1

Views: 101

Answers (1)

bwest
bwest

Reputation: 9834

This is used to set the "envelope from" on your email; it's not actually a header. This post describes what that means.

When sending via SendGrid you won't need to specify this flag or explicitly set your "envelope from." Just set your from address and fromName and you'll be good to go.

Upvotes: 1

Related Questions